Skip to content

Commit

Permalink
feat(npm): define dependencies as peerDependencies
Browse files Browse the repository at this point in the history
Closes #399
Closes #403
  • Loading branch information
sebholstein committed Jun 8, 2016
1 parent 976d075 commit b85ad0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gulp/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ gulp.task('createPackageJson', () => {
// remove devDependencies (as there are important for the sourcecode only)
delete basePkgJson.devDependencies;

// transform dependencies to peerDependencies for the release
basePkgJson.peerDependencies = Object.assign({}, basePkgJson.dependencies);
basePkgJson.dependencies = {};

const filepath = path.join(__dirname, '../dist/package.json');
fs.writeFileSync(filepath, JSON.stringify(basePkgJson, null, 2), 'utf-8');
});
Expand Down

0 comments on commit b85ad0e

Please sign in to comment.