Skip to content

Commit

Permalink
fix(angular): moves postinstall hook to postbootstrap hook which link…
Browse files Browse the repository at this point in the history
…s modules

Relates to #266
  • Loading branch information
stalniy committed Feb 21, 2020
1 parent ffb35ea commit 769e099
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.0.0-development",
"scripts": {
"bootstrap": "lerna bootstrap",
"postbootstrap": "cd packages/casl-angular && ./node_modules/.bin/ngcc",
"build": "lerna run build",
"pretest": "npm run lint",
"test": "lerna run test",
Expand Down
6 changes: 2 additions & 4 deletions packages/casl-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"lint": "node -p -e '`Skip linting for typescript`'",
"prerelease": "NODE_ENV=production npm run build && npm test",
"release": "semantic-release -e ../../tools/semantic-release",
"postinstall": "node ./tools/exists.js package-lock.json && ngcc || true"
"release": "semantic-release -e ../../tools/semantic-release"
},
"keywords": [
"casl",
Expand Down Expand Up @@ -57,7 +56,6 @@
},
"files": [
"dist",
"*.d.ts",
"tools/exists.js"
"*.d.ts"
]
}
3 changes: 0 additions & 3 deletions packages/casl-angular/tools/exists.js

This file was deleted.

0 comments on commit 769e099

Please sign in to comment.