|
2 | 2 | "name": "@govtechsg/tradetrust-utils", |
3 | 3 | "version": "0.1.0", |
4 | 4 | "description": "", |
5 | | - "main": "dist/cjs/index.js", |
6 | | - "module": "dist/esm/index.js", |
7 | | - "types": "dist/types/src/index.d.ts", |
| 5 | + "types": "./dist/types/index.d.ts", |
| 6 | + "typesVersions": { |
| 7 | + "*": { |
| 8 | + ".": [ |
| 9 | + "./dist/types/index.d.ts" |
| 10 | + ], |
| 11 | + "constants/*": [ |
| 12 | + "./dist/types/constants/*.d.ts" |
| 13 | + ] |
| 14 | + } |
| 15 | + }, |
| 16 | + "exports": { |
| 17 | + ".": { |
| 18 | + "require": "./dist/cjs/index.js", |
| 19 | + "import": "./dist/esm/index.js" |
| 20 | + }, |
| 21 | + "./constants/*": { |
| 22 | + "require": "./dist/cjs/constants/*.js", |
| 23 | + "import": "./dist/esm/constants/*.js" |
| 24 | + } |
| 25 | + }, |
| 26 | + "main": "./dist/cjs/index.js", |
| 27 | + "module": "./dist/esm/index.js", |
| 28 | + "files": [ |
| 29 | + "dist" |
| 30 | + ], |
8 | 31 | "scripts": { |
9 | | - "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:type", |
| 32 | + "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types", |
10 | 33 | "build:cjs": "tsc --module commonjs --outDir dist/cjs --project ./tsconfig.prod.json", |
11 | 34 | "build:esm": "tsc --module es2015 --outDir dist/esm --project ./tsconfig.prod.json", |
12 | | - "build:type": "tsc -d --emitDeclarationOnly --outDir dist/types/src", |
| 35 | + "build:types": "tsc --declaration --emitDeclarationOnly --outDir dist/types --project ./tsconfig.prod.json", |
13 | 36 | "clean": "rm -rf dist/", |
14 | 37 | "test:ci": "jest --runInBand", |
15 | 38 | "test": "NODE_OPTIONS=--max-old-space-size=2048 jest", |
|
43 | 66 | "prettier": "^2.5.1", |
44 | 67 | "semantic-release": "^18.0.1", |
45 | 68 | "ts-jest": "^27.1.0", |
46 | | - "typescript": "^4.5.2" |
| 69 | + "typescript": "^4.9.4" |
47 | 70 | }, |
48 | 71 | "publishConfig": { |
49 | 72 | "access": "public" |
|
0 commit comments