|
23 | 23 | "access": "public" |
24 | 24 | }, |
25 | 25 | "scripts": { |
26 | | - "prebuild": "rm -rf dist/*", |
27 | | - "build": "npm run build.types && npm run build.es5m && npm run build.es6 && npm run build.umd", |
| 26 | + "build.prepare": "rm -rf dist/* && npm run build.types", |
| 27 | + "build": "npm run build.prepare && npm run build.es5m && npm run build.es6 && npm run build.umd", |
28 | 28 | "build.es5m": "TARGET=es5 BUILD=es5m npm run rollup", |
29 | 29 | "build.es6": "TARGET=es2015 BUILD=es6m npm run rollup", |
30 | 30 | "build.umd": "TARGET=es5 BUILD=umd npm run rollup", |
31 | 31 | "build.types": "ngc -p tsconfig.types.json && rm -rf dist/types/*.js", |
32 | | - "prerollup": "ngc -p tsconfig.build.json --target $TARGET --outDir dist/$BUILD/tmp", |
33 | | - "rollup": "IGNORE_SUBPATH=1 LIB_MINIFY=false BUILD_TYPES=$BUILD ES_TRANSFORM=false dx rollup -i dist/$BUILD/tmp/index.js -n casl.ng -g @angular/core:ng.core,@casl/ability:casl,tslib:tslib,rxjs:rxjs", |
34 | | - "postrollup": "rm -rf dist/$BUILD/tmp", |
| 32 | + "rollup.prepare": "ngc -p tsconfig.build.json --target $TARGET --outDir dist/$BUILD/tmp", |
| 33 | + "rollup": "npm run rollup.prepare && IGNORE_SUBPATH=1 LIB_MINIFY=false BUILD_TYPES=$BUILD ES_TRANSFORM=false dx rollup -i dist/$BUILD/tmp/index.js -n casl.ng -g @angular/core:ng.core,@casl/ability:casl,tslib:tslib,rxjs:rxjs && rm -rf dist/$BUILD/tmp", |
35 | 34 | "test": "dx jest --config ./jest.config.js", |
36 | 35 | "lint": "dx eslint src/ spec/", |
37 | | - "prerelease": "npm run lint && NODE_ENV=production npm run build && npm test", |
38 | | - "release": "dx semantic-release" |
| 36 | + "release.prepare": "npm run lint && NODE_ENV=production npm run build && npm test", |
| 37 | + "release": "npm run release.prepare && dx semantic-release" |
39 | 38 | }, |
40 | 39 | "keywords": [ |
41 | 40 | "casl", |
|
0 commit comments