@modern-js/utils 2.15.1-alpha.0 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/FileSizeReporter.js +69 -92
- package/dist/cjs/alias.js +34 -58
- package/dist/cjs/analyzeProject.js +58 -41
- package/dist/cjs/applyOptionsChain.js +15 -42
- package/dist/cjs/babel.js +28 -39
- package/dist/cjs/chainId.js +7 -25
- package/dist/cjs/clearConsole.js +7 -25
- package/dist/cjs/commands.js +14 -29
- package/dist/cjs/compatRequire.js +22 -38
- package/dist/cjs/compiled.js +120 -139
- package/dist/cjs/constants.js +143 -98
- package/dist/cjs/debug.js +8 -26
- package/dist/cjs/emptyDir.js +10 -28
- package/dist/cjs/ensureAbsolutePath.js +13 -36
- package/dist/cjs/ensureArray.js +10 -26
- package/dist/cjs/findExists.js +14 -37
- package/dist/cjs/generateMetaTags.js +12 -31
- package/dist/cjs/getBrowserslist.js +20 -27
- package/dist/cjs/getCoreJsVersion.js +49 -37
- package/dist/cjs/getEntryOptions.js +14 -29
- package/dist/cjs/getPackageManager.js +23 -46
- package/dist/cjs/getPort.js +26 -61
- package/dist/cjs/getServerConfig.js +51 -43
- package/dist/cjs/getTargetDir.js +50 -38
- package/dist/cjs/import.js +16 -27
- package/dist/cjs/index.js +61 -60
- package/dist/cjs/is/index.js +53 -68
- package/dist/cjs/is/nodeEnv.js +13 -29
- package/dist/cjs/is/platform.js +13 -26
- package/dist/cjs/is/type.js +14 -33
- package/dist/cjs/logger.js +54 -50
- package/dist/cjs/monorepo.js +47 -78
- package/dist/cjs/nodeEnv.js +29 -31
- package/dist/cjs/path.js +42 -63
- package/dist/cjs/pathSerializer.js +43 -51
- package/dist/cjs/plugin.js +11 -29
- package/dist/cjs/prettyInstructions.js +35 -68
- package/dist/cjs/printBuildError.js +15 -37
- package/dist/cjs/react.js +18 -41
- package/dist/cjs/readTsConfig.js +21 -39
- package/dist/cjs/removeSlash.js +13 -27
- package/dist/cjs/resolve.js +25 -31
- package/dist/cjs/routes.js +22 -42
- package/dist/cjs/runtime/index.js +18 -17
- package/dist/cjs/runtime/parsed.js +8 -26
- package/dist/cjs/runtimeExports.js +31 -56
- package/dist/cjs/ssr.js +13 -26
- package/dist/cjs/storage.js +51 -41
- package/dist/cjs/testUtils.js +8 -29
- package/dist/cjs/types.js +4 -15
- package/dist/cjs/universal/constants.js +13 -26
- package/dist/cjs/universal/formatWebpack.js +16 -44
- package/dist/cjs/universal/nestedRoutes.js +94 -46
- package/dist/cjs/universal/pluginDagSort.js +58 -0
- package/dist/cjs/universal/remixRouter.js +18 -17
- package/dist/cjs/universal/serialize.js +16 -37
- package/dist/cjs/version.js +25 -41
- package/dist/cjs/wait.js +7 -25
- package/dist/cjs/watch.js +69 -43
- package/dist/esm/FileSizeReporter.js +40 -52
- package/dist/esm/alias.js +9 -19
- package/dist/esm/analyzeProject.js +3 -7
- package/dist/esm/applyOptionsChain.js +5 -17
- package/dist/esm/babel.js +6 -8
- package/dist/esm/chainId.js +1 -4
- package/dist/esm/clearConsole.js +1 -4
- package/dist/esm/commands.js +6 -12
- package/dist/esm/compatRequire.js +10 -17
- package/dist/esm/compiled.js +32 -76
- package/dist/esm/constants.js +143 -89
- package/dist/esm/debug.js +1 -4
- package/dist/esm/emptyDir.js +1 -4
- package/dist/esm/ensureAbsolutePath.js +1 -4
- package/dist/esm/ensureArray.js +4 -5
- package/dist/esm/findExists.js +1 -4
- package/dist/esm/generateMetaTags.js +6 -10
- package/dist/esm/getBrowserslist.js +8 -6
- package/dist/esm/getCoreJsVersion.js +1 -4
- package/dist/esm/getEntryOptions.js +5 -5
- package/dist/esm/getPackageManager.js +1 -4
- package/dist/esm/getPort.js +10 -25
- package/dist/esm/getServerConfig.js +2 -9
- package/dist/esm/getTargetDir.js +1 -4
- package/dist/esm/import.js +3 -4
- package/dist/esm/is/index.js +18 -30
- package/dist/esm/is/nodeEnv.js +5 -12
- package/dist/esm/is/platform.js +2 -6
- package/dist/esm/is/type.js +8 -18
- package/dist/esm/logger.js +37 -17
- package/dist/esm/monorepo.js +21 -38
- package/dist/esm/nodeEnv.js +18 -11
- package/dist/esm/path.js +16 -23
- package/dist/esm/pathSerializer.js +21 -21
- package/dist/esm/plugin.js +1 -4
- package/dist/esm/prettyInstructions.js +13 -32
- package/dist/esm/printBuildError.js +4 -11
- package/dist/esm/react.js +1 -4
- package/dist/esm/readTsConfig.js +2 -6
- package/dist/esm/removeSlash.js +3 -8
- package/dist/esm/resolve.js +14 -11
- package/dist/esm/routes.js +3 -9
- package/dist/esm/runtime/parsed.js +2 -5
- package/dist/esm/runtimeExports.js +17 -22
- package/dist/esm/ssr.js +1 -4
- package/dist/esm/storage.js +2 -6
- package/dist/esm/testUtils.js +2 -8
- package/dist/esm/types.js +1 -0
- package/dist/esm/universal/constants.js +2 -6
- package/dist/esm/universal/formatWebpack.js +10 -22
- package/dist/esm/universal/nestedRoutes.js +41 -27
- package/dist/esm/universal/pluginDagSort.js +50 -0
- package/dist/esm/universal/serialize.js +4 -5
- package/dist/esm/version.js +5 -7
- package/dist/esm/wait.js +1 -3
- package/dist/esm/watch.js +14 -9
- package/dist/types/universal/pluginDagSort.d.ts +1 -0
- package/package.json +17 -5
package/dist/cjs/babel.js
CHANGED
@@ -1,33 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
6
|
for (var name in all)
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var babel_exports = {};
|
19
|
-
__export(babel_exports, {
|
20
|
-
applyUserBabelConfig: () => applyUserBabelConfig,
|
21
|
-
getBabelUtils: () => getBabelUtils
|
7
|
+
Object.defineProperty(target, name, {
|
8
|
+
enumerable: true,
|
9
|
+
get: all[name]
|
10
|
+
});
|
11
|
+
}
|
12
|
+
_export(exports, {
|
13
|
+
getBabelUtils: () => getBabelUtils,
|
14
|
+
applyUserBabelConfig: () => applyUserBabelConfig
|
22
15
|
});
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
var import_path2 = require("./path");
|
16
|
+
const _path = require("path");
|
17
|
+
const _applyOptionsChain = require("./applyOptionsChain");
|
18
|
+
const _ensureArray = require("./ensureArray");
|
19
|
+
const _path1 = require("./path");
|
28
20
|
const formatPath = (originPath) => {
|
29
|
-
if ((0,
|
30
|
-
return originPath.split(
|
21
|
+
if ((0, _path.isAbsolute)(originPath)) {
|
22
|
+
return originPath.split(_path.sep).join("/");
|
31
23
|
}
|
32
24
|
return originPath;
|
33
25
|
};
|
@@ -58,7 +50,7 @@ const removePlugins = (plugins, config) => {
|
|
58
50
|
if (!config.plugins) {
|
59
51
|
return;
|
60
52
|
}
|
61
|
-
const removeList = (0,
|
53
|
+
const removeList = (0, _ensureArray.ensureArray)(plugins);
|
62
54
|
config.plugins = config.plugins.filter((item) => {
|
63
55
|
const name = getPluginItemName(item);
|
64
56
|
if (name) {
|
@@ -71,7 +63,7 @@ const removePresets = (presets, config) => {
|
|
71
63
|
if (!config.presets) {
|
72
64
|
return;
|
73
65
|
}
|
74
|
-
const removeList = (0,
|
66
|
+
const removeList = (0, _ensureArray.ensureArray)(presets);
|
75
67
|
config.presets = config.presets.filter((item) => {
|
76
68
|
const name = getPluginItemName(item);
|
77
69
|
if (name) {
|
@@ -83,15 +75,17 @@ const removePresets = (presets, config) => {
|
|
83
75
|
const modifyPresetOptions = (presetName, options, presets = []) => {
|
84
76
|
presets.forEach((preset, index) => {
|
85
77
|
if (Array.isArray(preset)) {
|
86
|
-
if (typeof preset[0] === "string" && (0,
|
78
|
+
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
87
79
|
preset[1] = {
|
88
80
|
...preset[1] || {},
|
89
81
|
...options
|
90
|
-
// `options` is specific to different presets
|
91
82
|
};
|
92
83
|
}
|
93
|
-
} else if (typeof preset === "string" && (0,
|
94
|
-
presets[index] = [
|
84
|
+
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
85
|
+
presets[index] = [
|
86
|
+
preset,
|
87
|
+
options
|
88
|
+
];
|
95
89
|
}
|
96
90
|
});
|
97
91
|
};
|
@@ -118,12 +112,7 @@ const applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils)
|
|
118
112
|
...getBabelUtils(defaultOptions),
|
119
113
|
...extraBabelUtils
|
120
114
|
};
|
121
|
-
return (0,
|
115
|
+
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
122
116
|
}
|
123
117
|
return defaultOptions;
|
124
118
|
};
|
125
|
-
// Annotate the CommonJS export names for ESM import in node:
|
126
|
-
0 && (module.exports = {
|
127
|
-
applyUserBabelConfig,
|
128
|
-
getBabelUtils
|
129
|
-
});
|
package/dist/cjs/chainId.js
CHANGED
@@ -1,25 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
};
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var chainId_exports = {};
|
19
|
-
__export(chainId_exports, {
|
20
|
-
CHAIN_ID: () => CHAIN_ID
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "CHAIN_ID", {
|
6
|
+
enumerable: true,
|
7
|
+
get: () => CHAIN_ID
|
21
8
|
});
|
22
|
-
module.exports = __toCommonJS(chainId_exports);
|
23
9
|
const CHAIN_ID = {
|
24
10
|
/** Predefined rules */
|
25
11
|
RULE: {
|
@@ -190,7 +176,3 @@ const CHAIN_ID = {
|
|
190
176
|
TS_CONFIG_PATHS: "ts-config-paths"
|
191
177
|
}
|
192
178
|
};
|
193
|
-
// Annotate the CommonJS export names for ESM import in node:
|
194
|
-
0 && (module.exports = {
|
195
|
-
CHAIN_ID
|
196
|
-
});
|
package/dist/cjs/clearConsole.js
CHANGED
@@ -1,31 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
};
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var clearConsole_exports = {};
|
19
|
-
__export(clearConsole_exports, {
|
20
|
-
clearConsole: () => clearConsole
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "clearConsole", {
|
6
|
+
enumerable: true,
|
7
|
+
get: () => clearConsole
|
21
8
|
});
|
22
|
-
module.exports = __toCommonJS(clearConsole_exports);
|
23
9
|
const clearConsole = () => {
|
24
10
|
if (process.stdout.isTTY && !process.env.DEBUG) {
|
25
11
|
process.stdout.write("\x1B[H\x1B[2J");
|
26
12
|
}
|
27
13
|
};
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
29
|
-
0 && (module.exports = {
|
30
|
-
clearConsole
|
31
|
-
});
|
package/dist/cjs/commands.js
CHANGED
@@ -1,31 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
6
|
for (var name in all)
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var commands_exports = {};
|
19
|
-
__export(commands_exports, {
|
7
|
+
Object.defineProperty(target, name, {
|
8
|
+
enumerable: true,
|
9
|
+
get: all[name]
|
10
|
+
});
|
11
|
+
}
|
12
|
+
_export(exports, {
|
13
|
+
getFullArgv: () => getFullArgv,
|
20
14
|
getArgv: () => getArgv,
|
21
15
|
getCommand: () => getCommand,
|
22
|
-
getFullArgv: () => getFullArgv,
|
23
16
|
isDevCommand: () => isDevCommand
|
24
17
|
});
|
25
|
-
module.exports = __toCommonJS(commands_exports);
|
26
18
|
const getFullArgv = () => {
|
27
|
-
var
|
28
|
-
return ((
|
19
|
+
var _process_env_MODERN_ARGV;
|
20
|
+
return ((_process_env_MODERN_ARGV = process.env.MODERN_ARGV) === null || _process_env_MODERN_ARGV === void 0 ? void 0 : _process_env_MODERN_ARGV.split(" ")) || process.argv;
|
29
21
|
};
|
30
22
|
const getArgv = () => {
|
31
23
|
return getFullArgv().slice(2);
|
@@ -39,10 +31,3 @@ const isDevCommand = () => {
|
|
39
31
|
const command = getCommand();
|
40
32
|
return command === "dev" || command === "start";
|
41
33
|
};
|
42
|
-
// Annotate the CommonJS export names for ESM import in node:
|
43
|
-
0 && (module.exports = {
|
44
|
-
getArgv,
|
45
|
-
getCommand,
|
46
|
-
getFullArgv,
|
47
|
-
isDevCommand
|
48
|
-
});
|
@@ -1,46 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
6
|
for (var name in all)
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var compatRequire_exports = {};
|
19
|
-
__export(compatRequire_exports, {
|
20
|
-
cleanRequireCache: () => cleanRequireCache,
|
7
|
+
Object.defineProperty(target, name, {
|
8
|
+
enumerable: true,
|
9
|
+
get: all[name]
|
10
|
+
});
|
11
|
+
}
|
12
|
+
_export(exports, {
|
21
13
|
compatRequire: () => compatRequire,
|
22
|
-
deleteRequireCache: () => deleteRequireCache,
|
23
14
|
dynamicImport: () => dynamicImport,
|
24
|
-
requireExistModule: () => requireExistModule
|
15
|
+
requireExistModule: () => requireExistModule,
|
16
|
+
cleanRequireCache: () => cleanRequireCache,
|
17
|
+
deleteRequireCache: () => deleteRequireCache
|
25
18
|
});
|
26
|
-
|
27
|
-
var import_findExists = require("./findExists");
|
19
|
+
const _findExists = require("./findExists");
|
28
20
|
const compatRequire = (filePath, interop = true) => {
|
29
21
|
const mod = require(filePath);
|
30
|
-
const rtnESMDefault = interop && (mod
|
22
|
+
const rtnESMDefault = interop && (mod === null || mod === void 0 ? void 0 : mod.__esModule);
|
31
23
|
return rtnESMDefault ? mod.default : mod;
|
32
24
|
};
|
33
|
-
const dynamicImport = new Function(
|
34
|
-
"modulePath",
|
35
|
-
"return import(modulePath)"
|
36
|
-
);
|
25
|
+
const dynamicImport = new Function("modulePath", "return import(modulePath)");
|
37
26
|
const requireExistModule = (filename, opt) => {
|
38
27
|
const final = {
|
39
|
-
extensions: [
|
28
|
+
extensions: [
|
29
|
+
".ts",
|
30
|
+
".js"
|
31
|
+
],
|
40
32
|
interop: true,
|
41
33
|
...opt
|
42
34
|
};
|
43
|
-
const exist = (0,
|
35
|
+
const exist = (0, _findExists.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
44
36
|
if (!exist) {
|
45
37
|
return null;
|
46
38
|
}
|
@@ -59,11 +51,3 @@ function deleteRequireCache(path) {
|
|
59
51
|
module.children = module.children.filter((item) => item.filename !== path);
|
60
52
|
}
|
61
53
|
}
|
62
|
-
// Annotate the CommonJS export names for ESM import in node:
|
63
|
-
0 && (module.exports = {
|
64
|
-
cleanRequireCache,
|
65
|
-
compatRequire,
|
66
|
-
deleteRequireCache,
|
67
|
-
dynamicImport,
|
68
|
-
requireExistModule
|
69
|
-
});
|
package/dist/cjs/compiled.js
CHANGED
@@ -1,142 +1,123 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
8
6
|
for (var name in all)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
)
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
gzipSize: () => import_gzip_size.default,
|
46
|
-
inquirer: () => inquirer,
|
47
|
-
json5: () => import_json5.default,
|
48
|
-
lodash: () => import_lodash.default,
|
7
|
+
Object.defineProperty(target, name, {
|
8
|
+
enumerable: true,
|
9
|
+
get: all[name]
|
10
|
+
});
|
11
|
+
}
|
12
|
+
_export(exports, {
|
13
|
+
fs: () => _fsextra.default,
|
14
|
+
ora: () => _ora.default,
|
15
|
+
glob: () => _glob.default,
|
16
|
+
yaml: () => _jsyaml.default,
|
17
|
+
chalk: () => _chalk.default,
|
18
|
+
debug: () => _debug.default,
|
19
|
+
slash: () => _slash.default,
|
20
|
+
execa: () => _execa.default,
|
21
|
+
json5: () => _json5.default,
|
22
|
+
upath: () => _upath.default,
|
23
|
+
pkgUp: () => _pkgup.default,
|
24
|
+
nanoid: () => _nanoid.nanoid,
|
25
|
+
semver: () => _semver.default,
|
26
|
+
dotenv: () => _dotenv.default,
|
27
|
+
lodash: () => _lodash.default,
|
28
|
+
globby: () => _globby.default,
|
29
|
+
address: () => _address.default,
|
30
|
+
signale: () => _signale.default,
|
31
|
+
urlJoin: () => _urljoin.default,
|
32
|
+
minimist: () => _minimist.default,
|
33
|
+
fastGlob: () => _fastglob.default,
|
34
|
+
filesize: () => _filesize.default,
|
35
|
+
gzipSize: () => _gzipsize.default,
|
36
|
+
stripAnsi: () => _stripansi.default,
|
37
|
+
dotenvExpand: () => _dotenvexpand.default,
|
38
|
+
browserslist: () => _browserslist.default,
|
39
|
+
recursiveReaddir: () => _recursivereaddir.default,
|
40
|
+
program: () => _commander.program,
|
41
|
+
Command: () => _commander.Command,
|
42
|
+
Signale: () => _signale.Signale,
|
49
43
|
mime: () => mime,
|
50
|
-
|
51
|
-
|
52
|
-
ora: () => import_ora.default,
|
53
|
-
pkgUp: () => import_pkg_up.default,
|
54
|
-
program: () => import_commander.program,
|
55
|
-
recursiveReaddir: () => import_recursive_readdir.default,
|
56
|
-
semver: () => import_semver.default,
|
57
|
-
signale: () => import_signale.default,
|
58
|
-
slash: () => import_slash.default,
|
59
|
-
stripAnsi: () => import_strip_ansi.default,
|
60
|
-
upath: () => import_upath.default,
|
61
|
-
urlJoin: () => import_url_join.default,
|
62
|
-
yaml: () => import_js_yaml.default
|
63
|
-
});
|
64
|
-
module.exports = __toCommonJS(compiled_exports);
|
65
|
-
var import_import = require("./import");
|
66
|
-
var import_fs_extra = __toESM(require("../compiled/fs-extra"));
|
67
|
-
var import_ora = __toESM(require("../compiled/ora"));
|
68
|
-
var import_glob = __toESM(require("../compiled/glob"));
|
69
|
-
var import_js_yaml = __toESM(require("../compiled/js-yaml"));
|
70
|
-
var import_chalk = __toESM(require("../compiled/chalk"));
|
71
|
-
var import_debug = __toESM(require("../compiled/debug"));
|
72
|
-
var import_slash = __toESM(require("../compiled/slash"));
|
73
|
-
var import_execa = __toESM(require("../compiled/execa"));
|
74
|
-
var import_json5 = __toESM(require("../compiled/json5"));
|
75
|
-
var import_upath = __toESM(require("../compiled/upath"));
|
76
|
-
var import_pkg_up = __toESM(require("../compiled/pkg-up"));
|
77
|
-
var import_nanoid = require("../compiled/nanoid");
|
78
|
-
var import_semver = __toESM(require("../compiled/semver"));
|
79
|
-
var import_dotenv = __toESM(require("../compiled/dotenv"));
|
80
|
-
var import_lodash = __toESM(require("../compiled/lodash"));
|
81
|
-
var import_globby = __toESM(require("../compiled/globby"));
|
82
|
-
var import_address = __toESM(require("../compiled/address"));
|
83
|
-
var import_signale = __toESM(require("../compiled/signale"));
|
84
|
-
var import_url_join = __toESM(require("../compiled/url-join"));
|
85
|
-
var import_minimist = __toESM(require("../compiled/minimist"));
|
86
|
-
var import_fast_glob = __toESM(require("../compiled/fast-glob"));
|
87
|
-
var import_filesize = __toESM(require("../compiled/filesize"));
|
88
|
-
var import_gzip_size = __toESM(require("../compiled/gzip-size"));
|
89
|
-
var import_strip_ansi = __toESM(require("../compiled/strip-ansi"));
|
90
|
-
var import_dotenv_expand = __toESM(require("../compiled/dotenv-expand"));
|
91
|
-
var import_browserslist = __toESM(require("../compiled/browserslist"));
|
92
|
-
var import_recursive_readdir = __toESM(require("../compiled/recursive-readdir"));
|
93
|
-
var import_commander = require("../compiled/commander");
|
94
|
-
var import_signale2 = require("../compiled/signale");
|
95
|
-
const mime = import_import.Import.lazy(
|
96
|
-
"../compiled/mime-types",
|
97
|
-
require
|
98
|
-
);
|
99
|
-
const chokidar = import_import.Import.lazy(
|
100
|
-
"../compiled/chokidar",
|
101
|
-
require
|
102
|
-
);
|
103
|
-
const inquirer = import_import.Import.lazy(
|
104
|
-
"../compiled/inquirer",
|
105
|
-
require
|
106
|
-
);
|
107
|
-
// Annotate the CommonJS export names for ESM import in node:
|
108
|
-
0 && (module.exports = {
|
109
|
-
Command,
|
110
|
-
Signale,
|
111
|
-
address,
|
112
|
-
browserslist,
|
113
|
-
chalk,
|
114
|
-
chokidar,
|
115
|
-
debug,
|
116
|
-
dotenv,
|
117
|
-
dotenvExpand,
|
118
|
-
execa,
|
119
|
-
fastGlob,
|
120
|
-
filesize,
|
121
|
-
fs,
|
122
|
-
glob,
|
123
|
-
globby,
|
124
|
-
gzipSize,
|
125
|
-
inquirer,
|
126
|
-
json5,
|
127
|
-
lodash,
|
128
|
-
mime,
|
129
|
-
minimist,
|
130
|
-
nanoid,
|
131
|
-
ora,
|
132
|
-
pkgUp,
|
133
|
-
program,
|
134
|
-
recursiveReaddir,
|
135
|
-
semver,
|
136
|
-
signale,
|
137
|
-
slash,
|
138
|
-
stripAnsi,
|
139
|
-
upath,
|
140
|
-
urlJoin,
|
141
|
-
yaml
|
44
|
+
chokidar: () => chokidar,
|
45
|
+
inquirer: () => inquirer
|
142
46
|
});
|
47
|
+
const _import = require("./import");
|
48
|
+
const _fsextra = /* @__PURE__ */ _interop_require_default(require("../compiled/fs-extra"));
|
49
|
+
const _ora = /* @__PURE__ */ _interop_require_default(require("../compiled/ora"));
|
50
|
+
const _glob = /* @__PURE__ */ _interop_require_default(require("../compiled/glob"));
|
51
|
+
const _jsyaml = /* @__PURE__ */ _interop_require_default(require("../compiled/js-yaml"));
|
52
|
+
const _chalk = /* @__PURE__ */ _interop_require_default(require("../compiled/chalk"));
|
53
|
+
const _debug = /* @__PURE__ */ _interop_require_default(require("../compiled/debug"));
|
54
|
+
const _slash = /* @__PURE__ */ _interop_require_default(require("../compiled/slash"));
|
55
|
+
const _execa = /* @__PURE__ */ _interop_require_default(require("../compiled/execa"));
|
56
|
+
const _json5 = /* @__PURE__ */ _interop_require_default(require("../compiled/json5"));
|
57
|
+
const _upath = /* @__PURE__ */ _interop_require_default(require("../compiled/upath"));
|
58
|
+
const _pkgup = /* @__PURE__ */ _interop_require_default(require("../compiled/pkg-up"));
|
59
|
+
const _nanoid = require("../compiled/nanoid");
|
60
|
+
const _semver = /* @__PURE__ */ _interop_require_default(require("../compiled/semver"));
|
61
|
+
const _dotenv = /* @__PURE__ */ _interop_require_default(require("../compiled/dotenv"));
|
62
|
+
const _lodash = /* @__PURE__ */ _interop_require_default(require("../compiled/lodash"));
|
63
|
+
const _globby = /* @__PURE__ */ _interop_require_default(require("../compiled/globby"));
|
64
|
+
const _address = /* @__PURE__ */ _interop_require_default(require("../compiled/address"));
|
65
|
+
const _signale = /* @__PURE__ */ _interop_require_wildcard(require("../compiled/signale"));
|
66
|
+
const _urljoin = /* @__PURE__ */ _interop_require_default(require("../compiled/url-join"));
|
67
|
+
const _minimist = /* @__PURE__ */ _interop_require_default(require("../compiled/minimist"));
|
68
|
+
const _fastglob = /* @__PURE__ */ _interop_require_default(require("../compiled/fast-glob"));
|
69
|
+
const _filesize = /* @__PURE__ */ _interop_require_default(require("../compiled/filesize"));
|
70
|
+
const _gzipsize = /* @__PURE__ */ _interop_require_default(require("../compiled/gzip-size"));
|
71
|
+
const _stripansi = /* @__PURE__ */ _interop_require_default(require("../compiled/strip-ansi"));
|
72
|
+
const _dotenvexpand = /* @__PURE__ */ _interop_require_default(require("../compiled/dotenv-expand"));
|
73
|
+
const _browserslist = /* @__PURE__ */ _interop_require_default(require("../compiled/browserslist"));
|
74
|
+
const _recursivereaddir = /* @__PURE__ */ _interop_require_default(require("../compiled/recursive-readdir"));
|
75
|
+
const _commander = require("../compiled/commander");
|
76
|
+
function _interop_require_default(obj) {
|
77
|
+
return obj && obj.__esModule ? obj : {
|
78
|
+
default: obj
|
79
|
+
};
|
80
|
+
}
|
81
|
+
function _getRequireWildcardCache(nodeInterop) {
|
82
|
+
if (typeof WeakMap !== "function")
|
83
|
+
return null;
|
84
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
85
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
86
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
87
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
88
|
+
})(nodeInterop);
|
89
|
+
}
|
90
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
91
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
92
|
+
return obj;
|
93
|
+
}
|
94
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
95
|
+
return {
|
96
|
+
default: obj
|
97
|
+
};
|
98
|
+
}
|
99
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
100
|
+
if (cache && cache.has(obj)) {
|
101
|
+
return cache.get(obj);
|
102
|
+
}
|
103
|
+
var newObj = {};
|
104
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
105
|
+
for (var key in obj) {
|
106
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
107
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
108
|
+
if (desc && (desc.get || desc.set)) {
|
109
|
+
Object.defineProperty(newObj, key, desc);
|
110
|
+
} else {
|
111
|
+
newObj[key] = obj[key];
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
newObj.default = obj;
|
116
|
+
if (cache) {
|
117
|
+
cache.set(obj, newObj);
|
118
|
+
}
|
119
|
+
return newObj;
|
120
|
+
}
|
121
|
+
const mime = _import.Import.lazy("../compiled/mime-types", require);
|
122
|
+
const chokidar = _import.Import.lazy("../compiled/chokidar", require);
|
123
|
+
const inquirer = _import.Import.lazy("../compiled/inquirer", require);
|