chore: remove devDependencies from package.json published to npm

Closes #4502
This commit is contained in:
Pawel Kozlowski 2015-10-03 18:48:44 +02:00
parent 150cc22532
commit 9f688d314f
2 changed files with 2 additions and 16 deletions

View File

@ -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']);

View File

@ -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']});