Skip to content

Commit

Permalink
Added peerDependencies to package.json amendment.
Browse files Browse the repository at this point in the history
  • Loading branch information
garodrigadbe committed Jan 30, 2018
1 parent 8a2063a commit e731c02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,15 @@ function amendPackageJson() {
contents.module = `./esm5/${config.libName}.js`;
contents.es2015 = `./esm2015/${config.libName}.js`;
contents.typings = `./${config.libName}.d.ts`;

contents.scripts = contents.scripts || {};
contents.scripts['ngclib:build'] = 'ngclib build';

contents.peerDependencies = contents.peerDependencies || {};
contents.peerDependencies['@angular/core'] = '^5.0.0';
contents.peerDependencies['@angular/common'] = '^5.0.0';
contents.peerDependencies['rxjs'] = '^5.5.2';

return contents;
});
}
Expand Down

0 comments on commit e731c02

Please sign in to comment.