Skip to content

Commit

Permalink
chore(package): upgrade to angular 11
Browse files Browse the repository at this point in the history
BREAKING CHANGE: ionic-native now requires at least Angular 10 with ts-lib 2.0

Co-Authored-By: Daniel Sogl <mytechde@outlook.com>
  • Loading branch information
Daniel Sogl and danielsogl committed Jan 23, 2021
1 parent 0467787 commit a96faf1
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 52 deletions.
121 changes: 83 additions & 38 deletions package-lock.json

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

27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,21 @@
"shipit": "npm run build && npm run readmes && npm run npmpub",
"prettier": "prettier --write \"**/*.{js,json,css,scss,less,md,ts,html,component.html}\""
},
"dependencies": {
"tslib": "^2.0.0"
},
"devDependencies": {
"@angular/common": "^9.1.13",
"@angular/compiler": "^9.1.13",
"@angular/compiler-cli": "^9.1.13",
"@angular/core": "^9.1.13",
"@angular/common": "^11.1.0",
"@angular/compiler": "^11.1.0",
"@angular/compiler-cli": "^11.1.0",
"@angular/core": "^11.1.0",
"@types/cordova": "0.0.34",
"@types/fs-extra": "^9.0.6",
"@types/jest": "^26.0.20",
"@types/lodash": "^4.14.168",
"@types/node": "^12.19.15",
"@types/rimraf": "^3.0.0",
"@types/webpack": "^4.41.26",
"ajv": "^6.12.6",
"async-promise-queue": "^1.0.5",
"conventional-changelog-cli": "^2.1.1",
"cz-conventional-changelog": "^3.3.0",
Expand All @@ -53,20 +55,20 @@
"natives": "^1.1.6",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rxjs": "^6.6.3",
"rxjs": "~6.6.0",
"ts-jest": "^26.4.4",
"ts-node": "^8.10.2",
"tslint": "^5.20.1",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"tslint-config-prettier": "^1.18.0",
"tslint-ionic-rules": "0.0.21",
"typedoc": "^0.18.0",
"typescript": "~3.8.3",
"typescript-tslint-plugin": "0.5.5",
"typescript": "~4.1.2",
"typescript-tslint-plugin": "^1.0.1",
"uglifyjs-webpack-plugin": "^2.2.0",
"unminified-webpack-plugin": "^2.0.0",
"webpack": "^4.46.0",
"winston": "^3.3.3",
"zone.js": "^0.10.3"
"zone.js": "~0.11.3"
},
"jest": {
"transform": {
Expand All @@ -93,9 +95,6 @@
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"tslib": "^1.14.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
Expand Down
1 change: 1 addition & 0 deletions scripts/build/transformers/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getMethodsForDecorator } from '../helpers';
function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ngcBuild?: boolean) {
// remove angular imports
if (!ngcBuild) {
// @ts-expect-error
file.statements = (file.statements as any).filter(
(s: any) => !(s.kind === ts.SyntaxKind.ImportDeclaration && s.moduleSpecifier.text === '@angular/core')
);
Expand Down

0 comments on commit a96faf1

Please sign in to comment.