@modern-js/entry-generator 2.3.3 → 2.3.4
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 +7 -7
package/dist/index.js
CHANGED
|
@@ -35557,8 +35557,10 @@ var require_path = __commonJSMin((exports) => {
|
|
|
35557
35557
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35558
35558
|
};
|
|
35559
35559
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35560
|
-
exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
35560
|
+
exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
35561
35561
|
var path_1 = __importDefault(__require("path"));
|
|
35562
|
+
var os_1 = __importDefault(__require("os"));
|
|
35563
|
+
var fs_1 = __importDefault(__require("fs"));
|
|
35562
35564
|
var compiled_1 = require_compiled();
|
|
35563
35565
|
var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
|
|
35564
35566
|
exports.isPathString = isPathString;
|
|
@@ -35568,6 +35570,14 @@ var require_path = __commonJSMin((exports) => {
|
|
|
35568
35570
|
exports.normalizeOutputPath = normalizeOutputPath;
|
|
35569
35571
|
var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
|
|
35570
35572
|
exports.normalizeToPosixPath = normalizeToPosixPath;
|
|
35573
|
+
var getTemplatePath = (prefix) => {
|
|
35574
|
+
const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
|
|
35575
|
+
const parts = [tmpRoot];
|
|
35576
|
+
prefix && parts.push(prefix);
|
|
35577
|
+
parts.push((0, compiled_1.nanoid)());
|
|
35578
|
+
return path_1.default.resolve(...parts);
|
|
35579
|
+
};
|
|
35580
|
+
exports.getTemplatePath = getTemplatePath;
|
|
35571
35581
|
});
|
|
35572
35582
|
var require_runtimeExports = __commonJSMin((exports) => {
|
|
35573
35583
|
"use strict";
|
|
@@ -36109,6 +36119,7 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36109
36119
|
IMAGE: "image",
|
|
36110
36120
|
MEDIA: "media",
|
|
36111
36121
|
JS: "js",
|
|
36122
|
+
JS_DATA_URI: "js-data-uri",
|
|
36112
36123
|
TS: "ts",
|
|
36113
36124
|
CSS: "css",
|
|
36114
36125
|
LESS: "less",
|
|
@@ -36180,8 +36191,8 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36180
36191
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
36181
36192
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
36182
36193
|
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
36183
|
-
|
|
36184
|
-
|
|
36194
|
+
SUBRESOURCE_INTEGRITY: "subresource-integrity",
|
|
36195
|
+
ASSETS_RETRY: "ASSETS_RETRY"
|
|
36185
36196
|
},
|
|
36186
36197
|
MINIMIZER: {
|
|
36187
36198
|
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",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@modern-js/codesmith": "^1.5.0",
|
|
24
24
|
"@modern-js/codesmith-api-app": "^1.5.0",
|
|
25
25
|
"@modern-js/codesmith-api-handlebars": "^1.5.0",
|
|
26
|
-
"@modern-js/generator-common": "2.3.
|
|
27
|
-
"@modern-js/generator-utils": "2.3.
|
|
28
|
-
"@modern-js/plugin-i18n": "1.18.
|
|
29
|
-
"@modern-js/utils": "1.18.
|
|
30
|
-
"@scripts/build": "1.18.
|
|
31
|
-
"@scripts/jest-config": "1.18.
|
|
26
|
+
"@modern-js/generator-common": "2.3.4",
|
|
27
|
+
"@modern-js/generator-utils": "2.3.4",
|
|
28
|
+
"@modern-js/plugin-i18n": "1.18.1",
|
|
29
|
+
"@modern-js/utils": "1.18.1",
|
|
30
|
+
"@scripts/build": "1.18.1",
|
|
31
|
+
"@scripts/jest-config": "1.18.1",
|
|
32
32
|
"@types/jest": "^27",
|
|
33
33
|
"@types/node": "^14",
|
|
34
34
|
"jest": "^27",
|