@rspack/cli 2.0.0-canary.20260120 → 2.0.0-rc.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.
@@ -1,4 +1,6 @@
1
- import { node_fs, node_path, rspack } from "./131.js";
1
+ import node_fs from "node:fs";
2
+ import node_path from "node:path";
3
+ import { rspack } from "@rspack/core";
2
4
  const DEFAULT_RUST_TRACE_LAYER = 'perfetto';
3
5
  async function applyProfile(filterValue, traceLayer = DEFAULT_RUST_TRACE_LAYER, traceOutput) {
4
6
  const { asyncExitHook } = await import("exit-hook");
package/dist/types.d.ts CHANGED
@@ -1,9 +1,13 @@
1
1
  import type { RspackCLI } from './cli';
2
2
  export type { Configuration } from '@rspack/core';
3
3
  export type LogHandler = (value: any) => void;
4
- export type RspackCLIColors = {
4
+ export interface RspackCLIColors {
5
5
  isColorSupported: boolean;
6
- } & Omit<typeof import('picocolors'), 'createColors'>;
6
+ red(text: string): string;
7
+ yellow(text: string): string;
8
+ cyan(text: string): string;
9
+ green(text: string): string;
10
+ }
7
11
  export interface RspackCLILogger {
8
12
  error: LogHandler;
9
13
  warn: LogHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "2.0.0-canary.20260120",
3
+ "version": "2.0.0-rc.0",
4
4
  "description": "CLI for rspack",
5
5
  "homepage": "https://rspack.rs",
6
6
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
@@ -31,22 +31,21 @@
31
31
  "exit-hook": "^4.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@rslib/core": "0.19.2",
35
- "@rspack/dev-server": "~1.1.5",
36
- "cac": "^6.7.14",
34
+ "@rslib/core": "0.20.2",
35
+ "@rspack/dev-server": "2.0.0-beta.7",
36
+ "cac": "^7.0.0",
37
37
  "concat-stream": "^2.0.0",
38
38
  "cross-env": "^10.1.0",
39
39
  "execa": "^5.1.1",
40
- "picocolors": "^1.1.1",
41
40
  "pirates": "^4.0.7",
42
41
  "ts-node": "^10.9.2",
43
- "typescript": "^5.9.3",
44
- "@rspack/core": "2.0.0-canary.20260120",
45
- "@rspack/test-tools": "2.0.0-canary.20260120"
42
+ "typescript": "^6.0.2",
43
+ "@rspack/core": "2.0.0-rc.0",
44
+ "@rspack/test-tools": "2.0.0-rc.0"
46
45
  },
47
46
  "peerDependencies": {
48
47
  "@rspack/core": "^2.0.0-0",
49
- "@rspack/dev-server": "~1.1.5"
48
+ "@rspack/dev-server": "^2.0.0-0"
50
49
  },
51
50
  "peerDependenciesMeta": {
52
51
  "@rspack/dev-server": {