Skip to content

Commit

Permalink
fix(@schematics/angular): update to ng-packagr v3
Browse files Browse the repository at this point in the history
  • Loading branch information
dherges authored and hansl committed Jun 6, 2018
1 parent ba5faa8 commit be9108d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_ng_packagr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"rxjs": "^6.0.0"
},
"peerDependencies": {
"ng-packagr": "^3.0.0"
"ng-packagr": "^2.2.0 || ^3.0.0 || ^4.0.0-rc.0"
}
}
6 changes: 3 additions & 3 deletions packages/schematics/angular/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ function addDependenciesToPackageJson() {
'@angular/compiler-cli': latestVersions.Angular,
'@angular-devkit/build-ng-packagr': latestVersions.DevkitBuildNgPackagr,
'@angular-devkit/build-angular': latestVersions.DevkitBuildNgPackagr,
'ng-packagr': '^3.0.0-rc.2',
'tsickle': '>=0.25.5',
'tslib': '^1.7.1',
'ng-packagr': '^3.0.0',
'tsickle': '>=0.29.0',
'tslib': '^1.9.0',
'typescript': latestVersions.TypeScript,
// De-structure last keeps existing user dependencies.
...json.devDependencies,
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/library/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('Library Schematic', () => {
const tree = schematicRunner.runSchematic('library', defaultOptions, workspaceTree);

const packageJson = getJsonFileContent(tree, 'package.json');
expect(packageJson.devDependencies['ng-packagr']).toEqual('^3.0.0-rc.2');
expect(packageJson.devDependencies['ng-packagr']).toEqual('^3.0.0');
expect(packageJson.devDependencies['@angular-devkit/build-ng-packagr'])
.toEqual(latestVersions.DevkitBuildNgPackagr);
});
Expand Down

0 comments on commit be9108d

Please sign in to comment.