@modern-js/core 2.0.0-beta.2 → 2.0.0-beta.4

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 CHANGED
@@ -1,5 +1,193 @@
1
1
  # @modern-js/core
2
2
 
3
+ ## 2.0.0-beta.4
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
9
+ ### Minor Changes
10
+
11
+ - c9e800d39a: feat: support React18 streaming SSR
12
+ feat: 支持 React18 流式 SSR
13
+ - 92f0eade39: feat:
14
+
15
+ 1. core: 增加 test 函数
16
+ 2. module plugins: 增加 `babel`, `mainField`, `target` 插件
17
+ 3. storybook: 修改部分逻辑并且增加 tspath webpack 插件
18
+ 4. 增加 designSystem 配置
19
+
20
+ feat:
21
+
22
+ 1. core: add test method
23
+ 2. module plugins: add `babel`, `mainField`, `target` plugin
24
+ 3. storybook: change some logic and add tspath webpack plugin
25
+ 4. add `designSystem` config
26
+
27
+ - edd1cfb1af: feat: modernjs Access builder compiler
28
+ feat: modernjs 接入 builder 构建
29
+ - d5a31df781: refactor: remove unbundle configs and types
30
+
31
+ refactor: 移除 unbundle 相关的配置项和类型定义
32
+
33
+ - b8494ef: feat: remove use plugin types restrict
34
+ feat: 移除使用 plugin 类型限制
35
+ - e4558a0: feat:
36
+
37
+ 1. add `runBin` function
38
+ 2. config internal plugins constants in the app/module/doc tools
39
+ 3. add app/module/doc tools internal plugins
40
+
41
+ feat:
42
+
43
+ 1. 添加 `runBin` 函数
44
+ 2. 在 app/module/doc tools 里配置内部插件
45
+ 3. 增加 app/module/doc tools 使用的插件常量
46
+
47
+ ### Patch Changes
48
+
49
+ - 85edee888c: feat(app-tools): support tools.htmlPlugin config
50
+
51
+ feat(app-tools): 支持 tools.htmlPlugin 配置项
52
+
53
+ - b8bbe036c7: feat: change type logic
54
+ feat: 修改类型相关的逻辑
55
+ - 8b8e1bb571: feat: support nested routes
56
+ feat: 支持嵌套路由
57
+ - 3bbea92b2a: feat: support Hook、Middleware new API
58
+ feat: 支持 Hook、Middleware 的新 API
59
+ - b7a96c35fc: fix(app-tools): loose CLI init options after restart
60
+
61
+ fix(app-tools): 修复重启 CLI 后丢失 init options 的问题
62
+
63
+ - cce8ecee2d: fix: handle some `TODO` & `FIXME`, change some tests
64
+ fix: 处理一些 `TODO` 和 `FIXME`, 修改了一些 tests
65
+ - ea7cf06: chore: bump webpack/babel-loader/postcss-loader/tsconfig-paths
66
+
67
+ chore: 升级 webpack/babel-loader/postcss-loader/tsconfig-paths 版本
68
+
69
+ - 14b712da84: fix: use consistent alias type and default value across packages
70
+
71
+ fix: 在各个包中使用一致的 alias 类型定义和默认值
72
+
73
+ - Updated dependencies [7879e8f]
74
+ - Updated dependencies [6aca875]
75
+ - Updated dependencies [2e6031955e]
76
+ - Updated dependencies [a2509bfbdb]
77
+ - Updated dependencies [7b7d12c]
78
+ - Updated dependencies [92f0eade39]
79
+ - Updated dependencies [edd1cfb1af]
80
+ - Updated dependencies [cc971eabfc]
81
+ - Updated dependencies [5b9049f2e9]
82
+ - Updated dependencies [92004d1906]
83
+ - Updated dependencies [b8bbe036c7]
84
+ - Updated dependencies [d5a31df781]
85
+ - Updated dependencies [dda38c9c3e]
86
+ - Updated dependencies [3bbea92b2a]
87
+ - Updated dependencies [b710adb843]
88
+ - Updated dependencies [f179749375]
89
+ - Updated dependencies [ea7cf06]
90
+ - Updated dependencies [bbe4c4a]
91
+ - Updated dependencies [e4558a0]
92
+ - Updated dependencies [abf3421a75]
93
+ - Updated dependencies [543be9558e]
94
+ - Updated dependencies [14b712da84]
95
+ - @modern-js/utils@2.0.0-beta.4
96
+ - @modern-js/node-bundle-require@2.0.0-beta.4
97
+ - @modern-js/plugin@2.0.0-beta.4
98
+
99
+ ## 2.0.0-beta.3
100
+
101
+ ### Major Changes
102
+
103
+ - dda38c9c3e: chore: v2
104
+
105
+ ### Minor Changes
106
+
107
+ - c9e800d39a: feat: support React18 streaming SSR
108
+ feat: 支持 React18 流式 SSR
109
+ - 92f0eade39: feat:
110
+
111
+ 1. core: 增加 test 函数
112
+ 2. module plugins: 增加 `babel`, `mainField`, `target` 插件
113
+ 3. storybook: 修改部分逻辑并且增加 tspath webpack 插件
114
+ 4. 增加 designSystem 配置
115
+
116
+ feat:
117
+
118
+ 1. core: add test method
119
+ 2. module plugins: add `babel`, `mainField`, `target` plugin
120
+ 3. storybook: change some logic and add tspath webpack plugin
121
+ 4. add `designSystem` config
122
+
123
+ - edd1cfb1af: feat: modernjs Access builder compiler
124
+ feat: modernjs 接入 builder 构建
125
+ - d5a31df781: refactor: remove unbundle configs and types
126
+
127
+ refactor: 移除 unbundle 相关的配置项和类型定义
128
+
129
+ - e4558a0: feat:
130
+
131
+ 1. add `runBin` function
132
+ 2. config internal plugins constants in the app/module/doc tools
133
+ 3. add app/module/doc tools internal plugins
134
+
135
+ feat:
136
+
137
+ 1. 添加 `runBin` 函数
138
+ 2. 在 app/module/doc tools 里配置内部插件
139
+ 3. 增加 app/module/doc tools 使用的插件常量
140
+
141
+ ### Patch Changes
142
+
143
+ - 85edee888c: feat(app-tools): support tools.htmlPlugin config
144
+
145
+ feat(app-tools): 支持 tools.htmlPlugin 配置项
146
+
147
+ - b8bbe036c7: feat: change type logic
148
+ feat: 修改类型相关的逻辑
149
+ - 8b8e1bb571: feat: support nested routes
150
+ feat: 支持嵌套路由
151
+ - 3bbea92b2a: feat: support Hook、Middleware new API
152
+ feat: 支持 Hook、Middleware 的新 API
153
+ - b7a96c3: fix(app-tools): loose CLI init options after restart
154
+
155
+ fix(app-tools): 修复重启 CLI 后丢失 init options 的问题
156
+
157
+ - cce8ece: fix: handle some `TODO` & `FIXME`, change some tests
158
+ fix: 处理一些 `TODO` 和 `FIXME`, 修改了一些 tests
159
+ - ea7cf06: chore: bump webpack/babel-loader/postcss-loader/tsconfig-paths
160
+
161
+ chore: 升级 webpack/babel-loader/postcss-loader/tsconfig-paths 版本
162
+
163
+ - 14b712da84: fix: use consistent alias type and default value across packages
164
+
165
+ fix: 在各个包中使用一致的 alias 类型定义和默认值
166
+
167
+ - Updated dependencies [6aca875]
168
+ - Updated dependencies [2e60319]
169
+ - Updated dependencies [a2509bfbdb]
170
+ - Updated dependencies [92f0eade39]
171
+ - Updated dependencies [edd1cfb1af]
172
+ - Updated dependencies [cc971eabfc]
173
+ - Updated dependencies [5b9049f2e9]
174
+ - Updated dependencies [92004d1906]
175
+ - Updated dependencies [b8bbe036c7]
176
+ - Updated dependencies [d5a31df781]
177
+ - Updated dependencies [dda38c9c3e]
178
+ - Updated dependencies [3bbea92b2a]
179
+ - Updated dependencies [b710adb]
180
+ - Updated dependencies [f179749375]
181
+ - Updated dependencies [ea7cf06]
182
+ - Updated dependencies [bbe4c4a]
183
+ - Updated dependencies [e4558a0]
184
+ - Updated dependencies [abf3421a75]
185
+ - Updated dependencies [543be9558e]
186
+ - Updated dependencies [14b712da84]
187
+ - @modern-js/utils@2.0.0-beta.3
188
+ - @modern-js/node-bundle-require@2.0.0-beta.3
189
+ - @modern-js/plugin@2.0.0-beta.3
190
+
3
191
  ## 2.0.0-beta.2
4
192
 
5
193
  ### Major Changes
@@ -70,7 +70,6 @@ loaded, configs, schemas, onSchemaError = showAdditionalPropertiesError) => {
70
70
  indent: 2,
71
71
  });
72
72
  };
73
- // FIXME: pass temporarily
74
73
  if (!valid && ((_a = validate.errors) === null || _a === void 0 ? void 0 : _a.length)) {
75
74
  await onSchemaError(validate === null || validate === void 0 ? void 0 : validate.errors[0]);
76
75
  const errors = formatValidateError(userConfig);
package/dist/context.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CliPlugin, UserConfig, IAppContext, InternalPlugins, NormalizedConfig } from './types';
1
+ import type { CliPlugin, UserConfig, IAppContext, InternalPlugins, NormalizedConfig, ToolsType } from './types';
2
2
  export declare const AppContext: import("@modern-js/plugin").Context<IAppContext>;
3
3
  export declare const ConfigContext: import("@modern-js/plugin").Context<UserConfig<any, {}, {}, {}>>;
4
4
  export declare const ResolvedConfigContext: import("@modern-js/plugin").Context<NormalizedConfig<any, {}, {}, {}>>;
@@ -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, toolsType, }: {
23
23
  appDirectory: string;
24
24
  plugins: CliPlugin[];
25
25
  configFile: string | false;
@@ -31,4 +31,5 @@ export declare const initAppContext: ({ appDirectory, plugins, configFile, optio
31
31
  } | undefined;
32
32
  serverConfigFile: string;
33
33
  serverInternalPlugins: InternalPlugins;
34
+ toolsType?: ToolsType | undefined;
34
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, toolsType, }) => {
35
35
  const { metaName = 'modern-js', srcDir = 'src', distDir = '', sharedDir = 'shared', } = options || {};
36
36
  return {
37
37
  metaName,
@@ -55,6 +55,7 @@ const initAppContext = ({ appDirectory, plugins, configFile, options, serverConf
55
55
  apiOnly: false,
56
56
  internalDirAlias: `@_${metaName.replace(/-/g, '_')}_internal`,
57
57
  internalSrcAlias: `@_${metaName.replace(/-/g, '_')}_src`,
58
+ toolsType,
58
59
  };
59
60
  };
60
61
  exports.initAppContext = initAppContext;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import type { ErrorObject } from '@modern-js/utils/ajv';
2
2
  import { InternalPlugins } from '@modern-js/types';
3
3
  import { TransformPlugin } from './loadPlugins';
4
4
  import { initAppContext } from './context';
5
+ import type { ToolsType } from './types';
5
6
  export * from './types';
6
7
  export * from '@modern-js/plugin';
7
8
  export { manager, mountHook, createPlugin, registerHook } from './manager';
@@ -25,6 +26,7 @@ export interface CoreOptions {
25
26
  distDir?: string;
26
27
  sharedDir?: string;
27
28
  };
29
+ toolsType?: ToolsType;
28
30
  }
29
31
  export declare const mergeOptions: (options?: CoreOptions) => {
30
32
  cwd?: string | undefined;
@@ -44,15 +46,19 @@ export declare const mergeOptions: (options?: CoreOptions) => {
44
46
  distDir?: string | undefined;
45
47
  sharedDir?: string | undefined;
46
48
  } | undefined;
49
+ toolsType?: ToolsType | undefined;
47
50
  };
48
51
  export declare const cli: {
49
- init: (options?: CoreOptions) => Promise<void>;
52
+ init: (options?: CoreOptions) => Promise<{
53
+ resolved: import("./types").NormalizedConfig<{}, {}, {}, {}>;
54
+ appContext: import("./types").IAppContext;
55
+ }>;
50
56
  run: (options?: CoreOptions) => Promise<void>;
51
57
  test: (argv: string[], options?: {
52
58
  coreOptions?: CoreOptions;
53
59
  disableWatcher?: boolean;
54
60
  }) => Promise<void>;
55
- initOptions: CoreOptions | undefined;
61
+ getPrevInitOptions: () => CoreOptions | undefined;
56
62
  };
57
63
  export { initAppDir, initAppContext };
58
64
  declare module '@modern-js/utils/compiled/commander' {
package/dist/index.js CHANGED
@@ -87,6 +87,7 @@ const createCli = () => {
87
87
  });
88
88
  plugins.forEach(plugin => plugin && manager_1.manager.usePlugin(plugin));
89
89
  const appContext = (0, context_1.initAppContext)({
90
+ toolsType: mergedOptions === null || mergedOptions === void 0 ? void 0 : mergedOptions.toolsType,
90
91
  appDirectory,
91
92
  plugins,
92
93
  configFile: loaded.filePath,
@@ -115,13 +116,15 @@ const createCli = () => {
115
116
  const { resolved } = await hooksRunner.resolvedConfig({
116
117
  resolved: normalizedConfig,
117
118
  });
118
- // FIXME: Why need to configContext again?
119
119
  // update context value
120
120
  context_1.ConfigContext.set(loaded.config);
121
121
  context_1.ResolvedConfigContext.set(resolved);
122
- // TODO: confirm the `addRuntimeExports` run order
123
122
  await hooksRunner.addRuntimeExports();
124
123
  await hooksRunner.prepare();
124
+ return {
125
+ resolved,
126
+ appContext: (0, context_1.useAppContext)(),
127
+ };
125
128
  };
126
129
  async function run(options) {
127
130
  await init(options);
@@ -139,7 +142,7 @@ const createCli = () => {
139
142
  init,
140
143
  run,
141
144
  test,
142
- initOptions,
145
+ getPrevInitOptions: () => initOptions,
143
146
  };
144
147
  };
145
148
  exports.cli = createCli();
package/dist/manager.d.ts CHANGED
@@ -48,7 +48,7 @@ export declare const createPlugin: (setup?: import("@modern-js/plugin").AsyncSet
48
48
  }, void>;
49
49
  beforeExit: import("@modern-js/plugin").AsyncWorkflow<void, void>;
50
50
  addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
51
- }, BasePluginAPI<{}, {}, {}, {}>>, Record<string, unknown>, any, any> | undefined) => import("@modern-js/plugin").AsyncPlugin<{
51
+ }, BasePluginAPI<{}, {}, {}, {}>>, Record<string, unknown>> | undefined) => import("@modern-js/plugin").AsyncPlugin<{
52
52
  config: import("@modern-js/plugin").ParallelWorkflow<void, import("./types").UserConfig<{}, {}, {}, {}>>;
53
53
  resolvedConfig: import("@modern-js/plugin").AsyncWaterfall<{
54
54
  resolved: import("./types").NormalizedConfig<{}, {}, {}, {}>;
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ import { CoreOptions } from '.';
3
+ export declare const run: (otherCoreOptions?: CoreOptions, options?: {
4
+ override?: boolean | ((coreOptions: CoreOptions) => Promise<CoreOptions> | CoreOptions) | undefined;
5
+ }) => Promise<void>;
package/dist/runBin.js ADDED
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.run = void 0;
5
+ const utils_1 = require("@modern-js/utils");
6
+ const _1 = require(".");
7
+ const run = async (otherCoreOptions = {}, options = {}) => {
8
+ const command = process.argv[2];
9
+ if (!process.env.NODE_ENV) {
10
+ if (['build', 'start', 'deploy', 'release'].includes(command)) {
11
+ process.env.NODE_ENV = 'production';
12
+ }
13
+ else if (command === 'test') {
14
+ process.env.NODE_ENV = 'test';
15
+ }
16
+ else {
17
+ process.env.NODE_ENV = 'development';
18
+ }
19
+ }
20
+ const { version } = require('../package.json');
21
+ const cliParams = (0, utils_1.minimist)(process.argv.slice(2));
22
+ const runOptions = {
23
+ version,
24
+ };
25
+ /**
26
+ * Commands that support specify config files
27
+ * Some commands can't support this feature, such as `new`
28
+ */
29
+ const SUPPORT_CONFIG_PARAM_COMMANDS = [
30
+ 'dev',
31
+ 'build',
32
+ 'deploy',
33
+ 'start',
34
+ 'inspect',
35
+ ];
36
+ const customConfigFile = cliParams.config || cliParams.c;
37
+ if (SUPPORT_CONFIG_PARAM_COMMANDS.includes(command) && customConfigFile) {
38
+ runOptions.configFile = customConfigFile;
39
+ }
40
+ if (typeof options.override === 'boolean' && options.override) {
41
+ await _1.cli.run(otherCoreOptions);
42
+ }
43
+ else if (typeof (options === null || options === void 0 ? void 0 : options.override) === 'function') {
44
+ await _1.cli.run(await options.override(runOptions));
45
+ }
46
+ else {
47
+ await _1.cli.run(utils_1.lodash.merge({}, runOptions, otherCoreOptions));
48
+ }
49
+ };
50
+ exports.run = run;
@@ -7,25 +7,21 @@ export declare type UserConfig<Extends extends {
7
7
  userConfig?: ExtendUserConfig;
8
8
  normalizedConfig?: ExtendNormalizedConfig;
9
9
  } = {}, ExtendHooks extends Record<string, any> = {}, ExtendUserConfig extends {
10
- source?: Record<string, any>;
11
- tools?: Record<string, any>;
12
10
  testing?: Record<string, any>;
13
11
  [property: string]: any;
14
12
  } = {}, ExtendNormalizedConfig extends Record<string, any> = {}> = {
15
13
  testing?: BaseTestingUserConfig<DropUndefined<Extends['userConfig']>['testing']>;
16
- plugins?: PluginConfig<Extends>;
14
+ plugins?: PluginConfig<any>;
17
15
  } & Omit<Extends['userConfig'], 'plugins' | 'testing'>;
18
16
  export declare type NormalizedConfig<Extends extends {
19
17
  hooks?: ExtendHooks;
20
18
  userConfig?: ExtendUserConfig;
21
19
  normalizedConfig?: ExtendNormalizedConfig;
22
20
  } = {}, ExtendHooks extends Record<string, any> = {}, ExtendUserConfig extends Record<string, any> = {}, ExtendNormalizedConfig extends {
23
- source?: Record<string, any>;
24
- tools?: Record<string, any>;
25
21
  testing?: Record<string, any>;
26
22
  [property: string]: any;
27
23
  } = {}> = {
28
- plugins: PluginConfig<Extends>;
24
+ plugins: PluginConfig<any>;
29
25
  testing: BaseTestingNormalizedConfig<DropUndefined<Extends['normalizedConfig']>['testing']>;
30
26
  } & Omit<Extends['normalizedConfig'], 'plugins' | 'testing'>;
31
27
  export declare type LoadedConfig<Extends extends {
@@ -1,5 +1,6 @@
1
1
  import { Entrypoint, InternalPlugins, ServerRoute, HtmlTemplates } from '@modern-js/types';
2
2
  import { BuilderInstance } from '@modern-js/builder-shared';
3
+ export declare type ToolsType = 'app-tools' | 'module-tools' | 'doc-tools' | 'monorepo-tools';
3
4
  export interface IAppContext {
4
5
  metaName: string;
5
6
  appDirectory: string;
@@ -9,6 +10,7 @@ export interface IAppContext {
9
10
  ip?: string;
10
11
  port?: number;
11
12
  distDirectory: string;
13
+ toolsType?: ToolsType;
12
14
  packageName: string;
13
15
  srcDirectory: string;
14
16
  sharedDirectory: string;
@@ -24,3 +24,21 @@ export declare type CliHooksRunner<Extends extends {
24
24
  normalizedConfig?: ExtendNormalizedConfig;
25
25
  } = {}, ExtendHooks extends {} = {}, ExtendUserConfig extends Record<string, any> = {}, ExtendNormalizedConfig extends Record<string, any> = {}> = ToRunners<BaseHooks<Extends> & Extends['hooks']>;
26
26
  export declare type CliHookCallbacks = ToThreads<BaseHooks<{}>>;
27
+ export interface DevToolData<DevOptions = any> {
28
+ name: string;
29
+ subCommands?: string[];
30
+ menuItem?: {
31
+ name: string;
32
+ value: string;
33
+ };
34
+ disableRunBuild?: boolean;
35
+ action: (options: DevOptions, context: {
36
+ isTsProject?: boolean;
37
+ }) => void | Promise<void>;
38
+ }
39
+ export interface RegisterBuildPlatformResult {
40
+ platform: string | string[];
41
+ build: (currentPlatform: string, context: {
42
+ isTsProject: boolean;
43
+ }) => void | Promise<void>;
44
+ }
@@ -7,7 +7,7 @@ export declare type CliPlugin<Extends extends {
7
7
  hooks?: ExtendHooks;
8
8
  userConfig?: ExtendUserConfig;
9
9
  normalizedConfig?: ExtendNormalizedConfig;
10
- } = {}, ExtendHooks extends Record<string, any> = {}, ExtendUserConfig extends Record<string, any> = {}, ExtendNormalizedConfig extends Record<string, any> = {}> = PluginOptions<BaseHooks<Extends>, AsyncSetup<BaseHooks<Extends> & Extends['hooks'], BasePluginAPI<Extends>>, Extends['hooks'], BaseHooks<Extends> | BaseHooks<{}>, AsyncSetup<BaseHooks<Extends> & Extends['hooks'], BasePluginAPI<Extends>> | AsyncSetup<BaseHooks<{}>, BasePluginAPI<{}>>>;
10
+ } = {}, ExtendHooks extends Record<string, any> = {}, ExtendUserConfig extends Record<string, any> = {}, ExtendNormalizedConfig extends Record<string, any> = {}> = PluginOptions<BaseHooks<Extends>, AsyncSetup<BaseHooks<Extends> & Extends['hooks'], BasePluginAPI<Extends>>, Extends['hooks']>;
11
11
  export declare type PluginItem = string | [string, any];
12
12
  /**
13
13
  * @deprecated
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "modern",
11
11
  "modern.js"
12
12
  ],
13
- "version": "2.0.0-beta.2",
13
+ "version": "2.0.0-beta.4",
14
14
  "jsnext:source": "./src/index.ts",
15
15
  "types": "./dist/index.d.ts",
16
16
  "main": "./dist/index.js",
@@ -29,6 +29,10 @@
29
29
  "jsnext:source": "./src/bin.ts",
30
30
  "default": "./dist/bin.js"
31
31
  },
32
+ "./runBin": {
33
+ "jsnext:source": "./src/runBin.ts",
34
+ "default": "./dist/runBin.js"
35
+ },
32
36
  "./types": {
33
37
  "default": "./dist/types/index.js"
34
38
  }
@@ -40,13 +44,16 @@
40
44
  ],
41
45
  "types": [
42
46
  "./dist/types/index.d.ts"
47
+ ],
48
+ "runBin": [
49
+ "./dist/runBin.d.ts"
43
50
  ]
44
51
  }
45
52
  },
46
53
  "dependencies": {
47
- "@modern-js/node-bundle-require": "2.0.0-beta.2",
48
- "@modern-js/plugin": "2.0.0-beta.2",
49
- "@modern-js/utils": "2.0.0-beta.2"
54
+ "@modern-js/node-bundle-require": "2.0.0-beta.4",
55
+ "@modern-js/plugin": "2.0.0-beta.4",
56
+ "@modern-js/utils": "2.0.0-beta.4"
50
57
  },
51
58
  "devDependencies": {
52
59
  "@jest/types": "^27.0.6",
@@ -64,12 +71,12 @@
64
71
  "sass": "^1.45.0",
65
72
  "terser-webpack-plugin": "^5.1.4",
66
73
  "typescript": "^4",
67
- "webpack": "^5.74.0",
68
- "@modern-js/builder-shared": "2.0.0-beta.2",
69
- "@modern-js/babel-preset-app": "2.0.0-beta.2",
70
- "@modern-js/types": "2.0.0-beta.2",
71
- "@scripts/build": "2.0.0-beta.2",
72
- "@scripts/jest-config": "2.0.0-beta.2"
74
+ "webpack": "^5.75.0",
75
+ "@modern-js/builder-shared": "2.0.0-beta.4",
76
+ "@modern-js/babel-preset-app": "2.0.0-beta.4",
77
+ "@modern-js/types": "2.0.0-beta.4",
78
+ "@scripts/build": "2.0.0-beta.4",
79
+ "@scripts/jest-config": "2.0.0-beta.4"
73
80
  },
74
81
  "sideEffects": false,
75
82
  "publishConfig": {