mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user