|
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"
|
|
44 | 44 | "webpack": "^4.30.0"
|
45 | 45 | },
|
46 | 46 | "scripts": {
|
47 |
| - "build": "run-p build:cjs build:esm build:bundle build:types", |
| 47 | + "build": "run-p build:cjs build:esm build:bundle build:types && bash ../../scripts/postbuild.sh", |
48 | 48 | "build:bundle": "rollup --config",
|
49 | 49 | "build:cjs": "tsc -p tsconfig.cjs.json",
|
50 | 50 | "build:dev": "run-p build:cjs build:esm build:types",
|
|
59 | 59 | "build:esm:watch": "tsc -p tsconfig.esm.json --watch",
|
60 | 60 | "build:types:watch": "tsc -p tsconfig.types.json --watch",
|
61 | 61 | "circularDepCheck": "madge --circular src/index.ts",
|
62 |
| - "clean": "rimraf dist esm build coverage .rpt2_cache", |
| 62 | + "clean": "rimraf build coverage .rpt2_cache", |
63 | 63 | "fix": "run-s fix:eslint fix:prettier",
|
64 | 64 | "fix:eslint": "eslint . --format stylish --fix",
|
65 | 65 | "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
|
66 | 66 | "link:yarn": "yarn link",
|
67 | 67 | "lint": "run-s lint:prettier lint:eslint",
|
68 | 68 | "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
|
69 | 69 | "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
|
70 |
| - "pack": "npm pack", |
| 70 | + "pack": "npm pack ./build", |
71 | 71 | "size:check": "run-p size:check:es5 size:check:es6",
|
72 |
| - "size:check:es5": "cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'", |
73 |
| - "size:check:es6": "cat build/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'", |
| 72 | + "size:check:es5": "cat build/bundles/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'", |
| 73 | + "size:check:es6": "cat build/bundles/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'", |
74 | 74 | "test": "run-s test:unit",
|
75 | 75 | "test:unit": "jest --config test/unit/jest.config.js",
|
76 | 76 | "test:integration": "test/integration/run.js",
|
|
0 commit comments