Skip to content

Commit

Permalink
fix(package): makes sure the latest casl works with Angular 8.x
Browse files Browse the repository at this point in the history
Relates to #337
  • Loading branch information
Olena-Stotska committed Jun 8, 2020
1 parent a754ab4 commit 91ee505
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 35 deletions.
7 changes: 7 additions & 0 deletions packages/casl-ability/index.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"__symbolic": "module",
"version": 4,
"metadata": {},
"origins": {},
"importAs": "@casl/ability"
}
4 changes: 2 additions & 2 deletions packages/casl-ability/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"build.core": "rollup -c ../../rollup.config.js -n casl -g sift:sift",
"build.extra": "rollup -c ../../rollup.config.js -i src/extra.ts -n casl.extra",
"build.types": "rm -rf ./dist/types/* && tsc",
"build.types": "rm -rf dist/types/* && tsc && cp index.metadata.json dist/types",
"build": "npm run build.types && npm run build.core && npm run build.extra",
"lint": "eslint --ext .js,.ts src/ spec/",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js --env node",
Expand Down Expand Up @@ -75,4 +75,4 @@
"*.d.ts",
"extra"
]
}
}
4 changes: 2 additions & 2 deletions packages/casl-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/umd/index.js",
"module": "dist/es5m/index.js",
"es2015": "dist/es6/index.js",
"typings": "dist/types/index.d.ts",
"typings": "dist/types/public_api.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/stalniy/casl.git"
Expand Down Expand Up @@ -88,4 +88,4 @@
"dist",
"*.d.ts"
]
}
}
6 changes: 4 additions & 2 deletions packages/casl-angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"enableIvy": false,
"skipMetadataEmit": true,
"skipTemplateCodegen": true,
"strictInjectionParameters": true
"strictInjectionParameters": true,
"flatModuleOutFile": "public_api.js",
"flatModuleId": "@casl/angular"
}
}
}
49 changes: 20 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91ee505

Please sign in to comment.