Remove underscore as a dependency from the modules package.

This commit is contained in:
Ben Newman
2017-06-01 20:46:17 -04:00
parent 4b18c00cc6
commit 7472916236
2 changed files with 6 additions and 2 deletions

View File

@@ -10,7 +10,6 @@ Npm.depends({
});
Package.onUse(function(api) {
api.use("underscore");
api.use("modules-runtime");
api.mainModule("client.js", "client");
api.mainModule("server.js", "server");

View File

@@ -24,4 +24,9 @@ if (typeof process.env !== "object") {
process.env = {};
}
_.extend(process.env, meteorEnv);
var hasOwn = Object.prototype.hasOwnProperty;
for (var key in meteorEnv) {
if (hasOwn.call(meteorEnv, key)) {
process.env[key] = meteorEnv[key];
}
}