@zohodesk/react-cli 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
package/README.md
CHANGED
@@ -17,7 +17,7 @@ const appPath = process.cwd();
|
|
17
17
|
const isNodeModuleUnderAppFolder = __dirname.indexOf(appPath) !== -1;
|
18
18
|
const isWindows = (0, _os.platform)().toLowerCase() === 'win32';
|
19
19
|
|
20
|
-
const _getCliPath =
|
20
|
+
const _getCliPath = isNodeModuleUnderAppFolder ? libName => _path.default.join(__dirname, '..', '..', 'node_modules', '.bin', libName) : libName => libName;
|
21
21
|
|
22
22
|
const suffixExt = isWindows ? '.cmd' : '';
|
23
23
|
|
@@ -25,7 +25,7 @@ function requireLocalOrGlobal(moduleName, opts = {}) {
|
|
25
25
|
const {
|
26
26
|
local = true
|
27
27
|
} = opts;
|
28
|
-
const isRelativePath = moduleName === '.'; // NOTE: if starts with . then it only mean local
|
28
|
+
const isRelativePath = moduleName[0] === '.'; // NOTE: if starts with . then it only mean local
|
29
29
|
|
30
30
|
if (isRelativePath) {
|
31
31
|
global = false;
|
package/npm-shrinkwrap.json
CHANGED