Skip to content

Commit

Permalink
fix(angular): ensure postinstall hook is executed only during local dev
Browse files Browse the repository at this point in the history
BREAKING CHANGE: upgrades angular to v9
  • Loading branch information
stalniy committed Feb 17, 2020
1 parent 6f08726 commit a47bac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/casl-angular/CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.

# [2.2.0](https://github.com/stalniy/casl/compare/@casl/angular@2.1.1...@casl/angular@2.2.0) (2020-02-17)

**Deprecated because of invalid package.json peerDependencies and postinstall hook**

### Features

Expand Down
6 changes: 3 additions & 3 deletions packages/casl-angular/package.json
Expand Up @@ -19,9 +19,9 @@
"postbuild": "mv dist/types/src/*.d.ts dist/types && rm -rf dist/types/src",
"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",
"prerelease2": "NODE_ENV=production npm run build && npm test",
"release": "semantic-release -e ../../tools/semantic-release",
"postinstall": "ngcc"
"postinstall": "test -f package-lock.json && ngcc || true"
},
"keywords": [
"casl",
Expand All @@ -39,7 +39,7 @@
"npm": "^6.0.0"
},
"peerDependencies": {
"@angular/core": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
"@angular/core": "^9.0.0",
"@casl/ability": "^2.0.0 || ^3.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit a47bac8

Please sign in to comment.