@modern-js/create 3.0.0-alpha.0 → 3.0.0-alpha.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.
- package/dist/index.js +6 -25
- package/dist/rslib-runtime.js +28 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
3
|
import node_fs from "node:fs";
|
|
3
4
|
import node_path from "node:path";
|
|
4
5
|
import node_readline from "node:readline";
|
|
5
6
|
import { fileURLToPath } from "node:url";
|
|
6
|
-
|
|
7
|
+
__webpack_require__.add({
|
|
7
8
|
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js" (module, exports, __webpack_require__) {
|
|
8
9
|
module = __webpack_require__.nmd(module);
|
|
9
10
|
(function() {
|
|
@@ -4719,27 +4720,7 @@ var __webpack_modules__ = {
|
|
|
4719
4720
|
"../utils/compiled/lodash/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
4720
4721
|
module.exports = __webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js");
|
|
4721
4722
|
}
|
|
4722
|
-
};
|
|
4723
|
-
var __webpack_module_cache__ = {};
|
|
4724
|
-
function __webpack_require__(moduleId) {
|
|
4725
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
4726
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
4727
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
4728
|
-
id: moduleId,
|
|
4729
|
-
loaded: false,
|
|
4730
|
-
exports: {}
|
|
4731
|
-
};
|
|
4732
|
-
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
4733
|
-
module.loaded = true;
|
|
4734
|
-
return module.exports;
|
|
4735
|
-
}
|
|
4736
|
-
(()=>{
|
|
4737
|
-
__webpack_require__.nmd = (module)=>{
|
|
4738
|
-
module.paths = [];
|
|
4739
|
-
if (!module.children) module.children = [];
|
|
4740
|
-
return module;
|
|
4741
|
-
};
|
|
4742
|
-
})();
|
|
4723
|
+
});
|
|
4743
4724
|
class I18CLILanguageDetector {
|
|
4744
4725
|
formatShellLocale(rawLC) {
|
|
4745
4726
|
if (!rawLC) return '';
|
|
@@ -4757,8 +4738,8 @@ function getLocaleLanguage() {
|
|
|
4757
4738
|
const detector = new I18CLILanguageDetector();
|
|
4758
4739
|
return detector.detect();
|
|
4759
4740
|
}
|
|
4760
|
-
|
|
4761
|
-
const { isObject, isString } = lodash;
|
|
4741
|
+
const lodash = __webpack_require__("../utils/compiled/lodash/index.js");
|
|
4742
|
+
const { isObject: isObject, isString: isString } = lodash;
|
|
4762
4743
|
function getObjKeyMap(obj, prefix = '') {
|
|
4763
4744
|
const result = {};
|
|
4764
4745
|
Object.keys(obj).forEach((key)=>{
|
|
@@ -4767,7 +4748,7 @@ function getObjKeyMap(obj, prefix = '') {
|
|
|
4767
4748
|
});
|
|
4768
4749
|
return result;
|
|
4769
4750
|
}
|
|
4770
|
-
const { get } = lodash;
|
|
4751
|
+
const { get: get } = lodash;
|
|
4771
4752
|
class I18n {
|
|
4772
4753
|
format(msg, vars) {
|
|
4773
4754
|
return msg.replace(/\{(\w+)\}/g, (_match, capture)=>Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __webpack_modules__ = {};
|
|
2
|
+
var __webpack_module_cache__ = {};
|
|
3
|
+
function __webpack_require__(moduleId) {
|
|
4
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
+
id: moduleId,
|
|
8
|
+
loaded: false,
|
|
9
|
+
exports: {}
|
|
10
|
+
};
|
|
11
|
+
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
12
|
+
module.loaded = true;
|
|
13
|
+
return module.exports;
|
|
14
|
+
}
|
|
15
|
+
__webpack_require__.m = __webpack_modules__;
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.add = function(modules) {
|
|
18
|
+
Object.assign(__webpack_require__.m, modules);
|
|
19
|
+
};
|
|
20
|
+
})();
|
|
21
|
+
(()=>{
|
|
22
|
+
__webpack_require__.nmd = (module)=>{
|
|
23
|
+
module.paths = [];
|
|
24
|
+
if (!module.children) module.children = [];
|
|
25
|
+
return module;
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
export { __webpack_require__ };
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=20"
|
|
21
21
|
},
|
|
22
|
-
"version": "3.0.0-alpha.
|
|
22
|
+
"version": "3.0.0-alpha.1",
|
|
23
23
|
"jsnext:source": "./src/index.ts",
|
|
24
24
|
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"main": "./dist/index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"tsx": "^4.21.0",
|
|
39
|
-
"@rslib/core": "0.
|
|
39
|
+
"@rslib/core": "0.19.1",
|
|
40
40
|
"@types/node": "^20",
|
|
41
41
|
"typescript": "^5",
|
|
42
|
-
"@modern-js/i18n-utils": "3.0.0-alpha.
|
|
42
|
+
"@modern-js/i18n-utils": "3.0.0-alpha.1",
|
|
43
43
|
"@modern-js/rslib": "2.68.10"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|