@rspack/cli 2.1.8 → 2.1.9

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/dist/index.d.ts CHANGED
@@ -191,15 +191,7 @@ export { Configuration }
191
191
  * This function helps you to autocomplete configuration types.
192
192
  * It accepts a Rspack config object, or a function that returns a config.
193
193
  */
194
- export declare function defineConfig<const Config extends RspackOptions | MultiRspackOptions>(config: (...args: Parameters<RspackConfigFn>) => Config): RspackConfigFn;
195
-
196
- export declare function defineConfig<const Config extends RspackOptions | MultiRspackOptions>(config: (...args: Parameters<RspackConfigFn>) => Promise<Config>): RspackConfigAsyncFn;
197
-
198
- export declare function defineConfig(config: RspackOptions): RspackOptions;
199
-
200
- export declare function defineConfig(config: MultiRspackOptions): MultiRspackOptions;
201
-
202
- export declare function defineConfig(config: RspackConfigExport): RspackConfigExport;
194
+ export declare function defineConfig<const Config extends RspackOptions | MultiRspackOptions, const Definition extends Config | ((...args: Parameters<RspackConfigFn>) => Config) | ((...args: Parameters<RspackConfigFn>) => Promise<Config>)>(config: Definition): Definition extends (...args: Parameters<RspackConfigFn>) => Promise<unknown> ? RspackConfigAsyncFn : Definition extends (...args: Parameters<RspackConfigFn>) => unknown ? RspackConfigFn : Definition extends readonly unknown[] ? MultiRspackOptions : RspackOptions;
203
195
 
204
196
  export declare function definePlugin(plugin: RspackPluginFunction): RspackPluginFunction;
205
197
 
@@ -294,8 +286,6 @@ export declare interface RspackCommand {
294
286
 
295
287
  declare type RspackConfigAsyncFn = (env: Record<string, any>, argv: Record<string, any>) => Promise<RspackOptions | MultiRspackOptions>;
296
288
 
297
- declare type RspackConfigExport = RspackOptions | MultiRspackOptions | RspackConfigFn | RspackConfigAsyncFn;
298
-
299
289
  declare type RspackConfigFn = (env: Record<string, any>, argv: Record<string, any>) => RspackOptions | MultiRspackOptions;
300
290
 
301
291
  export { }
package/dist/index.js CHANGED
@@ -1115,7 +1115,7 @@ class RspackCLI {
1115
1115
  this.colors = this.createColors();
1116
1116
  this.program = program;
1117
1117
  program.help();
1118
- program.version("2.1.8");
1118
+ program.version("2.1.9");
1119
1119
  }
1120
1120
  wrapAction(fn) {
1121
1121
  return (...args)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "CLI for rspack",
5
5
  "homepage": "https://rspack.rs",
6
6
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
@@ -31,7 +31,7 @@
31
31
  "@discoveryjs/json-ext": "^1.1.0",
32
32
  "@microsoft/api-extractor": "^7.58.12",
33
33
  "@rstackjs/load-config": "^0.1.2",
34
- "@rspack/dev-server": "^2.1.0",
34
+ "@rspack/dev-server": "^2.2.0",
35
35
  "cac": "^7.0.0",
36
36
  "concat-stream": "^2.0.0",
37
37
  "cross-env": "^10.1.0",
@@ -40,10 +40,10 @@
40
40
  "jiti": "^2.7.0",
41
41
  "prebundle": "^1.6.5",
42
42
  "rspack-merge": "1.0.1",
43
- "rstack": "^0.2.0",
43
+ "rstack": "^0.4.0",
44
44
  "typescript": "^6.0.3",
45
- "@rspack/core": "2.1.8",
46
- "@rspack/test-tools": "2.1.8"
45
+ "@rspack/core": "2.1.9",
46
+ "@rspack/test-tools": "2.1.9"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@rspack/core": "^2.0.0-0",