@rspack-canary/cli 1.4.7-canary-d3d82b07-20250714132647 → 1.4.9-canary-65be29fc-20250716052640
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 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RspackPluginFunction, RspackPluginInstance } from "@rspack/core";
|
|
2
|
+
import * as rspackCore from "@rspack/core";
|
|
2
3
|
import { type Compiler, type MultiCompiler, type MultiRspackOptions, type MultiStats, type RspackOptions, type Stats } from "@rspack/core";
|
|
3
4
|
import yargs from "yargs";
|
|
4
5
|
import type { RspackBuildCLIOptions, RspackCLIColors, RspackCLILogger, RspackCLIOptions } from "./types";
|
|
@@ -7,7 +8,7 @@ export declare class RspackCLI {
|
|
|
7
8
|
colors: RspackCLIColors;
|
|
8
9
|
program: yargs.Argv;
|
|
9
10
|
constructor();
|
|
10
|
-
createCompiler(options: RspackBuildCLIOptions, rspackCommand: Command, callback?: (e: Error | null, res?: Stats | MultiStats) => void): Promise<MultiCompiler | Compiler | null>;
|
|
11
|
+
createCompiler(options: RspackBuildCLIOptions, rspackCommand: Command, callback?: (e: Error | null, res?: Stats | MultiStats) => void): Promise<rspackCore.MultiCompiler | rspackCore.Compiler | null>;
|
|
11
12
|
createColors(useColor?: boolean): RspackCLIColors;
|
|
12
13
|
getLogger(): RspackCLILogger;
|
|
13
14
|
run(argv: string[]): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -502,7 +502,7 @@ var __webpack_exports__ = {};
|
|
|
502
502
|
}
|
|
503
503
|
try {
|
|
504
504
|
return JSON.parse(external_node_fs_default().readFileSync(packageJsonPath, "utf8"));
|
|
505
|
-
} catch
|
|
505
|
+
} catch {
|
|
506
506
|
return null;
|
|
507
507
|
}
|
|
508
508
|
};
|
|
@@ -589,7 +589,7 @@ var __webpack_exports__ = {};
|
|
|
589
589
|
cwd
|
|
590
590
|
]
|
|
591
591
|
});
|
|
592
|
-
} catch
|
|
592
|
+
} catch {
|
|
593
593
|
throw new Error(`Cannot find module '${extendPath}' to extend from.`);
|
|
594
594
|
}
|
|
595
595
|
if (!external_node_fs_default().existsSync(resolvedPath)) throw new Error(`Extended configuration file "${resolvedPath}" not found.`);
|
package/dist/index.mjs
CHANGED
|
@@ -466,7 +466,7 @@ const readPackageUp = (cwd = process.cwd())=>{
|
|
|
466
466
|
}
|
|
467
467
|
try {
|
|
468
468
|
return JSON.parse(external_node_fs_["default"].readFileSync(packageJsonPath, "utf8"));
|
|
469
|
-
} catch
|
|
469
|
+
} catch {
|
|
470
470
|
return null;
|
|
471
471
|
}
|
|
472
472
|
};
|
|
@@ -553,7 +553,7 @@ async function loadExtendedConfig(config, configPath, cwd, options) {
|
|
|
553
553
|
cwd
|
|
554
554
|
]
|
|
555
555
|
});
|
|
556
|
-
} catch
|
|
556
|
+
} catch {
|
|
557
557
|
throw new Error(`Cannot find module '${extendPath}' to extend from.`);
|
|
558
558
|
}
|
|
559
559
|
if (!external_node_fs_["default"].existsSync(resolvedPath)) throw new Error(`Extended configuration file "${resolvedPath}" not found.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9-canary-65be29fc-20250716052640",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"execa": "^5.1.1",
|
|
49
49
|
"ts-node": "^10.9.2",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
|
-
"@rspack/core": "npm:@rspack-canary/core@1.4.
|
|
51
|
+
"@rspack/core": "npm:@rspack-canary/core@1.4.9-canary-65be29fc-20250716052640"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@rspack/core": "^1.0.0-alpha || ^1.x"
|