@modern-js/repo-generator 2.3.3 → 2.3.4-alpha.0

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -3
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -130958,8 +130958,10 @@ var require_path2 = __commonJSMin((exports) => {
130958
130958
  return mod && mod.__esModule ? mod : { "default": mod };
130959
130959
  };
130960
130960
  Object.defineProperty(exports, "__esModule", { value: true });
130961
- exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
130961
+ exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
130962
130962
  var path_1 = __importDefault(__require("path"));
130963
+ var os_1 = __importDefault(__require("os"));
130964
+ var fs_1 = __importDefault(__require("fs"));
130963
130965
  var compiled_1 = require_compiled2();
130964
130966
  var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
130965
130967
  exports.isPathString = isPathString;
@@ -130969,6 +130971,14 @@ var require_path2 = __commonJSMin((exports) => {
130969
130971
  exports.normalizeOutputPath = normalizeOutputPath;
130970
130972
  var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
130971
130973
  exports.normalizeToPosixPath = normalizeToPosixPath;
130974
+ var getTemplatePath = (prefix) => {
130975
+ const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
130976
+ const parts = [tmpRoot];
130977
+ prefix && parts.push(prefix);
130978
+ parts.push((0, compiled_1.nanoid)());
130979
+ return path_1.default.resolve(...parts);
130980
+ };
130981
+ exports.getTemplatePath = getTemplatePath;
130972
130982
  });
130973
130983
  var require_runtimeExports2 = __commonJSMin((exports) => {
130974
130984
  "use strict";
@@ -131510,6 +131520,7 @@ var require_chainId2 = __commonJSMin((exports) => {
131510
131520
  IMAGE: "image",
131511
131521
  MEDIA: "media",
131512
131522
  JS: "js",
131523
+ JS_DATA_URI: "js-data-uri",
131513
131524
  TS: "ts",
131514
131525
  CSS: "css",
131515
131526
  LESS: "less",
@@ -131581,8 +131592,8 @@ var require_chainId2 = __commonJSMin((exports) => {
131581
131592
  MINI_CSS_EXTRACT: "mini-css-extract",
131582
131593
  REACT_FAST_REFRESH: "react-fast-refresh",
131583
131594
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
131584
- MODULE_DEPENDENCY_ERROR: "module-dependency-error",
131585
- SUBRESOURCE_INTEGRITY: "subresource-integrity"
131595
+ SUBRESOURCE_INTEGRITY: "subresource-integrity",
131596
+ ASSETS_RETRY: "ASSETS_RETRY"
131586
131597
  },
131587
131598
  MINIMIZER: {
131588
131599
  JS: "js",
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.3.3",
14
+ "version": "2.3.4-alpha.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/runtime": "^7.18.0",
26
- "@modern-js/base-generator": "2.3.3",
26
+ "@modern-js/base-generator": "2.3.4-alpha.0",
27
27
  "@modern-js/codesmith": "^1.5.0",
28
28
  "@modern-js/codesmith-api-app": "^1.5.0",
29
- "@modern-js/generator-common": "2.3.3",
30
- "@modern-js/generator-plugin": "2.3.3",
31
- "@modern-js/generator-utils": "2.3.3",
32
- "@modern-js/module-generator": "2.3.3",
33
- "@modern-js/monorepo-generator": "2.3.3",
34
- "@modern-js/mwa-generator": "2.3.3",
35
- "@modern-js/utils": "1.18.0",
36
- "@scripts/build": "1.18.0",
37
- "@scripts/jest-config": "1.18.0",
29
+ "@modern-js/generator-common": "2.3.4-alpha.0",
30
+ "@modern-js/generator-plugin": "2.3.4-alpha.0",
31
+ "@modern-js/generator-utils": "2.3.4-alpha.0",
32
+ "@modern-js/module-generator": "2.3.4-alpha.0",
33
+ "@modern-js/monorepo-generator": "2.3.4-alpha.0",
34
+ "@modern-js/mwa-generator": "2.3.4-alpha.0",
35
+ "@modern-js/utils": "1.18.1-alpha.0",
36
+ "@scripts/build": "1.18.1-alpha.0",
37
+ "@scripts/jest-config": "1.18.1-alpha.0",
38
38
  "@types/jest": "^27",
39
39
  "@types/node": "^14",
40
40
  "jest": "^27",