@rspack/cli 1.0.0-alpha.1 → 1.0.0-alpha.3
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/cli.d.ts +2 -2
- package/dist/commands/build.d.ts +1 -1
- package/dist/commands/preview.d.ts +1 -1
- package/dist/commands/serve.d.ts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/utils/loadConfig.d.ts +2 -2
- package/dist/utils/options.d.ts +1 -1
- package/dist/utils/profile.d.ts +1 -1
- package/package.json +3 -3
package/dist/cli.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RspackPluginFunction, RspackPluginInstance } from "@rspack/core";
|
|
2
|
-
import { Compiler, MultiCompiler, MultiRspackOptions, MultiStats, RspackOptions, Stats } from "@rspack/core";
|
|
2
|
+
import { type Compiler, type MultiCompiler, type MultiRspackOptions, type MultiStats, type RspackOptions, type Stats } from "@rspack/core";
|
|
3
3
|
import yargs from "yargs";
|
|
4
|
-
import { RspackBuildCLIOptions, RspackCLIColors, RspackCLILogger, RspackCLIOptions } from "./types";
|
|
4
|
+
import type { RspackBuildCLIOptions, RspackCLIColors, RspackCLILogger, RspackCLIOptions } from "./types";
|
|
5
5
|
type Command = "serve" | "build";
|
|
6
6
|
export declare class RspackCLI {
|
|
7
7
|
colors: RspackCLIColors;
|
package/dist/commands/build.d.ts
CHANGED
package/dist/commands/serve.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DevServer } from "@rspack/core";
|
|
2
|
-
import { Colorette } from "colorette";
|
|
3
|
-
import { RspackCLI } from "./cli";
|
|
2
|
+
import type { Colorette } from "colorette";
|
|
3
|
+
import type { RspackCLI } from "./cli";
|
|
4
4
|
export type { Configuration } from "@rspack/core";
|
|
5
5
|
export interface IRspackCLI {
|
|
6
6
|
runRspack(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MultiRspackOptions, RspackOptions } from "@rspack/core";
|
|
2
|
-
import { RspackCLIOptions } from "../types";
|
|
1
|
+
import type { MultiRspackOptions, RspackOptions } from "@rspack/core";
|
|
2
|
+
import type { RspackCLIOptions } from "../types";
|
|
3
3
|
export type LoadedRspackConfig = undefined | RspackOptions | MultiRspackOptions | ((env: Record<string, any>, argv?: Record<string, any>) => RspackOptions | MultiRspackOptions);
|
|
4
4
|
export declare function loadRspackConfig(options: RspackCLIOptions, cwd?: string): Promise<LoadedRspackConfig>;
|
package/dist/utils/options.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import yargs from "yargs";
|
|
1
|
+
import type yargs from "yargs";
|
|
2
2
|
export declare const commonOptions: (yargs: yargs.Argv<{}>) => yargs.Argv<yargs.Omit<{}, "entry" | "devtool" | "mode" | "watch" | "env" | "output-path" | "config" | "node-env" | "configName"> & yargs.InferredOptionTypes<{
|
|
3
3
|
config: {
|
|
4
4
|
g: boolean;
|
package/dist/utils/profile.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RspackOptions } from "@rspack/core";
|
|
1
|
+
import { type RspackOptions } from "@rspack/core";
|
|
2
2
|
export declare function applyProfile(profileValue: string, item: RspackOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "CLI for rspack",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cross-env": "^7.0.3",
|
|
35
35
|
"execa": "^5.0.0",
|
|
36
36
|
"internal-ip": "6.2.0",
|
|
37
|
-
"@rspack/core": "1.0.0-alpha.
|
|
37
|
+
"@rspack/core": "1.0.0-alpha.3"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@discoveryjs/json-ext": "^0.5.7",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"semver": "6.3.1",
|
|
46
46
|
"webpack-bundle-analyzer": "4.6.1",
|
|
47
47
|
"yargs": "17.6.2",
|
|
48
|
-
"@rspack/dev-server": "1.0.0-alpha.
|
|
48
|
+
"@rspack/dev-server": "1.0.0-alpha.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsc -b ./tsconfig.build.json",
|