Skip to content

Commit

Permalink
feat(ng): update to Angular v11
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Library requires Angular v11 as a peer dependency. No other public API changes.
  • Loading branch information
gund committed Nov 19, 2020
1 parent 97f5d5f commit 5e3ff21
Show file tree
Hide file tree
Showing 8 changed files with 3,358 additions and 3,377 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefix": "ndc",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ng-dynamic-component/tsconfig.lib.json",
"project": "projects/ng-dynamic-component/ng-package.json"
Expand Down
6,627 changes: 3,313 additions & 3,314 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,21 @@
},
"private": true,
"dependencies": {
"@angular/common": "^10.0.1",
"@angular/compiler": "^10.0.1",
"@angular/core": "^10.0.1",
"@angular/platform-browser": "^10.0.1",
"@angular/platform-browser-dynamic": "^10.0.1",
"@angular/common": "^11.0.1",
"@angular/compiler": "^11.0.1",
"@angular/core": "^11.0.1",
"@angular/platform-browser": "^11.0.1",
"@angular/platform-browser-dynamic": "^11.0.1",
"rxjs": "^6.6.0",
"tslib": "^2.0.2",
"tslib": "^2.0.0",
"zone.js": "^0.10.3"
},
"devDependencies": {
"@angular-builders/jest": "^9.0.1",
"@angular-devkit/build-angular": "^0.1000.0",
"@angular-devkit/build-ng-packagr": "^0.1000.0",
"@angular/cli": "^10.0.0",
"@angular/compiler-cli": "^10.0.1",
"@angular/language-service": "^10.0.1",
"@angular-devkit/build-angular": "^0.1100.2",
"@angular/cli": "^11.0.2",
"@angular/compiler-cli": "^11.0.1",
"@angular/language-service": "^11.0.1",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@semantic-release/changelog": "^5.0.0",
Expand All @@ -48,7 +47,7 @@
"@types/jest": "^24.0.0",
"@types/node": "^13.5.1",
"codecov": "^3.8.0",
"codelyzer": "^5.2.2",
"codelyzer": "^6.0.0",
"commitizen": "^4.0.3",
"copyfiles": "^2.2.0",
"core-js": "^3.6.4",
Expand All @@ -57,14 +56,14 @@
"istanbul": "^0.4.5",
"jest": "^26.0.0",
"lint-staged": "^10.0.3",
"ng-packagr": "^10.0.0",
"ng-packagr": "^11.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"semantic-release": "^17.0.1",
"ts-node": "^8.6.2",
"tsickle": "^0.38.1",
"tslint": "~6.1.0",
"typescript": "~3.9.5"
"typescript": "~4.0.5"
},
"config": {
"commitizen": {
Expand Down
7 changes: 2 additions & 5 deletions projects/ng-dynamic-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"type": "git",
"url": "https://github.com/gund/ng-dynamic-component.git"
},
"engines": {
"node": ">=6.0.0"
},
"keywords": [
"angular",
"angular2",
Expand All @@ -21,8 +18,8 @@
"life-cycle"
],
"peerDependencies": {
"@angular/common": "^10.0.0",
"@angular/core": "^10.0.0",
"@angular/common": "^11.0.0",
"@angular/core": "^11.0.0",
"rxjs": "^6.0.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion projects/ng-dynamic-component/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
Expand Down
2 changes: 1 addition & 1 deletion projects/ng-dynamic-component/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jest", "node"]
Expand Down
29 changes: 0 additions & 29 deletions tsconfig.base.json

This file was deleted.

39 changes: 27 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
/*
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
It is not intended to be used to perform a compilation.
To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
{
"files": [],
"references": [
{
"path": "./projects/ng-dynamic-component/tsconfig.lib.json"
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": ["node_modules/@types"],
"types": ["jest"],
"lib": ["es2018", "dom"],
"paths": {
"ng-dynamic-component": [
"projects/ng-dynamic-component/src/public-api.ts"
],
"ng-dynamic-component/*": ["projects/ng-dynamic-component/src/*"]
}
]
}
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}

0 comments on commit 5e3ff21

Please sign in to comment.