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