@modern-js/upgrade-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.
- package/dist/index.js +14 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -130625,8 +130625,10 @@ var require_path2 = __commonJSMin((exports) => {
|
|
|
130625
130625
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
130626
130626
|
};
|
|
130627
130627
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
130628
|
-
exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
130628
|
+
exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
130629
130629
|
var path_1 = __importDefault(__require("path"));
|
|
130630
|
+
var os_1 = __importDefault(__require("os"));
|
|
130631
|
+
var fs_1 = __importDefault(__require("fs"));
|
|
130630
130632
|
var compiled_1 = require_compiled2();
|
|
130631
130633
|
var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
|
|
130632
130634
|
exports.isPathString = isPathString;
|
|
@@ -130636,6 +130638,14 @@ var require_path2 = __commonJSMin((exports) => {
|
|
|
130636
130638
|
exports.normalizeOutputPath = normalizeOutputPath;
|
|
130637
130639
|
var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
|
|
130638
130640
|
exports.normalizeToPosixPath = normalizeToPosixPath;
|
|
130641
|
+
var getTemplatePath = (prefix) => {
|
|
130642
|
+
const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
|
|
130643
|
+
const parts = [tmpRoot];
|
|
130644
|
+
prefix && parts.push(prefix);
|
|
130645
|
+
parts.push((0, compiled_1.nanoid)());
|
|
130646
|
+
return path_1.default.resolve(...parts);
|
|
130647
|
+
};
|
|
130648
|
+
exports.getTemplatePath = getTemplatePath;
|
|
130639
130649
|
});
|
|
130640
130650
|
var require_runtimeExports2 = __commonJSMin((exports) => {
|
|
130641
130651
|
"use strict";
|
|
@@ -131177,6 +131187,7 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
|
131177
131187
|
IMAGE: "image",
|
|
131178
131188
|
MEDIA: "media",
|
|
131179
131189
|
JS: "js",
|
|
131190
|
+
JS_DATA_URI: "js-data-uri",
|
|
131180
131191
|
TS: "ts",
|
|
131181
131192
|
CSS: "css",
|
|
131182
131193
|
LESS: "less",
|
|
@@ -131248,8 +131259,8 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
|
131248
131259
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
131249
131260
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
131250
131261
|
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
131251
|
-
|
|
131252
|
-
|
|
131262
|
+
SUBRESOURCE_INTEGRITY: "subresource-integrity",
|
|
131263
|
+
ASSETS_RETRY: "ASSETS_RETRY"
|
|
131253
131264
|
},
|
|
131254
131265
|
MINIMIZER: {
|
|
131255
131266
|
JS: "js",
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.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,11 +23,11 @@
|
|
|
23
23
|
"@modern-js/codesmith": "^1.5.0",
|
|
24
24
|
"@modern-js/codesmith-api-app": "^1.5.0",
|
|
25
25
|
"@modern-js/codesmith-api-json": "^1.5.0",
|
|
26
|
-
"@modern-js/generator-common": "2.3.
|
|
27
|
-
"@modern-js/generator-utils": "2.3.
|
|
28
|
-
"@modern-js/plugin-i18n": "1.18.0",
|
|
29
|
-
"@scripts/build": "1.18.0",
|
|
30
|
-
"@scripts/jest-config": "1.18.0",
|
|
26
|
+
"@modern-js/generator-common": "2.3.4-alpha.0",
|
|
27
|
+
"@modern-js/generator-utils": "2.3.4-alpha.0",
|
|
28
|
+
"@modern-js/plugin-i18n": "1.18.1-alpha.0",
|
|
29
|
+
"@scripts/build": "1.18.1-alpha.0",
|
|
30
|
+
"@scripts/jest-config": "1.18.1-alpha.0",
|
|
31
31
|
"@types/jest": "^27",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^27",
|