@bleedingdev/modern-js-plugin 3.2.0-ultramodern.9 → 3.2.0-ultramodern.91

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.
@@ -150,7 +150,12 @@ const createConfigOptions = async (options)=>{
150
150
  const appDirectory = await (0, initAppDir_js_namespaceObject.initAppDir)(cwd);
151
151
  const loaded = await (0, createLoadedConfig_js_namespaceObject.createLoadedConfig)(appDirectory, configFile, options.config);
152
152
  loaded.config = options.modifyModernConfig ? await options.modifyModernConfig(loaded.config || {}) : loaded.config;
153
- pluginManager.addPlugins(loaded.config.plugins || []);
153
+ const allPlugins = [
154
+ ...options.internalPlugins || [],
155
+ ...loaded.config.plugins || []
156
+ ];
157
+ (0, checkIsDuplicationPlugin_js_namespaceObject.checkIsDuplicationPlugin)(allPlugins.map((plugin)=>plugin.name));
158
+ pluginManager.addPlugins(allPlugins);
154
159
  const plugins = await pluginManager.getPlugins();
155
160
  const context = await (0, external_context_js_namespaceObject.createContext)({
156
161
  appContext: (0, external_context_js_namespaceObject.initAppContext)({
@@ -120,7 +120,12 @@ const createConfigOptions = async (options)=>{
120
120
  const appDirectory = await initAppDir(cwd);
121
121
  const loaded = await createLoadedConfig(appDirectory, configFile, options.config);
122
122
  loaded.config = options.modifyModernConfig ? await options.modifyModernConfig(loaded.config || {}) : loaded.config;
123
- pluginManager.addPlugins(loaded.config.plugins || []);
123
+ const allPlugins = [
124
+ ...options.internalPlugins || [],
125
+ ...loaded.config.plugins || []
126
+ ];
127
+ checkIsDuplicationPlugin(allPlugins.map((plugin)=>plugin.name));
128
+ pluginManager.addPlugins(allPlugins);
124
129
  const plugins = await pluginManager.getPlugins();
125
130
  const context = await createContext({
126
131
  appContext: initAppContext({
@@ -121,7 +121,12 @@ const createConfigOptions = async (options)=>{
121
121
  const appDirectory = await initAppDir(cwd);
122
122
  const loaded = await createLoadedConfig(appDirectory, configFile, options.config);
123
123
  loaded.config = options.modifyModernConfig ? await options.modifyModernConfig(loaded.config || {}) : loaded.config;
124
- pluginManager.addPlugins(loaded.config.plugins || []);
124
+ const allPlugins = [
125
+ ...options.internalPlugins || [],
126
+ ...loaded.config.plugins || []
127
+ ];
128
+ checkIsDuplicationPlugin(allPlugins.map((plugin)=>plugin.name));
129
+ pluginManager.addPlugins(allPlugins);
125
130
  const plugins = await pluginManager.getPlugins();
126
131
  const context = await createContext({
127
132
  appContext: initAppContext({
@@ -8,7 +8,7 @@ export declare const createCli: <Extends extends CLIPluginExtends>() => {
8
8
  run: (options: CLIRunOptions<Extends>) => Promise<void>;
9
9
  getPrevInitOptions: () => CLIRunOptions<Extends>;
10
10
  };
11
- type UselessOptions = 'handleSetupResult' | 'command' | 'internalPlugins';
11
+ type UselessOptions = 'handleSetupResult' | 'command';
12
12
  type CreateConfigOption<Extends extends CLIPluginExtends> = Omit<CLIRunOptions<Extends>, UselessOptions> & {
13
13
  command: string;
14
14
  modifyModernConfig?: (config: Extends['config']) => Extends['config'] | Promise<Extends['config']>;
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.2.0-ultramodern.9",
20
+ "version": "3.2.0-ultramodern.91",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -84,19 +84,19 @@
84
84
  }
85
85
  },
86
86
  "dependencies": {
87
- "@rsbuild/core": "2.0.6",
88
- "@swc/helpers": "^0.5.21",
87
+ "@rsbuild/core": "2.0.7",
88
+ "@swc/helpers": "^0.5.23",
89
89
  "jiti": "^2.7.0",
90
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.9",
91
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.9",
92
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.9"
90
+ "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.91",
91
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.91",
92
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.91"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@rslib/core": "0.21.5",
96
- "@types/node": "^25.8.0",
97
- "@types/react": "^19.2.14",
98
- "@typescript/native-preview": "7.0.0-dev.20260516.1",
99
- "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.9"
96
+ "@types/node": "^25.9.1",
97
+ "@types/react": "^19.2.15",
98
+ "@typescript/native-preview": "7.0.0-dev.20260527.2",
99
+ "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.91"
100
100
  },
101
101
  "sideEffects": false,
102
102
  "publishConfig": {