@modern-js/monorepo-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 +8 -8
package/dist/index.js CHANGED
@@ -131897,8 +131897,10 @@ var require_path2 = __commonJSMin((exports) => {
131897
131897
  return mod && mod.__esModule ? mod : { "default": mod };
131898
131898
  };
131899
131899
  Object.defineProperty(exports, "__esModule", { value: true });
131900
- exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
131900
+ exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
131901
131901
  var path_1 = __importDefault(__require("path"));
131902
+ var os_1 = __importDefault(__require("os"));
131903
+ var fs_1 = __importDefault(__require("fs"));
131902
131904
  var compiled_1 = require_compiled2();
131903
131905
  var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
131904
131906
  exports.isPathString = isPathString;
@@ -131908,6 +131910,14 @@ var require_path2 = __commonJSMin((exports) => {
131908
131910
  exports.normalizeOutputPath = normalizeOutputPath;
131909
131911
  var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
131910
131912
  exports.normalizeToPosixPath = normalizeToPosixPath;
131913
+ var getTemplatePath = (prefix) => {
131914
+ const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
131915
+ const parts = [tmpRoot];
131916
+ prefix && parts.push(prefix);
131917
+ parts.push((0, compiled_1.nanoid)());
131918
+ return path_1.default.resolve(...parts);
131919
+ };
131920
+ exports.getTemplatePath = getTemplatePath;
131911
131921
  });
131912
131922
  var require_runtimeExports2 = __commonJSMin((exports) => {
131913
131923
  "use strict";
@@ -132449,6 +132459,7 @@ var require_chainId2 = __commonJSMin((exports) => {
132449
132459
  IMAGE: "image",
132450
132460
  MEDIA: "media",
132451
132461
  JS: "js",
132462
+ JS_DATA_URI: "js-data-uri",
132452
132463
  TS: "ts",
132453
132464
  CSS: "css",
132454
132465
  LESS: "less",
@@ -132520,8 +132531,8 @@ var require_chainId2 = __commonJSMin((exports) => {
132520
132531
  MINI_CSS_EXTRACT: "mini-css-extract",
132521
132532
  REACT_FAST_REFRESH: "react-fast-refresh",
132522
132533
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
132523
- MODULE_DEPENDENCY_ERROR: "module-dependency-error",
132524
- SUBRESOURCE_INTEGRITY: "subresource-integrity"
132534
+ SUBRESOURCE_INTEGRITY: "subresource-integrity",
132535
+ ASSETS_RETRY: "ASSETS_RETRY"
132525
132536
  },
132526
132537
  MINIMIZER: {
132527
132538
  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": [
@@ -20,16 +20,16 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "@babel/runtime": "^7.18.0",
23
- "@modern-js/base-generator": "2.3.3",
24
- "@modern-js/changeset-generator": "2.3.3",
23
+ "@modern-js/base-generator": "2.3.4-alpha.0",
24
+ "@modern-js/changeset-generator": "2.3.4-alpha.0",
25
25
  "@modern-js/codesmith": "^1.5.0",
26
26
  "@modern-js/codesmith-api-app": "^1.5.0",
27
27
  "@modern-js/codesmith-api-json": "^1.5.0",
28
- "@modern-js/generator-common": "2.3.3",
29
- "@modern-js/generator-utils": "2.3.3",
30
- "@modern-js/plugin-i18n": "1.18.0",
31
- "@scripts/build": "1.18.0",
32
- "@scripts/jest-config": "1.18.0",
28
+ "@modern-js/generator-common": "2.3.4-alpha.0",
29
+ "@modern-js/generator-utils": "2.3.4-alpha.0",
30
+ "@modern-js/plugin-i18n": "1.18.1-alpha.0",
31
+ "@scripts/build": "1.18.1-alpha.0",
32
+ "@scripts/jest-config": "1.18.1-alpha.0",
33
33
  "@types/jest": "^27",
34
34
  "@types/node": "^14",
35
35
  "jest": "^27",