From 907862325a068ce7309aa1015f34d9b2d16b5e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=BCller?= Date: Wed, 8 Jun 2016 20:44:08 +0200 Subject: [PATCH] feat(npm): define dependencies as peerDependencies Closes #399 --- gulp/release.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gulp/release.js b/gulp/release.js index 7c4baf6a2..4a4d0afc4 100644 --- a/gulp/release.js +++ b/gulp/release.js @@ -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'); });