Make package.json deterministic again

Now that we include it in published packages (as
node_modules/.package.json) we don't want it to change on every npm
update, or else we'll have to spuriously update package versions.

(The next release with this fix will spuriously update package versions,
though!)
This commit is contained in:
David Glasser
2015-10-06 17:43:47 -07:00
parent 8a8072bcd1
commit 38fbeaaa91

View File

@@ -405,9 +405,7 @@ var constructPackageJson = function (packageName, newPackageNpmDir,
npmDependencies) {
var packageJsonContents = JSON.stringify({
// name and version are unimportant but required for `npm install`.
// we used to put packageName in here, but it doesn't work when that
// has colons.
name: 'packages-for-meteor-smartpackage-' + utils.randomToken(),
name: 'packages-for-meteor-' + packageName.replace(/:/g, '-'),
version: '0.0.0',
dependencies: npmDependencies
});