From 9f688d314f271a20360e6050eda199e5b1383d69 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Sat, 3 Oct 2015 18:48:44 +0200 Subject: [PATCH] chore: remove devDependencies from package.json published to npm Closes #4502 --- tools/broccoli/trees/dart_tree.ts | 9 +-------- tools/broccoli/trees/node_tree.ts | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/tools/broccoli/trees/dart_tree.ts b/tools/broccoli/trees/dart_tree.ts index efd98b8607..c9c11859e3 100644 --- a/tools/broccoli/trees/dart_tree.ts +++ b/tools/broccoli/trees/dart_tree.ts @@ -128,14 +128,7 @@ function getTemplatedPubspecsTree() { license: BASE_PACKAGE_JSON.license, contributors: BASE_PACKAGE_JSON.contributors, dependencies: BASE_PACKAGE_JSON.dependencies, - devDependencies: { - "yargs": BASE_PACKAGE_JSON.devDependencies['yargs'], - "gulp-sourcemaps": BASE_PACKAGE_JSON.devDependencies['gulp-sourcemaps'], - "gulp-traceur": BASE_PACKAGE_JSON.devDependencies['gulp-traceur'], - "gulp": BASE_PACKAGE_JSON.devDependencies['gulp'], - "gulp-rename": BASE_PACKAGE_JSON.devDependencies['gulp-rename'], - "through2": BASE_PACKAGE_JSON.devDependencies['through2'] - } + devDependencies: {} }; // Generate pubspec.yaml from templates. var pubspecs = modulesFunnel(['**/pubspec.yaml']); diff --git a/tools/broccoli/trees/node_tree.ts b/tools/broccoli/trees/node_tree.ts index e7fc06e96c..e0b7c45c9c 100644 --- a/tools/broccoli/trees/node_tree.ts +++ b/tools/broccoli/trees/node_tree.ts @@ -67,14 +67,7 @@ module.exports = function makeNodeTree(destinationPath) { contributors: BASE_PACKAGE_JSON.contributors, dependencies: BASE_PACKAGE_JSON.dependencies, devDependencies: BASE_PACKAGE_JSON.devDependencies, - defaultDevDependencies: { - "yargs": BASE_PACKAGE_JSON.devDependencies['yargs'], - "gulp-sourcemaps": BASE_PACKAGE_JSON.devDependencies['gulp-sourcemaps'], - "gulp-traceur": BASE_PACKAGE_JSON.devDependencies['gulp-traceur'], - "gulp": BASE_PACKAGE_JSON.devDependencies['gulp'], - "gulp-rename": BASE_PACKAGE_JSON.devDependencies['gulp-rename'], - "through2": BASE_PACKAGE_JSON.devDependencies['through2'] - } + defaultDevDependencies: {} }; var packageJsons = new Funnel(modulesTree, {include: ['**/package.json']});