From 856ef32c54e48f85a6ac14ea6323a30d8d6a3656 Mon Sep 17 00:00:00 2001 From: hezhengxu2018 Date: Fri, 21 Nov 2025 20:27:28 +0800 Subject: [PATCH 1/2] fix(dts-plugin): use double quotes for temp tsconfig path to compatible with Windows (#4236) --- packages/dts-plugin/src/core/lib/typeScriptCompiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dts-plugin/src/core/lib/typeScriptCompiler.ts b/packages/dts-plugin/src/core/lib/typeScriptCompiler.ts index da9abd61f6a..81ed67d063c 100644 --- a/packages/dts-plugin/src/core/lib/typeScriptCompiler.ts +++ b/packages/dts-plugin/src/core/lib/typeScriptCompiler.ts @@ -212,7 +212,7 @@ export const compileTs = async ( }); const execPromise = util.promisify(exec); const pmExecutable = resolvePackageManagerExecutable(); - const cmd = `${pmExecutable} ${remoteOptions.compilerInstance} --project '${tempTsConfigJsonPath}'`; + const cmd = `${pmExecutable} ${remoteOptions.compilerInstance} --project "${tempTsConfigJsonPath}"`; try { await execPromise(cmd, { cwd: From b4d11d885f3de5a905ec3de9d50c38b4d6df5563 Mon Sep 17 00:00:00 2001 From: hezhengxu2018 Date: Fri, 21 Nov 2025 21:38:00 +0800 Subject: [PATCH 2/2] chore: add changeset for dts-plugin quote fix --- .changeset/heavy-pillows-laugh.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/heavy-pillows-laugh.md diff --git a/.changeset/heavy-pillows-laugh.md b/.changeset/heavy-pillows-laugh.md new file mode 100644 index 00000000000..1ac5eb83331 --- /dev/null +++ b/.changeset/heavy-pillows-laugh.md @@ -0,0 +1,5 @@ +--- +'@module-federation/dts-plugin': patch +--- + +fix: double quote the temp tsconfig path to compatible with Windows.