@modern-js/utils 2.21.1 → 2.22.1-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/FileSizeReporter.d.ts +16 -0
  3. package/dist/FileSizeReporter.js +162 -0
  4. package/dist/alias.d.ts +25 -0
  5. package/dist/alias.js +108 -0
  6. package/dist/analyzeProject.d.ts +2 -0
  7. package/dist/analyzeProject.js +71 -0
  8. package/dist/applyOptionsChain.d.ts +3 -0
  9. package/dist/applyOptionsChain.js +58 -0
  10. package/dist/babel.d.ts +3 -0
  11. package/dist/babel.js +136 -0
  12. package/dist/chainId.d.ts +244 -0
  13. package/dist/chainId.js +196 -0
  14. package/dist/cjs/cli/alias.js +12 -4
  15. package/dist/cjs/cli/applyOptionsChain.js +3 -1
  16. package/dist/cjs/cli/babel.js +6 -2
  17. package/dist/cjs/cli/commands.js +12 -4
  18. package/dist/cjs/cli/common.js +9 -3
  19. package/dist/cjs/cli/constants/chainId.js +3 -1
  20. package/dist/cjs/cli/constants/index.js +93 -31
  21. package/dist/cjs/cli/ensure.js +6 -2
  22. package/dist/cjs/cli/fs.js +6 -2
  23. package/dist/cjs/cli/get/config.js +3 -1
  24. package/dist/cjs/cli/get/data.js +24 -8
  25. package/dist/cjs/cli/get/index.js +6 -2
  26. package/dist/cjs/cli/is/config.js +18 -6
  27. package/dist/cjs/cli/is/env.js +18 -6
  28. package/dist/cjs/cli/is/platform.js +6 -2
  29. package/dist/cjs/cli/is/project.js +21 -7
  30. package/dist/cjs/cli/is/type.js +27 -9
  31. package/dist/cjs/cli/logger.js +6 -2
  32. package/dist/cjs/cli/monorepo.js +21 -7
  33. package/dist/cjs/cli/package.js +12 -4
  34. package/dist/cjs/cli/path.js +39 -13
  35. package/dist/cjs/cli/pathSerializer.js +12 -4
  36. package/dist/cjs/cli/port.js +3 -1
  37. package/dist/cjs/cli/prettyInstructions.js +6 -2
  38. package/dist/cjs/cli/print.js +3 -1
  39. package/dist/cjs/cli/require.js +18 -6
  40. package/dist/cjs/cli/routes.js +3 -1
  41. package/dist/cjs/cli/runtimeExports.js +3 -1
  42. package/dist/cjs/cli/test.js +3 -1
  43. package/dist/cjs/cli/watch.js +6 -2
  44. package/dist/cjs/compiled.js +99 -33
  45. package/dist/cjs/import.js +6 -2
  46. package/dist/cjs/runtime/nestedRoutes.js +6 -2
  47. package/dist/cjs/runtime-browser/parsed.js +8 -2
  48. package/dist/cjs/runtime-node/index.js +9 -3
  49. package/dist/cjs/runtime-node/serialize.js +3 -1
  50. package/dist/cjs/runtime-node/storage.js +3 -1
  51. package/dist/cjs/universal/constants.js +6 -2
  52. package/dist/cjs/universal/formatWebpack.js +3 -1
  53. package/dist/cjs/universal/pluginDagSort.js +3 -1
  54. package/dist/clearConsole.d.ts +1 -0
  55. package/dist/clearConsole.js +31 -0
  56. package/dist/commands.d.ts +4 -0
  57. package/dist/commands.js +48 -0
  58. package/dist/compatRequire.d.ts +13 -0
  59. package/dist/compatRequire.js +82 -0
  60. package/dist/compiled.d.ts +43 -0
  61. package/dist/compiled.js +142 -0
  62. package/dist/constants.d.ts +244 -0
  63. package/dist/constants.js +320 -0
  64. package/dist/debug.d.ts +6 -0
  65. package/dist/debug.js +28 -0
  66. package/dist/emptyDir.d.ts +1 -0
  67. package/dist/emptyDir.js +52 -0
  68. package/dist/ensureAbsolutePath.d.ts +7 -0
  69. package/dist/ensureAbsolutePath.js +38 -0
  70. package/dist/ensureArray.d.ts +1 -0
  71. package/dist/ensureArray.js +32 -0
  72. package/dist/esm/runtime-browser/parsed.js +5 -1
  73. package/dist/findExists.d.ts +6 -0
  74. package/dist/findExists.js +45 -0
  75. package/dist/generateMetaTags.d.ts +16 -0
  76. package/dist/generateMetaTags.js +61 -0
  77. package/dist/getBrowserslist.d.ts +2 -0
  78. package/dist/getBrowserslist.js +31 -0
  79. package/dist/getCoreJsVersion.d.ts +1 -0
  80. package/dist/getCoreJsVersion.js +46 -0
  81. package/dist/getEntryOptions.d.ts +1 -0
  82. package/dist/getEntryOptions.js +54 -0
  83. package/dist/getPackageManager.d.ts +1 -0
  84. package/dist/getPackageManager.js +87 -0
  85. package/dist/getPort.d.ts +14 -0
  86. package/dist/getPort.js +112 -0
  87. package/dist/getServerConfig.d.ts +1 -0
  88. package/dist/getServerConfig.js +67 -0
  89. package/dist/getTargetDir.d.ts +1 -0
  90. package/dist/getTargetDir.js +41 -0
  91. package/dist/import.d.ts +5 -0
  92. package/dist/import.js +33 -0
  93. package/dist/index.d.ts +44 -0
  94. package/dist/index.js +60 -0
  95. package/dist/is/index.d.ts +58 -0
  96. package/dist/is/index.js +114 -0
  97. package/dist/is/nodeEnv.d.ts +8 -0
  98. package/dist/is/nodeEnv.js +39 -0
  99. package/dist/is/platform.d.ts +2 -0
  100. package/dist/is/platform.js +30 -0
  101. package/dist/is/type.d.ts +8 -0
  102. package/dist/is/type.js +64 -0
  103. package/dist/logger.d.ts +65 -0
  104. package/dist/logger.js +145 -0
  105. package/dist/monorepo.d.ts +11 -0
  106. package/dist/monorepo.js +137 -0
  107. package/dist/nodeEnv.d.ts +3 -0
  108. package/dist/nodeEnv.js +81 -0
  109. package/dist/path.d.ts +18 -0
  110. package/dist/path.js +92 -0
  111. package/dist/pathSerializer.d.ts +16 -0
  112. package/dist/pathSerializer.js +76 -0
  113. package/dist/plugin.d.ts +2 -0
  114. package/dist/plugin.js +46 -0
  115. package/dist/prettyInstructions.d.ts +9 -0
  116. package/dist/prettyInstructions.js +112 -0
  117. package/dist/printBuildError.d.ts +8 -0
  118. package/dist/printBuildError.js +57 -0
  119. package/dist/react.d.ts +1 -0
  120. package/dist/react.js +64 -0
  121. package/dist/readTsConfig.d.ts +2 -0
  122. package/dist/readTsConfig.js +47 -0
  123. package/dist/removeSlash.d.ts +3 -0
  124. package/dist/removeSlash.js +33 -0
  125. package/dist/resolve.d.ts +13 -0
  126. package/dist/resolve.js +63 -0
  127. package/dist/routes.d.ts +2 -0
  128. package/dist/routes.js +58 -0
  129. package/dist/runtimeExports.d.ts +4 -0
  130. package/dist/runtimeExports.js +73 -0
  131. package/dist/ssr.d.ts +8 -0
  132. package/dist/ssr.js +30 -0
  133. package/dist/storage.d.ts +5 -0
  134. package/dist/storage.js +75 -0
  135. package/dist/testUtils.d.ts +5 -0
  136. package/dist/testUtils.js +38 -0
  137. package/dist/types.d.ts +1 -0
  138. package/dist/types.js +15 -0
  139. package/dist/universal/constants.d.ts +9 -0
  140. package/dist/universal/constants.js +30 -0
  141. package/dist/universal/formatWebpack.d.ts +13 -0
  142. package/dist/universal/formatWebpack.js +100 -0
  143. package/dist/universal/nestedRoutes.d.ts +8 -0
  144. package/dist/universal/nestedRoutes.js +131 -0
  145. package/dist/universal/remixRouter.d.ts +1 -0
  146. package/dist/universal/remixRouter.js +17 -0
  147. package/dist/universal/serialize.d.ts +1 -0
  148. package/dist/universal/serialize.js +40 -0
  149. package/dist/version.d.ts +2 -0
  150. package/dist/version.js +92 -0
  151. package/dist/wait.d.ts +2 -0
  152. package/dist/wait.js +29 -0
  153. package/dist/watch.d.ts +8 -0
  154. package/dist/watch.js +90 -0
  155. package/package.json +5 -5
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- lazyImport: () => lazy,
14
- Import: () => Import
13
+ lazyImport: function() {
14
+ return lazy;
15
+ },
16
+ Import: function() {
17
+ return Import;
18
+ }
15
19
  });
16
20
  const lazy = (moduleName, requireFn) => {
17
21
  const importLazyLocal = require("../compiled/import-lazy")(requireFn);
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- transformNestedRoutes: () => transformNestedRoutes,
14
- renderNestedRoute: () => renderNestedRoute
13
+ transformNestedRoutes: function() {
14
+ return transformNestedRoutes;
15
+ },
16
+ renderNestedRoute: function() {
17
+ return renderNestedRoute;
18
+ }
15
19
  });
16
20
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
17
21
  const _jsxruntime = require("react/jsx-runtime");
@@ -4,10 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "parsedJSONFromElement", {
6
6
  enumerable: true,
7
- get: () => parsedJSONFromElement
7
+ get: function() {
8
+ return parsedJSONFromElement;
9
+ }
8
10
  });
9
11
  const parsedJSONFromElement = (id) => {
10
- const element = document.getElementById(id);
12
+ const elements = document.querySelectorAll(`#${id}`);
13
+ if (elements.length === 0) {
14
+ return void 0;
15
+ }
16
+ const element = elements[elements.length - 1];
11
17
  if (element) {
12
18
  try {
13
19
  const parsed = JSON.parse((element === null || element === void 0 ? void 0 : element.textContent) || "");
@@ -10,9 +10,15 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- run: () => run,
14
- useHeaders: () => useHeaders,
15
- serializeJson: () => _serialize.serializeJson
13
+ run: function() {
14
+ return run;
15
+ },
16
+ useHeaders: function() {
17
+ return useHeaders;
18
+ },
19
+ serializeJson: function() {
20
+ return _serialize.serializeJson;
21
+ }
16
22
  });
17
23
  const _storage = require("./storage");
18
24
  const _serialize = require("./serialize");
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "serializeJson", {
6
6
  enumerable: true,
7
- get: () => serializeJson
7
+ get: function() {
8
+ return serializeJson;
9
+ }
8
10
  });
9
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
10
12
  const _serializejavascript = /* @__PURE__ */ _interop_require_default._(require("serialize-javascript"));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "createStorage", {
6
6
  enumerable: true,
7
- get: () => createStorage
7
+ get: function() {
8
+ return createStorage;
9
+ }
8
10
  });
9
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
10
12
  const _async_hooks = /* @__PURE__ */ _interop_require_wildcard._(require("async_hooks"));
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- ROUTE_MANIFEST: () => ROUTE_MANIFEST,
14
- HMR_SOCK_PATH: () => HMR_SOCK_PATH
13
+ ROUTE_MANIFEST: function() {
14
+ return ROUTE_MANIFEST;
15
+ },
16
+ HMR_SOCK_PATH: function() {
17
+ return HMR_SOCK_PATH;
18
+ }
15
19
  });
16
20
  const ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
17
21
  const HMR_SOCK_PATH = "/webpack-hmr";
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "formatWebpackMessages", {
6
6
  enumerable: true,
7
- get: () => formatWebpackMessages
7
+ get: function() {
8
+ return formatWebpackMessages;
9
+ }
8
10
  });
9
11
  const friendlySyntaxErrorLabel = "SyntaxError:";
10
12
  function isLikelyASyntaxError(message) {
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "pluginDagSort", {
6
6
  enumerable: true,
7
- get: () => pluginDagSort
7
+ get: function() {
8
+ return pluginDagSort;
9
+ }
8
10
  });
9
11
  const pluginDagSort = (plugins, key = "name", preKey = "pre", postKey = "post") => {
10
12
  let allLines = [];
@@ -0,0 +1 @@
1
+ export declare const clearConsole: () => void;
@@ -0,0 +1,31 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
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
21
+ });
22
+ module.exports = __toCommonJS(clearConsole_exports);
23
+ const clearConsole = () => {
24
+ if (process.stdout.isTTY && !process.env.DEBUG) {
25
+ process.stdout.write("\x1B[H\x1B[2J");
26
+ }
27
+ };
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ clearConsole
31
+ });
@@ -0,0 +1,4 @@
1
+ export declare const getFullArgv: () => string[];
2
+ export declare const getArgv: () => string[];
3
+ export declare const getCommand: () => string;
4
+ export declare const isDevCommand: () => boolean;
@@ -0,0 +1,48 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
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 commands_exports = {};
19
+ __export(commands_exports, {
20
+ getArgv: () => getArgv,
21
+ getCommand: () => getCommand,
22
+ getFullArgv: () => getFullArgv,
23
+ isDevCommand: () => isDevCommand
24
+ });
25
+ module.exports = __toCommonJS(commands_exports);
26
+ const getFullArgv = () => {
27
+ var _a;
28
+ return ((_a = process.env.MODERN_ARGV) == null ? void 0 : _a.split(" ")) || process.argv;
29
+ };
30
+ const getArgv = () => {
31
+ return getFullArgv().slice(2);
32
+ };
33
+ const getCommand = () => {
34
+ const args = getArgv();
35
+ const command = args[0];
36
+ return command;
37
+ };
38
+ const isDevCommand = () => {
39
+ const command = getCommand();
40
+ return command === "dev" || command === "start";
41
+ };
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ getArgv,
45
+ getCommand,
46
+ getFullArgv,
47
+ isDevCommand
48
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Require function compatible with esm and cjs module.
3
+ * @param filePath - File to required.
4
+ * @returns module export object.
5
+ */
6
+ export declare const compatRequire: (filePath: string, interop?: boolean) => any;
7
+ export declare const dynamicImport: Function;
8
+ export declare const requireExistModule: (filename: string, opt?: {
9
+ extensions?: string[];
10
+ interop?: boolean;
11
+ }) => any;
12
+ export declare const cleanRequireCache: (filelist: string[]) => void;
13
+ export declare function deleteRequireCache(path: string): void;
@@ -0,0 +1,82 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, { get: all[name], enumerable: true });
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (let key of __getOwnPropNames(from))
26
+ if (!__hasOwnProp.call(to, key) && key !== except)
27
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
+ }
29
+ return to;
30
+ };
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+ var compatRequire_exports = {};
33
+ __export(compatRequire_exports, {
34
+ cleanRequireCache: () => cleanRequireCache,
35
+ compatRequire: () => compatRequire,
36
+ deleteRequireCache: () => deleteRequireCache,
37
+ dynamicImport: () => dynamicImport,
38
+ requireExistModule: () => requireExistModule
39
+ });
40
+ module.exports = __toCommonJS(compatRequire_exports);
41
+ var import_findExists = require("./findExists");
42
+ const compatRequire = (filePath, interop = true) => {
43
+ const mod = require(filePath);
44
+ const rtnESMDefault = interop && (mod == null ? void 0 : mod.__esModule);
45
+ return rtnESMDefault ? mod.default : mod;
46
+ };
47
+ const dynamicImport = new Function(
48
+ "modulePath",
49
+ "return import(modulePath)"
50
+ );
51
+ const requireExistModule = (filename, opt) => {
52
+ const final = __spreadValues({
53
+ extensions: [".ts", ".js"],
54
+ interop: true
55
+ }, opt);
56
+ const exist = (0, import_findExists.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
57
+ if (!exist) {
58
+ return null;
59
+ }
60
+ return compatRequire(exist, final.interop);
61
+ };
62
+ const cleanRequireCache = (filelist) => {
63
+ filelist.forEach((filepath) => {
64
+ delete require.cache[filepath];
65
+ });
66
+ };
67
+ function deleteRequireCache(path) {
68
+ if (require.cache[path]) {
69
+ delete require.cache[path];
70
+ }
71
+ if (module.children) {
72
+ module.children = module.children.filter((item) => item.filename !== path);
73
+ }
74
+ }
75
+ // Annotate the CommonJS export names for ESM import in node:
76
+ 0 && (module.exports = {
77
+ cleanRequireCache,
78
+ compatRequire,
79
+ deleteRequireCache,
80
+ dynamicImport,
81
+ requireExistModule
82
+ });
@@ -0,0 +1,43 @@
1
+ export { default as fs } from '../compiled/fs-extra';
2
+ export { default as ora } from '../compiled/ora';
3
+ export { default as glob } from '../compiled/glob';
4
+ export { default as yaml } from '../compiled/js-yaml';
5
+ export { default as chalk } from '../compiled/chalk';
6
+ export { default as debug } from '../compiled/debug';
7
+ export { default as slash } from '../compiled/slash';
8
+ export { default as execa } from '../compiled/execa';
9
+ export { default as json5 } from '../compiled/json5';
10
+ export { default as upath } from '../compiled/upath';
11
+ export { default as pkgUp } from '../compiled/pkg-up';
12
+ export { nanoid } from '../compiled/nanoid';
13
+ export { default as semver } from '../compiled/semver';
14
+ export { default as dotenv } from '../compiled/dotenv';
15
+ export { default as lodash } from '../compiled/lodash';
16
+ export { default as globby } from '../compiled/globby';
17
+ export { default as address } from '../compiled/address';
18
+ export { default as signale } from '../compiled/signale';
19
+ export { default as urlJoin } from '../compiled/url-join';
20
+ export { default as minimist } from '../compiled/minimist';
21
+ export { default as fastGlob } from '../compiled/fast-glob';
22
+ export { default as filesize } from '../compiled/filesize';
23
+ export { default as gzipSize } from '../compiled/gzip-size';
24
+ export { default as stripAnsi } from '../compiled/strip-ansi';
25
+ export { default as dotenvExpand } from '../compiled/dotenv-expand';
26
+ export { default as browserslist } from '../compiled/browserslist';
27
+ export { default as recursiveReaddir } from '../compiled/recursive-readdir';
28
+ export { program, Command } from '../compiled/commander';
29
+ export { Signale } from '../compiled/signale';
30
+ export type { SignaleOptions } from '../compiled/signale';
31
+ export type { IOptions as GlobOptions } from '../compiled/glob';
32
+ export type { GlobbyOptions } from '../compiled/globby';
33
+ export type { FSWatcher, WatchOptions } from '../compiled/chokidar';
34
+ export type { ExecaError } from '../compiled/execa';
35
+ export type { default as WebpackChain } from '../compiled/webpack-chain';
36
+ /**
37
+ * Lazy import some expensive modules that will slow down startup speed.
38
+ * Notice that `csmith-tools build` can not bundle lazy imported modules.
39
+ */
40
+
41
+ export declare const mime: typeof import('../compiled/mime-types');
42
+ export declare const chokidar: typeof import('../compiled/chokidar');
43
+ export declare const inquirer: typeof import('../compiled/inquirer');
@@ -0,0 +1,142 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var compiled_exports = {};
29
+ __export(compiled_exports, {
30
+ Command: () => import_commander.Command,
31
+ Signale: () => import_signale2.Signale,
32
+ address: () => import_address.default,
33
+ browserslist: () => import_browserslist.default,
34
+ chalk: () => import_chalk.default,
35
+ chokidar: () => chokidar,
36
+ debug: () => import_debug.default,
37
+ dotenv: () => import_dotenv.default,
38
+ dotenvExpand: () => import_dotenv_expand.default,
39
+ execa: () => import_execa.default,
40
+ fastGlob: () => import_fast_glob.default,
41
+ filesize: () => import_filesize.default,
42
+ fs: () => import_fs_extra.default,
43
+ glob: () => import_glob.default,
44
+ globby: () => import_globby.default,
45
+ gzipSize: () => import_gzip_size.default,
46
+ inquirer: () => inquirer,
47
+ json5: () => import_json5.default,
48
+ lodash: () => import_lodash.default,
49
+ mime: () => mime,
50
+ minimist: () => import_minimist.default,
51
+ nanoid: () => import_nanoid.nanoid,
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
142
+ });