@modern-js/utils 2.4.0 → 2.5.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/FileSizeReporter.d.ts +5 -5
  3. package/dist/FileSizeReporter.js +143 -136
  4. package/dist/alias.d.ts +16 -14
  5. package/dist/alias.js +94 -54
  6. package/dist/analyzeProject.d.ts +1 -1
  7. package/dist/analyzeProject.js +58 -33
  8. package/dist/applyOptionsChain.d.ts +1 -1
  9. package/dist/applyOptionsChain.js +55 -27
  10. package/dist/chainId.d.ts +256 -184
  11. package/dist/chainId.js +132 -187
  12. package/dist/clearConsole.d.ts +1 -1
  13. package/dist/clearConsole.js +29 -7
  14. package/dist/commands.d.ts +1 -1
  15. package/dist/commands.js +33 -10
  16. package/dist/compatRequire.d.ts +3 -3
  17. package/dist/compatRequire.js +74 -38
  18. package/dist/compiled.d.ts +2 -1
  19. package/dist/compiled.js +137 -72
  20. package/dist/constants.d.ts +131 -105
  21. package/dist/constants.js +298 -277
  22. package/dist/debug.d.ts +1 -1
  23. package/dist/debug.js +28 -11
  24. package/dist/emptyDir.d.ts +1 -1
  25. package/dist/emptyDir.js +51 -9
  26. package/dist/ensureAbsolutePath.d.ts +1 -1
  27. package/dist/ensureAbsolutePath.js +33 -14
  28. package/dist/ensureArray.d.ts +1 -1
  29. package/dist/ensureArray.js +30 -8
  30. package/dist/findExists.d.ts +1 -1
  31. package/dist/findExists.js +37 -17
  32. package/dist/format.d.ts +3 -3
  33. package/dist/format.js +93 -81
  34. package/dist/generateMetaTags.d.ts +4 -4
  35. package/dist/generateMetaTags.js +56 -43
  36. package/dist/getBrowserslist.d.ts +1 -1
  37. package/dist/getBrowserslist.js +31 -7
  38. package/dist/getCoreJsVersion.d.ts +1 -1
  39. package/dist/getCoreJsVersion.js +39 -35
  40. package/dist/getEntryOptions.d.ts +1 -1
  41. package/dist/getEntryOptions.js +51 -24
  42. package/dist/getPackageManager.d.ts +1 -1
  43. package/dist/getPackageManager.js +75 -28
  44. package/dist/getPort.d.ts +7 -4
  45. package/dist/getPort.js +104 -58
  46. package/dist/getServerConfig.d.ts +1 -1
  47. package/dist/getServerConfig.js +61 -32
  48. package/dist/import.d.ts +2 -2
  49. package/dist/import.js +31 -8
  50. package/dist/index.d.ts +2 -0
  51. package/dist/index.js +61 -59
  52. package/dist/is/index.d.ts +12 -1
  53. package/dist/is/index.js +83 -82
  54. package/dist/is/node-env.d.ts +1 -1
  55. package/dist/is/node-env.js +39 -17
  56. package/dist/is/platform.d.ts +1 -1
  57. package/dist/is/platform.js +30 -10
  58. package/dist/is/type.d.ts +1 -1
  59. package/dist/is/type.js +48 -22
  60. package/dist/logger.d.ts +51 -51
  61. package/dist/logger.js +127 -95
  62. package/dist/monorepo.d.ts +3 -3
  63. package/dist/monorepo.js +117 -74
  64. package/dist/nestedRoutes.d.ts +9 -0
  65. package/dist/nestedRoutes.js +144 -0
  66. package/dist/nodeEnv.d.ts +1 -1
  67. package/dist/nodeEnv.js +72 -25
  68. package/dist/path.d.ts +3 -1
  69. package/dist/path.js +76 -59
  70. package/dist/pathSerializer.d.ts +7 -7
  71. package/dist/pathSerializer.js +65 -43
  72. package/dist/plugin.d.ts +1 -1
  73. package/dist/plugin.js +45 -26
  74. package/dist/prettyInstructions.d.ts +4 -4
  75. package/dist/prettyInstructions.js +107 -65
  76. package/dist/printBuildError.d.ts +1 -1
  77. package/dist/printBuildError.js +54 -40
  78. package/dist/react.d.ts +1 -1
  79. package/dist/react.js +57 -21
  80. package/dist/readTsConfig.d.ts +1 -1
  81. package/dist/readTsConfig.js +38 -12
  82. package/dist/remix-router.d.ts +1 -0
  83. package/dist/remix-router.js +17 -0
  84. package/dist/removeSlash.d.ts +1 -1
  85. package/dist/removeSlash.js +33 -9
  86. package/dist/routes.d.ts +1 -1
  87. package/dist/routes.js +49 -22
  88. package/dist/runtimeExports.d.ts +3 -3
  89. package/dist/runtimeExports.js +59 -39
  90. package/dist/serialize.d.ts +1 -0
  91. package/dist/serialize.js +36 -0
  92. package/dist/ssr.d.ts +2 -1
  93. package/dist/ssr.js +30 -7
  94. package/dist/storage.d.ts +3 -3
  95. package/dist/storage.js +65 -59
  96. package/dist/test-utils.d.ts +1 -1
  97. package/dist/test-utils.js +30 -24
  98. package/dist/tryResolve.d.ts +2 -1
  99. package/dist/tryResolve.js +45 -33
  100. package/dist/types.d.ts +1 -1
  101. package/dist/types.js +15 -2
  102. package/dist/version.d.ts +1 -1
  103. package/dist/version.js +83 -24
  104. package/dist/wait.d.ts +1 -1
  105. package/dist/wait.js +28 -6
  106. package/dist/watch.d.ts +5 -5
  107. package/dist/watch.js +82 -55
  108. package/package.json +31 -9
package/dist/compiled.js CHANGED
@@ -1,73 +1,138 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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 });
4
10
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.inquirer = exports.chokidar = exports.mime = exports.Signale = exports.Command = exports.program = exports.recursiveReaddir = exports.browserslist = exports.dotenvExpand = exports.stripAnsi = exports.gzipSize = exports.filesize = exports.fastGlob = exports.minimist = exports.urlJoin = exports.signale = exports.address = exports.globby = exports.lodash = exports.dotenv = exports.semver = exports.nanoid = exports.pkgUp = exports.upath = exports.json5 = exports.execa = exports.slash = exports.debug = exports.chalk = exports.yaml = exports.glob = exports.ora = exports.fs = void 0;
7
- const import_1 = require("./import");
8
- var fs_extra_1 = require("../compiled/fs-extra");
9
- Object.defineProperty(exports, "fs", { enumerable: true, get: function () { return __importDefault(fs_extra_1).default; } });
10
- var ora_1 = require("../compiled/ora");
11
- Object.defineProperty(exports, "ora", { enumerable: true, get: function () { return __importDefault(ora_1).default; } });
12
- var glob_1 = require("../compiled/glob");
13
- Object.defineProperty(exports, "glob", { enumerable: true, get: function () { return __importDefault(glob_1).default; } });
14
- var js_yaml_1 = require("../compiled/js-yaml");
15
- Object.defineProperty(exports, "yaml", { enumerable: true, get: function () { return __importDefault(js_yaml_1).default; } });
16
- var chalk_1 = require("../compiled/chalk");
17
- Object.defineProperty(exports, "chalk", { enumerable: true, get: function () { return __importDefault(chalk_1).default; } });
18
- var debug_1 = require("../compiled/debug");
19
- Object.defineProperty(exports, "debug", { enumerable: true, get: function () { return __importDefault(debug_1).default; } });
20
- var slash_1 = require("../compiled/slash");
21
- Object.defineProperty(exports, "slash", { enumerable: true, get: function () { return __importDefault(slash_1).default; } });
22
- var execa_1 = require("../compiled/execa");
23
- Object.defineProperty(exports, "execa", { enumerable: true, get: function () { return __importDefault(execa_1).default; } });
24
- var json5_1 = require("../compiled/json5");
25
- Object.defineProperty(exports, "json5", { enumerable: true, get: function () { return __importDefault(json5_1).default; } });
26
- var upath_1 = require("../compiled/upath");
27
- Object.defineProperty(exports, "upath", { enumerable: true, get: function () { return __importDefault(upath_1).default; } });
28
- var pkg_up_1 = require("../compiled/pkg-up");
29
- Object.defineProperty(exports, "pkgUp", { enumerable: true, get: function () { return __importDefault(pkg_up_1).default; } });
30
- var nanoid_1 = require("../compiled/nanoid");
31
- Object.defineProperty(exports, "nanoid", { enumerable: true, get: function () { return nanoid_1.nanoid; } });
32
- var semver_1 = require("../compiled/semver");
33
- Object.defineProperty(exports, "semver", { enumerable: true, get: function () { return __importDefault(semver_1).default; } });
34
- var dotenv_1 = require("../compiled/dotenv");
35
- Object.defineProperty(exports, "dotenv", { enumerable: true, get: function () { return __importDefault(dotenv_1).default; } });
36
- var lodash_1 = require("../compiled/lodash");
37
- Object.defineProperty(exports, "lodash", { enumerable: true, get: function () { return __importDefault(lodash_1).default; } });
38
- var globby_1 = require("../compiled/globby");
39
- Object.defineProperty(exports, "globby", { enumerable: true, get: function () { return __importDefault(globby_1).default; } });
40
- var address_1 = require("../compiled/address");
41
- Object.defineProperty(exports, "address", { enumerable: true, get: function () { return __importDefault(address_1).default; } });
42
- var signale_1 = require("../compiled/signale");
43
- Object.defineProperty(exports, "signale", { enumerable: true, get: function () { return __importDefault(signale_1).default; } });
44
- var url_join_1 = require("../compiled/url-join");
45
- Object.defineProperty(exports, "urlJoin", { enumerable: true, get: function () { return __importDefault(url_join_1).default; } });
46
- var minimist_1 = require("../compiled/minimist");
47
- Object.defineProperty(exports, "minimist", { enumerable: true, get: function () { return __importDefault(minimist_1).default; } });
48
- var fast_glob_1 = require("../compiled/fast-glob");
49
- Object.defineProperty(exports, "fastGlob", { enumerable: true, get: function () { return __importDefault(fast_glob_1).default; } });
50
- var filesize_1 = require("../compiled/filesize");
51
- Object.defineProperty(exports, "filesize", { enumerable: true, get: function () { return __importDefault(filesize_1).default; } });
52
- var gzip_size_1 = require("../compiled/gzip-size");
53
- Object.defineProperty(exports, "gzipSize", { enumerable: true, get: function () { return __importDefault(gzip_size_1).default; } });
54
- var strip_ansi_1 = require("../compiled/strip-ansi");
55
- Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return __importDefault(strip_ansi_1).default; } });
56
- var dotenv_expand_1 = require("../compiled/dotenv-expand");
57
- Object.defineProperty(exports, "dotenvExpand", { enumerable: true, get: function () { return __importDefault(dotenv_expand_1).default; } });
58
- var browserslist_1 = require("../compiled/browserslist");
59
- Object.defineProperty(exports, "browserslist", { enumerable: true, get: function () { return __importDefault(browserslist_1).default; } });
60
- var recursive_readdir_1 = require("../compiled/recursive-readdir");
61
- Object.defineProperty(exports, "recursiveReaddir", { enumerable: true, get: function () { return __importDefault(recursive_readdir_1).default; } });
62
- var commander_1 = require("../compiled/commander");
63
- Object.defineProperty(exports, "program", { enumerable: true, get: function () { return commander_1.program; } });
64
- Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return commander_1.Command; } });
65
- var signale_2 = require("../compiled/signale");
66
- Object.defineProperty(exports, "Signale", { enumerable: true, get: function () { return signale_2.Signale; } });
67
- /**
68
- * Lazy import some expensive modules that will slow down startup speed.
69
- * Notice that `csmith-tools build` can not bundle lazy imported modules.
70
- */
71
- exports.mime = import_1.Import.lazy('../compiled/mime-types', require);
72
- exports.chokidar = import_1.Import.lazy('../compiled/chokidar', require);
73
- exports.inquirer = import_1.Import.lazy('../compiled/inquirer', require);
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
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var compiled_exports = {};
25
+ __export(compiled_exports, {
26
+ Command: () => import_commander.Command,
27
+ Signale: () => import_signale2.Signale,
28
+ address: () => import_address.default,
29
+ browserslist: () => import_browserslist.default,
30
+ chalk: () => import_chalk.default,
31
+ chokidar: () => chokidar,
32
+ debug: () => import_debug.default,
33
+ dotenv: () => import_dotenv.default,
34
+ dotenvExpand: () => import_dotenv_expand.default,
35
+ execa: () => import_execa.default,
36
+ fastGlob: () => import_fast_glob.default,
37
+ filesize: () => import_filesize.default,
38
+ fs: () => import_fs_extra.default,
39
+ glob: () => import_glob.default,
40
+ globby: () => import_globby.default,
41
+ gzipSize: () => import_gzip_size.default,
42
+ inquirer: () => inquirer,
43
+ json5: () => import_json5.default,
44
+ lodash: () => import_lodash.default,
45
+ mime: () => mime,
46
+ minimist: () => import_minimist.default,
47
+ nanoid: () => import_nanoid.nanoid,
48
+ ora: () => import_ora.default,
49
+ pkgUp: () => import_pkg_up.default,
50
+ program: () => import_commander.program,
51
+ recursiveReaddir: () => import_recursive_readdir.default,
52
+ semver: () => import_semver.default,
53
+ signale: () => import_signale.default,
54
+ slash: () => import_slash.default,
55
+ stripAnsi: () => import_strip_ansi.default,
56
+ upath: () => import_upath.default,
57
+ urlJoin: () => import_url_join.default,
58
+ yaml: () => import_js_yaml.default
59
+ });
60
+ module.exports = __toCommonJS(compiled_exports);
61
+ var import_import = require("./import");
62
+ var import_fs_extra = __toESM(require("../compiled/fs-extra"));
63
+ var import_ora = __toESM(require("../compiled/ora"));
64
+ var import_glob = __toESM(require("../compiled/glob"));
65
+ var import_js_yaml = __toESM(require("../compiled/js-yaml"));
66
+ var import_chalk = __toESM(require("../compiled/chalk"));
67
+ var import_debug = __toESM(require("../compiled/debug"));
68
+ var import_slash = __toESM(require("../compiled/slash"));
69
+ var import_execa = __toESM(require("../compiled/execa"));
70
+ var import_json5 = __toESM(require("../compiled/json5"));
71
+ var import_upath = __toESM(require("../compiled/upath"));
72
+ var import_pkg_up = __toESM(require("../compiled/pkg-up"));
73
+ var import_nanoid = require("../compiled/nanoid");
74
+ var import_semver = __toESM(require("../compiled/semver"));
75
+ var import_dotenv = __toESM(require("../compiled/dotenv"));
76
+ var import_lodash = __toESM(require("../compiled/lodash"));
77
+ var import_globby = __toESM(require("../compiled/globby"));
78
+ var import_address = __toESM(require("../compiled/address"));
79
+ var import_signale = __toESM(require("../compiled/signale"));
80
+ var import_url_join = __toESM(require("../compiled/url-join"));
81
+ var import_minimist = __toESM(require("../compiled/minimist"));
82
+ var import_fast_glob = __toESM(require("../compiled/fast-glob"));
83
+ var import_filesize = __toESM(require("../compiled/filesize"));
84
+ var import_gzip_size = __toESM(require("../compiled/gzip-size"));
85
+ var import_strip_ansi = __toESM(require("../compiled/strip-ansi"));
86
+ var import_dotenv_expand = __toESM(require("../compiled/dotenv-expand"));
87
+ var import_browserslist = __toESM(require("../compiled/browserslist"));
88
+ var import_recursive_readdir = __toESM(require("../compiled/recursive-readdir"));
89
+ var import_commander = require("../compiled/commander");
90
+ var import_signale2 = require("../compiled/signale");
91
+ const mime = import_import.Import.lazy(
92
+ "../compiled/mime-types",
93
+ require
94
+ );
95
+ const chokidar = import_import.Import.lazy(
96
+ "../compiled/chokidar",
97
+ require
98
+ );
99
+ const inquirer = import_import.Import.lazy(
100
+ "../compiled/inquirer",
101
+ require
102
+ );
103
+ // Annotate the CommonJS export names for ESM import in node:
104
+ 0 && (module.exports = {
105
+ Command,
106
+ Signale,
107
+ address,
108
+ browserslist,
109
+ chalk,
110
+ chokidar,
111
+ debug,
112
+ dotenv,
113
+ dotenvExpand,
114
+ execa,
115
+ fastGlob,
116
+ filesize,
117
+ fs,
118
+ glob,
119
+ globby,
120
+ gzipSize,
121
+ inquirer,
122
+ json5,
123
+ lodash,
124
+ mime,
125
+ minimist,
126
+ nanoid,
127
+ ora,
128
+ pkgUp,
129
+ program,
130
+ recursiveReaddir,
131
+ semver,
132
+ signale,
133
+ slash,
134
+ stripAnsi,
135
+ upath,
136
+ urlJoin,
137
+ yaml
138
+ });
@@ -2,86 +2,111 @@ import { InternalPlugins } from '@modern-js/types';
2
2
  /**
3
3
  * hmr socket connect path
4
4
  */
5
+
5
6
  export declare const HMR_SOCK_PATH = "/webpack-hmr";
6
7
  /**
7
8
  * route specification file
8
9
  */
10
+
9
11
  export declare const ROUTE_SPEC_FILE = "route.json";
10
12
  /**
11
13
  * main entry name
12
14
  */
15
+
13
16
  export declare const MAIN_ENTRY_NAME = "main";
14
17
  /**
15
18
  * open editor request path
16
19
  */
20
+
17
21
  export declare const LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
18
22
  /**
19
23
  * server side bundles directory, which relative to dist.
20
24
  */
25
+
21
26
  export declare const SERVER_BUNDLE_DIRECTORY = "bundles";
27
+ /**
28
+ * server side bundles directory, which relative to dist.
29
+ */
30
+
31
+ export declare const SERVER_WORKER_BUNDLE_DIRECTORY = "worker";
22
32
  /**
23
33
  * entry name pattern used for ajv pattern properties.
24
34
  */
35
+
25
36
  export declare const ENTRY_NAME_PATTERN = "^[a-zA-Z0-9_-]+$";
26
37
  /**
27
38
  * SSR server render function name
28
39
  */
40
+
29
41
  export declare const SERVER_RENDER_FUNCTION_NAME = "serverRender";
30
42
  /**
31
43
  * loadbale manifest json file
32
44
  */
45
+
33
46
  export declare const LOADABLE_STATS_FILE = "loadable-stats.json";
34
47
  /**
35
48
  * internal specified folder
36
49
  */
50
+
37
51
  export declare const API_DIR = "api";
38
52
  export declare const SERVER_DIR = "server";
39
53
  export declare const SHARED_DIR = "shared";
40
54
  /**
41
55
  * Modern.config.ts cached dir
42
56
  */
57
+
43
58
  export declare const CONFIG_CACHE_DIR = "./node_modules/.cache/node-bundle-require";
44
59
  export declare const CONFIG_FILE_EXTENSIONS: string[];
45
60
  /**
46
61
  * Serialized config path
47
62
  */
63
+
48
64
  export declare const OUTPUT_CONFIG_FILE = "modern.config.json";
49
65
  /**
50
66
  * Default server config basename
51
67
  */
68
+
52
69
  export declare const DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
53
70
  /**
54
71
  * Routes manifest filename
55
72
  */
73
+
56
74
  export declare const ROUTE_MINIFEST_FILE = "routes-manifest.json";
57
75
  /**
58
76
  * Property mounted on window that describes route manifest
59
77
  */
78
+
60
79
  export declare const ROUTE_MANIFEST = "_MODERNJS_ROUTE_MANIFEST";
61
80
  /**
62
81
  * directory name for loader routes
63
82
  */
83
+
64
84
  export declare const LOADER_ROUTES_DIR = "loader-routes";
65
85
  /**
66
86
  * Internal app-tools plugins that work as soon as they are installed.
67
87
  */
88
+
68
89
  export declare const INTERNAL_APP_TOOLS_PLUGINS: InternalPlugins;
69
90
  export declare const INTERNAL_APP_TOOLS_RUNTIME_PLUGINS: InternalPlugins;
70
91
  /**
71
92
  * Internal module-tools plugins that work as soon as they are installed.
72
93
  */
94
+
73
95
  export declare const INTERNAL_MODULE_TOOLS_PLUGINS: InternalPlugins;
74
96
  /**
75
97
  * Internal monorepo-tools plugins that work as soon as they are installed.
76
98
  */
99
+
77
100
  export declare const INTERNAL_MONOREPO_TOOLS_PLUGINS: InternalPlugins;
78
101
  /**
79
102
  * Internal doc-tools plugins that work as soon as they are installed.
80
103
  */
104
+
81
105
  export declare const INTERNAL_DOC_TOOLS_PLUGINS: InternalPlugins;
82
106
  /**
83
107
  * Internal plugins that work as soon as they are installed.
84
108
  */
109
+
85
110
  export declare const INTERNAL_CLI_PLUGINS: InternalPlugins;
86
111
  export declare const SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
87
112
  export declare const SERVER_PLUGIN_EXPRESS = "@modern-js/plugin-express";
@@ -94,115 +119,116 @@ export declare const INTERNAL_SERVER_PLUGINS: InternalPlugins;
94
119
  /**
95
120
  * The schema registered in the plugin.
96
121
  */
122
+
97
123
  export declare const PLUGIN_SCHEMAS: {
98
- '@modern-js/runtime': ({
99
- target: string;
100
- schema: {
101
- type: string;
102
- additionalProperties: boolean;
103
- patternProperties?: undefined;
104
- };
105
- } | {
106
- target: string;
107
- schema: {
108
- type: string;
109
- patternProperties: {
110
- "^[a-zA-Z0-9_-]+$": {
111
- type: string;
112
- };
113
- };
114
- additionalProperties: boolean;
115
- };
116
- })[];
117
- '@modern-js/plugin-swc': {
118
- target: string;
119
- schema: {
120
- typeof: string[];
124
+ '@modern-js/runtime': ({
125
+ target: string;
126
+ schema: {
127
+ type: string;
128
+ additionalProperties: boolean;
129
+ patternProperties?: undefined;
130
+ };
131
+ } | {
132
+ target: string;
133
+ schema: {
134
+ type: string;
135
+ patternProperties: {
136
+ "^[a-zA-Z0-9_-]+$": {
137
+ type: string;
121
138
  };
122
- }[];
123
- '@modern-js/plugin-bff': {
124
- target: string;
125
- schema: {
139
+ };
140
+ additionalProperties: boolean;
141
+ };
142
+ })[];
143
+ '@modern-js/plugin-swc': {
144
+ target: string;
145
+ schema: {
146
+ typeof: string[];
147
+ };
148
+ }[];
149
+ '@modern-js/plugin-bff': {
150
+ target: string;
151
+ schema: {
152
+ type: string;
153
+ properties: {
154
+ prefix: {
155
+ type: string[];
156
+ items: {
126
157
  type: string;
127
- properties: {
128
- prefix: {
129
- type: string[];
130
- items: {
131
- type: string;
132
- };
133
- };
134
- fetcher: {
135
- type: string;
136
- };
137
- proxy: {
138
- type: string;
139
- };
140
- requestCreator: {
141
- type: string;
142
- };
143
- };
144
- };
145
- }[];
146
- '@modern-js/plugin-tailwindcss': {
147
- target: string;
148
- schema: {
149
- typeof: string[];
150
- };
151
- }[];
152
- '@modern-js/plugin-proxy': {
153
- target: string;
154
- schema: {
155
- typeof: string[];
156
- };
157
- }[];
158
- '@modern-js/plugin-ssg': {
159
- target: string;
160
- schema: {
161
- oneOf: ({
162
- type: string;
163
- instanceof?: undefined;
164
- } | {
165
- instanceof: string;
166
- type?: undefined;
167
- })[];
168
- };
169
- }[];
170
- '@modern-js/plugin-state': {
171
- target: string;
172
- schema: {
173
- type: string[];
174
- };
175
- }[];
176
- '@modern-js/plugin-design-token': ({
177
- target: string;
178
- schema: {
179
- typeof: string[];
180
- type?: undefined;
181
- };
182
- } | {
183
- target: string;
184
- schema: {
185
- type: string[];
186
- typeof?: undefined;
158
+ };
187
159
  };
188
- })[];
189
- '@modern-js/plugin-router': {
190
- target: string;
191
- schema: {
192
- type: string[];
160
+ fetcher: {
161
+ type: string;
193
162
  };
194
- }[];
195
- '@modern-js/plugin-testing': {
196
- target: string;
197
- schema: {
198
- typeof: string[];
163
+ proxy: {
164
+ type: string;
199
165
  };
200
- }[];
201
- '@modern-js/plugin-garfish': {
202
- target: string;
203
- schema: {
204
- type: string[];
166
+ requestCreator: {
167
+ type: string;
205
168
  };
206
- }[];
207
- '@modern-js/plugin-nocode': never[];
208
- };
169
+ };
170
+ };
171
+ }[];
172
+ '@modern-js/plugin-tailwindcss': {
173
+ target: string;
174
+ schema: {
175
+ typeof: string[];
176
+ };
177
+ }[];
178
+ '@modern-js/plugin-proxy': {
179
+ target: string;
180
+ schema: {
181
+ typeof: string[];
182
+ };
183
+ }[];
184
+ '@modern-js/plugin-ssg': {
185
+ target: string;
186
+ schema: {
187
+ oneOf: ({
188
+ type: string;
189
+ instanceof?: undefined;
190
+ } | {
191
+ instanceof: string;
192
+ type?: undefined;
193
+ })[];
194
+ };
195
+ }[];
196
+ '@modern-js/plugin-state': {
197
+ target: string;
198
+ schema: {
199
+ type: string[];
200
+ };
201
+ }[];
202
+ '@modern-js/plugin-design-token': ({
203
+ target: string;
204
+ schema: {
205
+ typeof: string[];
206
+ type?: undefined;
207
+ };
208
+ } | {
209
+ target: string;
210
+ schema: {
211
+ type: string[];
212
+ typeof?: undefined;
213
+ };
214
+ })[];
215
+ '@modern-js/plugin-router': {
216
+ target: string;
217
+ schema: {
218
+ type: string[];
219
+ };
220
+ }[];
221
+ '@modern-js/plugin-testing': {
222
+ target: string;
223
+ schema: {
224
+ typeof: string[];
225
+ };
226
+ }[];
227
+ '@modern-js/plugin-garfish': {
228
+ target: string;
229
+ schema: {
230
+ type: string[];
231
+ };
232
+ }[];
233
+ '@modern-js/plugin-nocode': never[];
234
+ };