@modern-js/core 2.19.1 → 2.21.0
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/CHANGELOG.md +40 -0
- package/dist/context.d.ts +4 -5
- package/dist/context.js +1 -2
- package/dist/createCli.d.ts +1 -1
- package/dist/createCli.js +1 -2
- package/dist/index.d.ts +1 -1
- package/dist/loadPlugins.d.ts +1 -1
- package/dist/manager.d.ts +34 -28
- package/dist/manager.js +1 -0
- package/dist/types/coreOptions.d.ts +0 -2
- package/dist/types/hooks.d.ts +1 -0
- package/dist/utils/mergeConfig.d.ts +1 -1
- package/dist/utils/repeatKeyWarning.d.ts +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 2.21.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- df43559: fix(core): toolsType is overridden when install multiple solutions
|
|
8
|
+
|
|
9
|
+
fix(core): 修复安装多个 solutions 时 toolsType 被覆盖的问题
|
|
10
|
+
|
|
11
|
+
- 26dcf3a: chore: bump typescript to v5 in devDependencies
|
|
12
|
+
|
|
13
|
+
chore: 升级 devDependencies 中的 typescript 版本到 v5
|
|
14
|
+
|
|
15
|
+
- ad78387: chore(deps): bump babel-related dependencies to latest version
|
|
16
|
+
|
|
17
|
+
chore(deps): 升级 babel 相关依赖到最新版本
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [e81eeaf]
|
|
20
|
+
- Updated dependencies [26dcf3a]
|
|
21
|
+
- Updated dependencies [056627f]
|
|
22
|
+
- Updated dependencies [0fc15ca]
|
|
23
|
+
- Updated dependencies [43b4e83]
|
|
24
|
+
- Updated dependencies [ad78387]
|
|
25
|
+
- @modern-js/utils@2.21.0
|
|
26
|
+
- @modern-js/node-bundle-require@2.21.0
|
|
27
|
+
- @modern-js/plugin@2.21.0
|
|
28
|
+
|
|
29
|
+
## 2.20.0
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 4b03d17: feat: 添加 output.tempDir 配置,支持单项目多配置同时启动
|
|
34
|
+
feat: add output.tempDir configuration, supports launching project with multiple config at the same time
|
|
35
|
+
- 6289d31: fix: remove duplicate addRuntimeExports hook in @modern-js/core
|
|
36
|
+
fix: 删除 @modern-js/core 中重复的 addRuntimeExports hook
|
|
37
|
+
- Updated dependencies [3c4e0a5]
|
|
38
|
+
- Updated dependencies [6b9d90a]
|
|
39
|
+
- @modern-js/utils@2.20.0
|
|
40
|
+
- @modern-js/node-bundle-require@2.20.0
|
|
41
|
+
- @modern-js/plugin@2.20.0
|
|
42
|
+
|
|
3
43
|
## 2.19.1
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
package/dist/context.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CliPlugin, UserConfig, IAppContext, InternalPlugins, NormalizedConfig
|
|
1
|
+
import type { CliPlugin, UserConfig, IAppContext, InternalPlugins, NormalizedConfig } from './types';
|
|
2
2
|
export declare const AppContext: import("@modern-js/plugin").Context<IAppContext>;
|
|
3
|
-
export declare const ConfigContext: import("@modern-js/plugin").Context<UserConfig<any
|
|
4
|
-
export declare const ResolvedConfigContext: import("@modern-js/plugin").Context<NormalizedConfig<any
|
|
3
|
+
export declare const ConfigContext: import("@modern-js/plugin").Context<UserConfig<any>>;
|
|
4
|
+
export declare const ResolvedConfigContext: import("@modern-js/plugin").Context<NormalizedConfig<any>>;
|
|
5
5
|
/**
|
|
6
6
|
* Set app context.
|
|
7
7
|
* @param value new app context. It will override previous app context.
|
|
@@ -19,7 +19,7 @@ export declare const useConfigContext: <Extends extends Record<string, any>>() =
|
|
|
19
19
|
* Get normalized content of user config.
|
|
20
20
|
*/
|
|
21
21
|
export declare const useResolvedConfigContext: <Extends extends Record<string, any>>() => NormalizedConfig<Extends>;
|
|
22
|
-
export declare const initAppContext: ({ appDirectory, plugins, configFile, options, serverConfigFile, serverInternalPlugins,
|
|
22
|
+
export declare const initAppContext: ({ appDirectory, plugins, configFile, options, serverConfigFile, serverInternalPlugins, }: {
|
|
23
23
|
appDirectory: string;
|
|
24
24
|
plugins: CliPlugin[];
|
|
25
25
|
configFile: string | false;
|
|
@@ -32,5 +32,4 @@ export declare const initAppContext: ({ appDirectory, plugins, configFile, optio
|
|
|
32
32
|
} | undefined;
|
|
33
33
|
serverConfigFile: string;
|
|
34
34
|
serverInternalPlugins: InternalPlugins;
|
|
35
|
-
toolsType?: ToolsType | undefined;
|
|
36
35
|
}) => IAppContext;
|
package/dist/context.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.useConfigContext = useConfigContext;
|
|
|
31
31
|
*/
|
|
32
32
|
const useResolvedConfigContext = () => exports.ResolvedConfigContext.use().value;
|
|
33
33
|
exports.useResolvedConfigContext = useResolvedConfigContext;
|
|
34
|
-
const initAppContext = ({ appDirectory, plugins, configFile, options, serverConfigFile, serverInternalPlugins,
|
|
34
|
+
const initAppContext = ({ appDirectory, plugins, configFile, options, serverConfigFile, serverInternalPlugins, }) => {
|
|
35
35
|
const { metaName = 'modern-js', srcDir = 'src', distDir = '', apiDir = 'api', sharedDir = 'shared', } = options || {};
|
|
36
36
|
return {
|
|
37
37
|
metaName,
|
|
@@ -57,7 +57,6 @@ const initAppContext = ({ appDirectory, plugins, configFile, options, serverConf
|
|
|
57
57
|
apiOnly: false,
|
|
58
58
|
internalDirAlias: `@_${metaName.replace(/-/g, '_')}_internal`,
|
|
59
59
|
internalSrcAlias: `@_${metaName.replace(/-/g, '_')}_src`,
|
|
60
|
-
toolsType,
|
|
61
60
|
};
|
|
62
61
|
};
|
|
63
62
|
exports.initAppContext = initAppContext;
|
package/dist/createCli.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const mergeOptions: (options?: CoreOptions) => CoreOptions & {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const createCli: () => {
|
|
6
6
|
init: (options?: CoreOptions) => Promise<{
|
|
7
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
7
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
8
8
|
appContext: import("./types").IAppContext;
|
|
9
9
|
}>;
|
|
10
10
|
run: (options?: CoreOptions) => Promise<void>;
|
package/dist/createCli.js
CHANGED
|
@@ -44,7 +44,6 @@ const createCli = () => {
|
|
|
44
44
|
(0, checkIsDuplicationPlugin_1.checkIsDuplicationPlugin)(plugins.map(plugin => plugin.name), loaded.config.autoLoadPlugins);
|
|
45
45
|
plugins.forEach(plugin => plugin && manager_1.manager.usePlugin(plugin));
|
|
46
46
|
const appContext = (0, context_1.initAppContext)({
|
|
47
|
-
toolsType: mergedOptions === null || mergedOptions === void 0 ? void 0 : mergedOptions.toolsType,
|
|
48
47
|
appDirectory,
|
|
49
48
|
plugins,
|
|
50
49
|
configFile: loaded.filePath,
|
|
@@ -67,6 +66,7 @@ const createCli = () => {
|
|
|
67
66
|
});
|
|
68
67
|
});
|
|
69
68
|
});
|
|
69
|
+
await hooksRunner.beforeConfig();
|
|
70
70
|
const extraConfigs = await hooksRunner.config();
|
|
71
71
|
const extraSchemas = await hooksRunner.validateSchema();
|
|
72
72
|
const normalizedConfig = await (0, config_1.createResolveConfig)(loaded, extraConfigs, extraSchemas, options === null || options === void 0 ? void 0 : options.onSchemaError);
|
|
@@ -76,7 +76,6 @@ const createCli = () => {
|
|
|
76
76
|
// update context value
|
|
77
77
|
context_1.ConfigContext.set(loaded.config);
|
|
78
78
|
context_1.ResolvedConfigContext.set(resolved);
|
|
79
|
-
await hooksRunner.addRuntimeExports();
|
|
80
79
|
await hooksRunner.prepare();
|
|
81
80
|
await hooksRunner.afterPrepare();
|
|
82
81
|
return {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { manager, createPlugin, registerHook } from './manager';
|
|
|
5
5
|
export { AppContext, ConfigContext, ResolvedConfigContext, useAppContext, useConfigContext, useResolvedConfigContext, initAppContext, } from './context';
|
|
6
6
|
export declare const cli: {
|
|
7
7
|
init: (options?: import("./types").CoreOptions | undefined) => Promise<{
|
|
8
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
8
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
9
9
|
appContext: import("./types").IAppContext;
|
|
10
10
|
}>;
|
|
11
11
|
run: (options?: import("./types").CoreOptions | undefined) => Promise<void>;
|
package/dist/loadPlugins.d.ts
CHANGED
package/dist/manager.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { BasePluginAPI } from './types';
|
|
2
2
|
export declare const manager: import("@modern-js/plugin").AsyncManager<{
|
|
3
|
-
|
|
3
|
+
beforeConfig: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
4
|
+
config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}>>;
|
|
4
5
|
resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
|
|
5
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
6
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
6
7
|
}>;
|
|
7
|
-
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void
|
|
8
|
+
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
8
9
|
prepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
9
10
|
afterPrepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
10
|
-
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void
|
|
11
|
+
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
11
12
|
fileChange: import("@modern-js/plugin").AsyncWorkflow<{
|
|
12
13
|
filename: string;
|
|
13
14
|
eventType: "add" | "unlink" | "change";
|
|
@@ -17,16 +18,17 @@ export declare const manager: import("@modern-js/plugin").AsyncManager<{
|
|
|
17
18
|
}, void>;
|
|
18
19
|
beforeExit: import("@modern-js/plugin").Workflow<void, void>;
|
|
19
20
|
addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
|
|
20
|
-
}, BasePluginAPI<{}
|
|
21
|
+
}, BasePluginAPI<{}>>;
|
|
21
22
|
export declare const createPlugin: (setup?: import("@modern-js/plugin").AsyncSetup<{
|
|
22
|
-
|
|
23
|
+
beforeConfig: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
24
|
+
config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}>>;
|
|
23
25
|
resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
|
|
24
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
26
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
25
27
|
}>;
|
|
26
|
-
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void
|
|
28
|
+
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
27
29
|
prepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
28
30
|
afterPrepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
29
|
-
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void
|
|
31
|
+
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
30
32
|
fileChange: import("@modern-js/plugin").AsyncWorkflow<{
|
|
31
33
|
filename: string;
|
|
32
34
|
eventType: "add" | "unlink" | "change";
|
|
@@ -36,15 +38,16 @@ export declare const createPlugin: (setup?: import("@modern-js/plugin").AsyncSet
|
|
|
36
38
|
}, void>;
|
|
37
39
|
beforeExit: import("@modern-js/plugin").Workflow<void, void>;
|
|
38
40
|
addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
|
|
39
|
-
}, BasePluginAPI<{}
|
|
40
|
-
|
|
41
|
+
}, BasePluginAPI<{}>> | undefined, options?: import("@modern-js/plugin").PluginOptions<{
|
|
42
|
+
beforeConfig: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
43
|
+
config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}>>;
|
|
41
44
|
resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
|
|
42
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
45
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
43
46
|
}>;
|
|
44
|
-
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void
|
|
47
|
+
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
45
48
|
prepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
46
49
|
afterPrepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
47
|
-
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void
|
|
50
|
+
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
48
51
|
fileChange: import("@modern-js/plugin").AsyncWorkflow<{
|
|
49
52
|
filename: string;
|
|
50
53
|
eventType: "add" | "unlink" | "change";
|
|
@@ -55,14 +58,15 @@ export declare const createPlugin: (setup?: import("@modern-js/plugin").AsyncSet
|
|
|
55
58
|
beforeExit: import("@modern-js/plugin").Workflow<void, void>;
|
|
56
59
|
addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
|
|
57
60
|
}, import("@modern-js/plugin").AsyncSetup<{
|
|
58
|
-
|
|
61
|
+
beforeConfig: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
62
|
+
config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}>>;
|
|
59
63
|
resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
|
|
60
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
64
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
61
65
|
}>;
|
|
62
|
-
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void
|
|
66
|
+
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
63
67
|
prepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
64
68
|
afterPrepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
65
|
-
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void
|
|
69
|
+
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
66
70
|
fileChange: import("@modern-js/plugin").AsyncWorkflow<{
|
|
67
71
|
filename: string;
|
|
68
72
|
eventType: "add" | "unlink" | "change";
|
|
@@ -72,15 +76,16 @@ export declare const createPlugin: (setup?: import("@modern-js/plugin").AsyncSet
|
|
|
72
76
|
}, void>;
|
|
73
77
|
beforeExit: import("@modern-js/plugin").Workflow<void, void>;
|
|
74
78
|
addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
|
|
75
|
-
}, BasePluginAPI<{}
|
|
76
|
-
|
|
79
|
+
}, BasePluginAPI<{}>>> | undefined) => import("@modern-js/plugin").AsyncPlugin<{
|
|
80
|
+
beforeConfig: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
81
|
+
config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}>>;
|
|
77
82
|
resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
|
|
78
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
83
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
79
84
|
}>;
|
|
80
|
-
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void
|
|
85
|
+
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
81
86
|
prepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
82
87
|
afterPrepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
83
|
-
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void
|
|
88
|
+
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
84
89
|
fileChange: import("@modern-js/plugin").AsyncWorkflow<{
|
|
85
90
|
filename: string;
|
|
86
91
|
eventType: "add" | "unlink" | "change";
|
|
@@ -90,15 +95,16 @@ export declare const createPlugin: (setup?: import("@modern-js/plugin").AsyncSet
|
|
|
90
95
|
}, void>;
|
|
91
96
|
beforeExit: import("@modern-js/plugin").Workflow<void, void>;
|
|
92
97
|
addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
|
|
93
|
-
}, BasePluginAPI<{}
|
|
94
|
-
|
|
98
|
+
}, BasePluginAPI<{}>>, registerHook: (newHooks: Partial<{
|
|
99
|
+
beforeConfig: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
100
|
+
config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}>>;
|
|
95
101
|
resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
|
|
96
|
-
resolved: import("./types").NormalizedConfig<{}
|
|
102
|
+
resolved: import("./types").NormalizedConfig<{}>;
|
|
97
103
|
}>;
|
|
98
|
-
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void
|
|
104
|
+
validateSchema: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
99
105
|
prepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
100
106
|
afterPrepare: import("@modern-js/plugin").AsyncWorkflow<void, void>;
|
|
101
|
-
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void
|
|
107
|
+
watchFiles: import("@modern-js/plugin").ParallelWorkflow<void>;
|
|
102
108
|
fileChange: import("@modern-js/plugin").AsyncWorkflow<{
|
|
103
109
|
filename: string;
|
|
104
110
|
eventType: "add" | "unlink" | "change";
|
package/dist/manager.js
CHANGED
|
@@ -5,6 +5,7 @@ const plugin_1 = require("@modern-js/plugin");
|
|
|
5
5
|
const context_1 = require("./context");
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
7
7
|
const baseHooks = {
|
|
8
|
+
beforeConfig: (0, plugin_1.createAsyncWorkflow)(),
|
|
8
9
|
config: (0, plugin_1.createParallelWorkflow)(),
|
|
9
10
|
resolvedConfig: (0, plugin_1.createAsyncWaterfall)(),
|
|
10
11
|
validateSchema: (0, plugin_1.createParallelWorkflow)(),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ErrorObject } from '@modern-js/utils/compiled/ajv';
|
|
2
2
|
import type { InternalPlugins } from './plugin';
|
|
3
|
-
import type { ToolsType } from './context';
|
|
4
3
|
import type { UserConfig } from './config';
|
|
5
4
|
export interface CoreOptions {
|
|
6
5
|
cwd?: string;
|
|
@@ -20,7 +19,6 @@ export interface CoreOptions {
|
|
|
20
19
|
distDir?: string;
|
|
21
20
|
sharedDir?: string;
|
|
22
21
|
};
|
|
23
|
-
toolsType?: ToolsType;
|
|
24
22
|
/** force the modern-js core auto register plugin exist in the package.json */
|
|
25
23
|
forceAutoLoadPlugins?: boolean;
|
|
26
24
|
/** config for Node API */
|
package/dist/types/hooks.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type BaseHooks<Extends extends {
|
|
|
6
6
|
userConfig?: ExtendUserConfig;
|
|
7
7
|
normalizedConfig?: ExtendNormalizedConfig;
|
|
8
8
|
}, ExtendHooks extends {} = {}, ExtendUserConfig extends Record<string, any> = {}, ExtendNormalizedConfig extends Record<string, any> = {}> = {
|
|
9
|
+
beforeConfig: AsyncWorkflow<void, void>;
|
|
9
10
|
config: ParallelWorkflow<void, UserConfig<Extends>>;
|
|
10
11
|
resolvedConfig: AsyncWaterfall<{
|
|
11
12
|
resolved: NormalizedConfig<Extends>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UserConfig, NormalizedConfig } from '../types';
|
|
2
|
-
export declare const mergeConfig: <ExtendConfig extends Record<string, any>>(configs: (UserConfig<ExtendConfig
|
|
2
|
+
export declare const mergeConfig: <ExtendConfig extends Record<string, any>>(configs: (UserConfig<ExtendConfig> | NormalizedConfig<ExtendConfig>)[]) => NormalizedConfig<ExtendConfig>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UserConfig } from '../types';
|
|
2
2
|
export declare const deepGet: (obj: any, key: string) => any;
|
|
3
|
-
export declare const repeatKeyWarning: <E extends Record<string, any>>(schema: any, jsConfig: UserConfig<E
|
|
3
|
+
export declare const repeatKeyWarning: <E extends Record<string, any>>(schema: any, jsConfig: UserConfig<E>, pkgConfig: UserConfig<E>) => void;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"modern",
|
|
15
15
|
"modern.js"
|
|
16
16
|
],
|
|
17
|
-
"version": "2.
|
|
17
|
+
"version": "2.21.0",
|
|
18
18
|
"jsnext:source": "./src/index.ts",
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
@@ -69,30 +69,30 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@modern-js/node-bundle-require": "2.
|
|
73
|
-
"@modern-js/plugin": "2.
|
|
74
|
-
"@modern-js/utils": "2.
|
|
72
|
+
"@modern-js/node-bundle-require": "2.21.0",
|
|
73
|
+
"@modern-js/plugin": "2.21.0",
|
|
74
|
+
"@modern-js/utils": "2.21.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/babel__code-frame": "^7.0.3",
|
|
78
|
-
"@types/babel__core": "^7.
|
|
78
|
+
"@types/babel__core": "^7.20.0",
|
|
79
79
|
"@types/jest": "^29",
|
|
80
80
|
"@types/less": "^3.0.3",
|
|
81
81
|
"@types/node": "^14",
|
|
82
82
|
"autoprefixer": "10.4.13",
|
|
83
|
-
"
|
|
83
|
+
"tsm": "2.3.0",
|
|
84
84
|
"html-webpack-plugin": "5.5.0",
|
|
85
85
|
"jest": "^29",
|
|
86
86
|
"postcss": "8.4.21",
|
|
87
87
|
"sass": "^1.45.0",
|
|
88
88
|
"terser-webpack-plugin": "^5.1.4",
|
|
89
|
-
"typescript": "^
|
|
89
|
+
"typescript": "^5",
|
|
90
90
|
"webpack": "^5.82.1",
|
|
91
|
-
"@modern-js/builder-shared": "2.
|
|
92
|
-
"@modern-js/babel-preset-app": "2.
|
|
93
|
-
"@modern-js/types": "2.
|
|
94
|
-
"@scripts/jest-config": "2.
|
|
95
|
-
"@scripts/build": "2.
|
|
91
|
+
"@modern-js/builder-shared": "2.21.0",
|
|
92
|
+
"@modern-js/babel-preset-app": "2.21.0",
|
|
93
|
+
"@modern-js/types": "2.21.0",
|
|
94
|
+
"@scripts/jest-config": "2.21.0",
|
|
95
|
+
"@scripts/build": "2.21.0"
|
|
96
96
|
},
|
|
97
97
|
"sideEffects": false,
|
|
98
98
|
"publishConfig": {
|