chore: remove devDependencies from package.json published to npm
Closes #4502
This commit is contained in:
parent
150cc22532
commit
9f688d314f
|
@ -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']);
|
||||
|
|
|
@ -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']});
|
||||
|
|
Loading…
Reference in New Issue