@zohodesk/react-cli 1.1.26-exp.1 → 1.1.26-exp.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -67,7 +67,7 @@ Now to run app
67
67
  enable: true,
68
68
  className: <ID of the tag before which all async CSS chunks should be rendered.>
69
69
  }
70
- ```
70
+ ```
71
71
 
72
72
 
73
73
  # 1.1.25 (12-08-2024)
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.23",
3
+ "version": "1.1.26-exp.2",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -2010,6 +2010,17 @@
2010
2010
  "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz",
2011
2011
  "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g=="
2012
2012
  },
2013
+ "@reduxjs/toolkit": {
2014
+ "version": "2.3.0",
2015
+ "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.3.0.tgz",
2016
+ "integrity": "sha512-WC7Yd6cNGfHx8zf+iu+Q1UPTfEcXhQ+ATi7CV1hlrSAaQBdlPzg7Ww/wJHNQem7qG9rxmWoFCDCPubSvFObGzA==",
2017
+ "requires": {
2018
+ "immer": "^10.0.3",
2019
+ "redux": "^5.0.1",
2020
+ "redux-thunk": "^3.1.0",
2021
+ "reselect": "^5.1.0"
2022
+ }
2023
+ },
2013
2024
  "@sindresorhus/is": {
2014
2025
  "version": "0.14.0",
2015
2026
  "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",
@@ -2395,10 +2406,11 @@
2395
2406
  "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="
2396
2407
  },
2397
2408
  "@zohodesk/client_packages_group": {
2398
- "version": "1.0.2",
2399
- "resolved": "https://registry.npmjs.org/@zohodesk/client_packages_group/-/client_packages_group-1.0.2.tgz",
2400
- "integrity": "sha512-4fVRD/lICzLY1yI+s4dCGayCLlhe81GPjalQIFqSvW8P9Zn8pwX9ThH6eclFI3OPzFDWMb8GKu2Yg9fJyzNsfA==",
2409
+ "version": "1.0.2-exp.4-redux",
2410
+ "resolved": "https://registry.npmjs.org/@zohodesk/client_packages_group/-/client_packages_group-1.0.2-exp.4-redux.tgz",
2411
+ "integrity": "sha512-wqm9hVjE8xtlY19PLS8QWtUlzcv+jdVYXr4Fh2QwDkyjA0tyTcHl4elGDQSQcIfrztr/5gET7Mvx7naTmfsH2A==",
2401
2412
  "requires": {
2413
+ "@reduxjs/toolkit": "^2.2.8",
2402
2414
  "@zohodesk/datetimejs": "1.0.0-beta.9",
2403
2415
  "@zohodesk/normalizer": "1.0.2",
2404
2416
  "core-js": "3.6.5",
@@ -2418,11 +2430,8 @@
2418
2430
  "react-router": "5.2.0",
2419
2431
  "react-router-redux": "4.0.8",
2420
2432
  "react-transition-group": "2.7.1",
2421
- "redux": "4.0.5",
2422
2433
  "redux-logger": "3.0.6",
2423
2434
  "redux-router-middleware": "1.0.0-beta.22",
2424
- "redux-thunk": "2.3.0",
2425
- "reselect": "4.0.0",
2426
2435
  "selectn": "1.1.2",
2427
2436
  "simple-normalizr": "1.2.5",
2428
2437
  "velocity-react": "1.4.3"
@@ -7157,6 +7166,11 @@
7157
7166
  "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
7158
7167
  "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="
7159
7168
  },
7169
+ "immer": {
7170
+ "version": "10.1.1",
7171
+ "resolved": "https://registry.npmjs.org/immer/-/immer-10.1.1.tgz",
7172
+ "integrity": "sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw=="
7173
+ },
7160
7174
  "import-cwd": {
7161
7175
  "version": "2.1.0",
7162
7176
  "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz",
@@ -9775,17 +9789,17 @@
9775
9789
  },
9776
9790
  "dependencies": {
9777
9791
  "@babel/runtime": {
9778
- "version": "7.21.0",
9779
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz",
9780
- "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==",
9792
+ "version": "7.26.0",
9793
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz",
9794
+ "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==",
9781
9795
  "requires": {
9782
- "regenerator-runtime": "^0.13.11"
9796
+ "regenerator-runtime": "^0.14.0"
9783
9797
  }
9784
9798
  },
9785
9799
  "regenerator-runtime": {
9786
- "version": "0.13.11",
9787
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
9788
- "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg=="
9800
+ "version": "0.14.1",
9801
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
9802
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
9789
9803
  }
9790
9804
  }
9791
9805
  },
@@ -11802,9 +11816,9 @@
11802
11816
  "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="
11803
11817
  },
11804
11818
  "path-to-regexp": {
11805
- "version": "1.8.0",
11806
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz",
11807
- "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==",
11819
+ "version": "1.9.0",
11820
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.9.0.tgz",
11821
+ "integrity": "sha512-xIp7/apCFJuUHdDLWe8O1HIkb0kQrOMb/0u6FXQjemHn/ii5LrIzU6bdECnsiTF/GjZkMEKg1xdiZwNqDYlZ6g==",
11808
11822
  "requires": {
11809
11823
  "isarray": "0.0.1"
11810
11824
  }
@@ -11921,13 +11935,9 @@
11921
11935
  }
11922
11936
  },
11923
11937
  "redux": {
11924
- "version": "4.0.5",
11925
- "resolved": "https://registry.npmjs.org/redux/-/redux-4.0.5.tgz",
11926
- "integrity": "sha512-VSz1uMAH24DM6MF72vcojpYPtrTUu3ByVWfPL1nPfVRb5mZVTve5GnNCUV53QM/BZ66xfWrm0CTWoM+Xlz8V1w==",
11927
- "requires": {
11928
- "loose-envify": "^1.4.0",
11929
- "symbol-observable": "^1.2.0"
11930
- }
11938
+ "version": "5.0.1",
11939
+ "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz",
11940
+ "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w=="
11931
11941
  },
11932
11942
  "redux-logger": {
11933
11943
  "version": "3.0.6",
@@ -11951,9 +11961,9 @@
11951
11961
  "integrity": "sha512-BNIBdAgbKAfe3cv4IeiECTbCZlllh45HvfhWTOB1gm1eFWgAGOb2vEOTzfBM/g46T19znkxn/7ravjvazckFfw=="
11952
11962
  },
11953
11963
  "redux-thunk": {
11954
- "version": "2.3.0",
11955
- "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.3.0.tgz",
11956
- "integrity": "sha512-km6dclyFnmcvxhAcrQV2AkZmPQjzPDjgVlQtR0EQjxZPyJ0BnMf3in1ryuR8A2qU0HldVRfxYXbFSKlI3N7Slw=="
11964
+ "version": "3.1.0",
11965
+ "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz",
11966
+ "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw=="
11957
11967
  },
11958
11968
  "regenerate": {
11959
11969
  "version": "1.4.2",
@@ -12178,9 +12188,9 @@
12178
12188
  "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="
12179
12189
  },
12180
12190
  "reselect": {
12181
- "version": "4.0.0",
12182
- "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.0.0.tgz",
12183
- "integrity": "sha512-qUgANli03jjAyGlnbYVAV5vvnOmJnODyABz51RdBN7M4WaVu8mecZWgyQNkG8Yqe3KRGRt0l4K4B3XVEULC4CA=="
12191
+ "version": "5.1.1",
12192
+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz",
12193
+ "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w=="
12184
12194
  },
12185
12195
  "resolve": {
12186
12196
  "version": "1.22.1",
@@ -13140,11 +13150,6 @@
13140
13150
  "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
13141
13151
  "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="
13142
13152
  },
13143
- "symbol-observable": {
13144
- "version": "1.2.0",
13145
- "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz",
13146
- "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ=="
13147
- },
13148
13153
  "symbol-tree": {
13149
13154
  "version": "3.2.4",
13150
13155
  "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
@@ -13342,9 +13347,9 @@
13342
13347
  }
13343
13348
  },
13344
13349
  "tiny-invariant": {
13345
- "version": "1.3.1",
13346
- "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",
13347
- "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw=="
13350
+ "version": "1.3.3",
13351
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
13352
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="
13348
13353
  },
13349
13354
  "tiny-warning": {
13350
13355
  "version": "1.0.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.26-exp.1",
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-exp.4-redux",
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",