Files
meteor/tools/static-assets/server/server-json.js
Ben Newman ff023e9c37 Make npmRequire check node_modules paths from control files, too.
Because symlinking is impossible on Windows, and copying node_modules
files is too slow, we can't just symlink/copy all node_modules files into
.meteor/local/build/programs/server/npm like we do for other platforms, so
we have to search for them where they are.

Part of #6500.
2016-03-17 20:59:48 -04:00

5 lines
174 B
JavaScript

var fs = require("fs");
var path = require("path");
var serverJsonPath = path.resolve(process.argv[2]);
module.exports = JSON.parse(fs.readFileSync(serverJsonPath, 'utf8'));