diff --git a/package.json b/package.json index 2787b1b..e87d910 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,12 @@ "lint": "tslint --project ./tsconfig.json -c ./tslint.json 'src/**/*.ts'", "lint:fix": "tslint --project ./tsconfig.json -c ./tslint.json 'src/**/*.ts' --fix" }, + "ng-add": { + "save": "devDependencies" + }, + "ng-new": { + "save": "devDependencies" + }, "schematics": "./src/collection.json", "dependencies": { "@angular-devkit/core": "~9.1.0", diff --git a/src/add-ns/index.ts b/src/add-ns/index.ts index c01b5ca..0c46ddb 100644 --- a/src/add-ns/index.ts +++ b/src/add-ns/index.ts @@ -374,7 +374,6 @@ const addDependencies = () => (tree: Tree, context: SchematicContext) => { const devDepsToAdd = { 'nativescript-dev-webpack': '~1.5.0', - '@nativescript/schematics': '~2.0.0', '@nativescript/tslint-rules': '~0.0.5', }; packageJson.devDependencies = {...devDepsToAdd, ...packageJson.devDependencies}; diff --git a/src/add-ns/index_spec.ts b/src/add-ns/index_spec.ts index cb4a6b1..10659bc 100644 --- a/src/add-ns/index_spec.ts +++ b/src/add-ns/index_spec.ts @@ -84,7 +84,6 @@ describe('Add {N} schematic', () => { expect(dependencies['reflect-metadata']).toBeDefined(); expect(devDependencies['nativescript-dev-webpack']).toBeDefined(); - expect(devDependencies['@nativescript/schematics']).toBeDefined(); expect(devDependencies['@nativescript/tslint-rules']).toBeDefined(); }); diff --git a/src/ng-new/application/_files/package.json b/src/ng-new/application/_files/package.json index 280a48a..1ae12e2 100644 --- a/src/ng-new/application/_files/package.json +++ b/src/ng-new/application/_files/package.json @@ -11,7 +11,6 @@ "@angular/compiler": "~9.1.0", "@angular/core": "~9.1.0", "@angular/forms": "~9.1.0", - "@angular/http": "~9.1.0", "@angular/platform-browser": "~9.1.0", "@angular/platform-browser-dynamic": "~9.1.0", "@angular/router": "~9.1.0", @@ -26,8 +25,7 @@ "devDependencies": { "@angular/cli": "~9.1.0", "@angular/compiler-cli": "~9.1.0", - "@angular-devkit/core": "~9.1.0", - "@nativescript/schematics": "~2.0.0",<% if(webpack) { %> + "@angular-devkit/core": "~9.1.0",<% if(webpack) { %> "nativescript-dev-webpack": "~1.5.0", "@ngtools/webpack": "~9.1.0", <% } %>"typescript": "~3.8.3" diff --git a/src/ng-new/shared/_files/package.json b/src/ng-new/shared/_files/package.json index 811ab20..5e6b9b5 100644 --- a/src/ng-new/shared/_files/package.json +++ b/src/ng-new/shared/_files/package.json @@ -23,7 +23,6 @@ "@angular/compiler": "~9.1.0", "@angular/core": "~9.1.0", "@angular/forms": "~9.1.0", - "@angular/http": "~9.1.0", "@angular/platform-browser": "~9.1.0", "@angular/platform-browser-dynamic": "~9.1.0", "@angular/router": "~9.1.0", @@ -40,7 +39,6 @@ "@angular/cli": "~9.1.0", "@angular/compiler-cli": "~9.1.0", "@angular-devkit/build-angular": "~0.901.0", - "@nativescript/schematics": "~2.0.0", "@nativescript/tslint-rules": "~0.0.5", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3",