@zohodesk/react-cli 1.1.26-exp.2 → 1.1.26-exp.3
Sign up to get free protection for your applications and to get access to all the features.
package/README.md
CHANGED
package/lib/configs/resolvers.js
CHANGED
@@ -22,14 +22,10 @@ function moduleResolver(options) {
|
|
22
22
|
disableES5Transpile
|
23
23
|
} = options.app;
|
24
24
|
const customAlias = options.alias;
|
25
|
-
console.log(moduleResolvePath);
|
26
25
|
let required = moduleResolvePath && (0, _requireLocalOrGlobal.requireLocal)(moduleResolvePath);
|
27
|
-
console.log(required, 'requirwe');
|
28
26
|
|
29
27
|
if (!required) {
|
30
|
-
console.log('this global');
|
31
28
|
required = (0, _requireLocalOrGlobal.requireGlobal)('@zohodesk/client_packages_group');
|
32
|
-
console.log(required, 'what');
|
33
29
|
|
34
30
|
if (required) {
|
35
31
|
(0, _logger.messageLogger)('global `@zohodesk/client_packages_group` package taken as client_packages_group');
|
@@ -52,7 +48,7 @@ function loaderResolver(options) {
|
|
52
48
|
unstableDepsInverse
|
53
49
|
} = options;
|
54
50
|
return {
|
55
|
-
modules: unstableDepsInverse ? ['node_modules', _constants.cliNodeModulesPath] : [_constants.cliNodeModulesPath, 'node_modules'] // alias: libAlias
|
51
|
+
modules: unstableDepsInverse ? ['node_modules', _constants.cliNodeModulesPath] : ['node_modules/@zohodesk/client_packages_group', _constants.cliNodeModulesPath, 'node_modules'] // alias: libAlias
|
56
52
|
|
57
53
|
};
|
58
54
|
}
|
@@ -25,22 +25,19 @@ function requireLocalOrGlobal(moduleName, opts = {}) {
|
|
25
25
|
const {
|
26
26
|
local = true
|
27
27
|
} = opts;
|
28
|
-
const isRelativePath = moduleName[0] === '.';
|
29
|
-
console.log(moduleName, 'module name'); // NOTE: if starts with . then it only mean local
|
28
|
+
const isRelativePath = moduleName[0] === '.'; // NOTE: if starts with . then it only mean local
|
30
29
|
|
31
30
|
if (isRelativePath) {
|
32
31
|
global = false;
|
33
32
|
}
|
34
33
|
|
35
34
|
try {
|
36
|
-
const paths = [local && process.cwd(), global && globalNodeModules].filter(Boolean);
|
37
|
-
console.log('path', process.cwd(), local, global); // x({ paths, globalNodeModules, global, local, opts });
|
35
|
+
const paths = [local && process.cwd(), global && globalNodeModules].filter(Boolean); // x({ paths, globalNodeModules, global, local, opts });
|
38
36
|
|
39
37
|
const moduleResolvePath = require.resolve(moduleName, {
|
40
38
|
paths
|
41
39
|
});
|
42
40
|
|
43
|
-
console.log(moduleResolvePath, 'moduleResolvePath');
|
44
41
|
return require(moduleResolvePath);
|
45
42
|
} catch (error) {
|
46
43
|
// NOTE: since we return null we can check out side
|
package/npm-shrinkwrap.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zohodesk/react-cli",
|
3
|
-
"version": "1.1.26-exp.
|
3
|
+
"version": "1.1.26-exp.3",
|
4
4
|
"description": "A CLI tool for build modern web application and libraries",
|
5
5
|
"scripts": {
|
6
6
|
"init": "node ./lib/utils/init.js",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"@babel/preset-env": "7.11.0",
|
42
42
|
"@babel/preset-react": "7.10.4",
|
43
43
|
"@babel/runtime": "7.11.2",
|
44
|
-
"@zohodesk/client_packages_group": "1.0.2
|
44
|
+
"@zohodesk/client_packages_group": "1.0.2",
|
45
45
|
"@zohodesk/eslint-plugin-react-performance": "1.0.3",
|
46
46
|
"@zohodesk/eslint-plugin-zsecurity": "0.0.1-beta.4",
|
47
47
|
"@zohodesk/postcss-rtl": "1.5.2",
|