From d4f8dd66089d56cafb112cd7dcbdf288810e0d0d Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Fri, 17 Aug 2018 18:02:13 -0500 Subject: [PATCH] rev comment re: NODE_PATH --- cmd/cmd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/cmd.js b/cmd/cmd.js index 57b68e7c..798886fa 100644 --- a/cmd/cmd.js +++ b/cmd/cmd.js @@ -20,7 +20,9 @@ if (!process.env.EMBARK_PATH) { process.env.EMBARK_PATH = utils.joinPath(__dirname, '..'); } -// enable lookup of embark's own node_modules from within dapp scripts +// enable lookup of *global* embark's own node_modules from within dapp scripts +// this makes embark's dependencies trasitive dependencies of a dapp without the +// dapp explicitly specifying embark as a dependency in the dapp's package.json process.env.NODE_PATH = utils.joinPath(process.env.EMBARK_PATH, 'node_modules') + (process.platform === 'win32' ? ';' : ':') + (process.env.NODE_PATH || '');