|
9 | 9 | "engines": { |
10 | 10 | "node": ">=6" |
11 | 11 | }, |
12 | | - "main": "dist/index.js", |
13 | | - "module": "esm/index.js", |
| 12 | + "main": "build/dist/index.js", |
| 13 | + "module": "build/esm/index.js", |
14 | 14 | "types": "build/types/index.d.ts", |
15 | 15 | "publishConfig": { |
16 | 16 | "access": "public" |
|
33 | 33 | "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", |
34 | 34 | "build:esm:watch": "tsc -p tsconfig.esm.json --watch", |
35 | 35 | "build:types:watch": "tsc -p tsconfig.types.json --watch", |
| 36 | + "build:npm": "ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build", |
36 | 37 | "circularDepCheck": "madge --circular src/index.ts", |
37 | | - "clean": "rimraf dist esm coverage", |
| 38 | + "clean": "rimraf dist esm build coverage", |
38 | 39 | "fix": "run-s fix:eslint fix:prettier", |
39 | 40 | "fix:eslint": "eslint . --format stylish --fix", |
40 | 41 | "fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"", |
41 | 42 | "link:yarn": "yarn link", |
42 | 43 | "lint": "run-s lint:prettier lint:eslint", |
43 | 44 | "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", |
44 | 45 | "lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"", |
45 | | - "build:npm": "npm pack", |
46 | 46 | "test": "jest", |
47 | 47 | "test:watch": "jest --watch" |
48 | 48 | }, |
|
0 commit comments