chore(npm): correct generated package json files.

This commit is contained in:
Tobias Bosch 2015-06-29 10:29:30 -07:00
parent c4e10ea9ac
commit 0f7dd62f16
4 changed files with 8 additions and 6 deletions

View File

@ -13,5 +13,5 @@
"rx": "<%= packageJson.dependencies['rx'] %>", "rx": "<%= packageJson.dependencies['rx'] %>",
"zone.js": "<%= packageJson.dependencies['zone.js'] %>" "zone.js": "<%= packageJson.dependencies['zone.js'] %>"
}, },
"devDependencies": <%= JSON.stringify(packageJson.devDependencies) %> "devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>
} }

View File

@ -13,5 +13,5 @@
"rx": "<%= packageJson.dependencies['rx'] %>", "rx": "<%= packageJson.dependencies['rx'] %>",
"zone.js": "<%= packageJson.dependencies['zone.js'] %>" "zone.js": "<%= packageJson.dependencies['zone.js'] %>"
}, },
"devDependencies": <%= JSON.stringify(packageJson.devDependencies) %> "devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>
} }

View File

@ -9,11 +9,12 @@
"license": "<%= packageJson.license %>", "license": "<%= packageJson.license %>",
"dependencies": { "dependencies": {
"angular2": "<%= packageJson.version %>", "angular2": "<%= packageJson.version %>",
"firefox-profile": "<%= packageJson.devDependencies['firefox-profile'] %>",
"jpm": "<%= packageJson.devDependencies.jpm %>",
"traceur": "<%= packageJson.dependencies.traceur %>", "traceur": "<%= packageJson.dependencies.traceur %>",
"selenium-webdriver": "<%= packageJson.dependencies['selenium-webdriver'] %>", "selenium-webdriver": "<%= packageJson.dependencies['selenium-webdriver'] %>",
"reflect-metadata": "<%= packageJson.dependencies['reflect-metadata'] %>" "reflect-metadata": "<%= packageJson.dependencies['reflect-metadata'] %>"
}, },
"devDependencies": <%= JSON.stringify(packageJson.devDependencies) %> "optionalDependencies": {
"jpm": "<%= packageJson.devDependencies.jpm %>",
"firefox-profile": "<%= packageJson.devDependencies['firefox-profile'] %>"
}
} }

View File

@ -63,7 +63,8 @@ module.exports = function makeNodeTree(destinationPath) {
license: BASE_PACKAGE_JSON.license, license: BASE_PACKAGE_JSON.license,
contributors: BASE_PACKAGE_JSON.contributors, contributors: BASE_PACKAGE_JSON.contributors,
dependencies: BASE_PACKAGE_JSON.dependencies, dependencies: BASE_PACKAGE_JSON.dependencies,
devDependencies: { devDependencies: BASE_PACKAGE_JSON.devDependencies,
defaultDevDependencies: {
"yargs": BASE_PACKAGE_JSON.devDependencies['yargs'], "yargs": BASE_PACKAGE_JSON.devDependencies['yargs'],
"gulp-sourcemaps": BASE_PACKAGE_JSON.devDependencies['gulp-sourcemaps'], "gulp-sourcemaps": BASE_PACKAGE_JSON.devDependencies['gulp-sourcemaps'],
"gulp-traceur": BASE_PACKAGE_JSON.devDependencies['gulp-traceur'], "gulp-traceur": BASE_PACKAGE_JSON.devDependencies['gulp-traceur'],