@modern-js/create 1.18.0 → 1.18.1

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 +7 -7
package/dist/index.js CHANGED
@@ -35556,8 +35556,10 @@ var require_path = __commonJSMin((exports) => {
35556
35556
  return mod && mod.__esModule ? mod : { "default": mod };
35557
35557
  };
35558
35558
  Object.defineProperty(exports, "__esModule", { value: true });
35559
- exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
35559
+ exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
35560
35560
  var path_1 = __importDefault(__require("path"));
35561
+ var os_1 = __importDefault(__require("os"));
35562
+ var fs_1 = __importDefault(__require("fs"));
35561
35563
  var compiled_1 = require_compiled();
35562
35564
  var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
35563
35565
  exports.isPathString = isPathString;
@@ -35567,6 +35569,14 @@ var require_path = __commonJSMin((exports) => {
35567
35569
  exports.normalizeOutputPath = normalizeOutputPath;
35568
35570
  var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
35569
35571
  exports.normalizeToPosixPath = normalizeToPosixPath;
35572
+ var getTemplatePath = (prefix) => {
35573
+ const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
35574
+ const parts = [tmpRoot];
35575
+ prefix && parts.push(prefix);
35576
+ parts.push((0, compiled_1.nanoid)());
35577
+ return path_1.default.resolve(...parts);
35578
+ };
35579
+ exports.getTemplatePath = getTemplatePath;
35570
35580
  });
35571
35581
  var require_runtimeExports = __commonJSMin((exports) => {
35572
35582
  "use strict";
@@ -36108,6 +36118,7 @@ var require_chainId = __commonJSMin((exports) => {
36108
36118
  IMAGE: "image",
36109
36119
  MEDIA: "media",
36110
36120
  JS: "js",
36121
+ JS_DATA_URI: "js-data-uri",
36111
36122
  TS: "ts",
36112
36123
  CSS: "css",
36113
36124
  LESS: "less",
@@ -36179,8 +36190,8 @@ var require_chainId = __commonJSMin((exports) => {
36179
36190
  MINI_CSS_EXTRACT: "mini-css-extract",
36180
36191
  REACT_FAST_REFRESH: "react-fast-refresh",
36181
36192
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
36182
- MODULE_DEPENDENCY_ERROR: "module-dependency-error",
36183
- SUBRESOURCE_INTEGRITY: "subresource-integrity"
36193
+ SUBRESOURCE_INTEGRITY: "subresource-integrity",
36194
+ ASSETS_RETRY: "ASSETS_RETRY"
36184
36195
  },
36185
36196
  MINIMIZER: {
36186
36197
  JS: "js",
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.18.0",
14
+ "version": "1.18.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -35,12 +35,12 @@
35
35
  "devDependencies": {
36
36
  "@babel/runtime": "^7.18.0",
37
37
  "@modern-js/codesmith": "^1.5.0",
38
- "@modern-js/generator-plugin-plugin": "2.3.3",
39
- "@modern-js/plugin-i18n": "1.18.0",
40
- "@modern-js/repo-generator": "2.3.3",
41
- "@modern-js/utils": "1.18.0",
42
- "@scripts/build": "1.18.0",
43
- "@scripts/jest-config": "1.18.0",
38
+ "@modern-js/generator-plugin-plugin": "2.3.4",
39
+ "@modern-js/plugin-i18n": "1.18.1",
40
+ "@modern-js/repo-generator": "2.3.4",
41
+ "@modern-js/utils": "1.18.1",
42
+ "@scripts/build": "1.18.1",
43
+ "@scripts/jest-config": "1.18.1",
44
44
  "@types/jest": "^27",
45
45
  "@types/node": "^14",
46
46
  "jest": "^27",