Files
meteor/scripts/dev-bundle-server-package.js
Ben Newman c18c1f5278 Replace setup.sh with npm-rebuild.js, and run it on npm install.
Implements https://github.com/meteor/meteor/issues/6537#issuecomment-205954797

The setup.sh script was only sometimes written previously, so no existing
deployment logic should rely on it existing.

On the other hand, all apps built by `meteor build` require running
`npm install` in the programs/server/ directory, so the install hook I
added to programs/server/package.json will ensure npm-rebuild.js is
invoked reliably.

Using a pure Node script means this code will work just as well on Windows
as on Linux or Darwin, though Linux is by far the most common deployment
platform for Meteor apps.

TODO Remember to rebuild the dev bundle before the next release!
2016-04-07 13:05:50 -04:00

47 lines
1.8 KiB
JavaScript

// This file contains a package.json for the dependencies of the *BUNDLED
// SERVER* (not the command-line tool).
// We put this in a JS file so that it can contain comments. It is processed
// into a package.json file by generate-dev-bundle.sh.
var fibersVersion;
if (process.platform === "win32") {
// We have a fork of fibers off of version 1.0.5 that searches farther for
// the isolate thread. This problem is a result of antivirus programs messing
// with the thread counts on Windows.
// Duplicated in dev-bundle-tool-package.js
fibersVersion = "https://github.com/meteor/node-fibers/tarball/d519f0c5971c33d99c902dad346b817e84bab001";
} else {
fibersVersion = "1.0.8";
}
var packageJson = {
name: "meteor-dev-bundle",
// Version is not important but is needed to prevent warnings.
version: "0.0.0",
scripts: {
install: "node npm-rebuild.js"
},
dependencies: {
fibers: fibersVersion,
"meteor-promise": "0.5.1",
// Not yet upgrading Underscore from 1.5.2 to 1.7.0 (which should be done
// in the package too) because we should consider using lodash instead
// (and there are backwards-incompatible changes either way).
underscore: "1.5.2",
"source-map-support": "https://github.com/meteor/node-source-map-support/tarball/1912478769d76e5df4c365e147f25896aee6375e",
semver: "4.1.0"
},
// These are only used in dev mode (by shell.js) so end-users can avoid
// needing to install them if they use `npm install --production`.
devDependencies: {
// 2.4.0 (more or less, the package.json change isn't committed) plus our PR
// https://github.com/williamwicks/node-eachline/pull/4
eachline: "https://github.com/meteor/node-eachline/tarball/ff89722ff94e6b6a08652bf5f44c8fffea8a21da",
chalk: "0.5.1"
}
};
process.stdout.write(JSON.stringify(packageJson, null, 2) + '\n');