Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 1, 2024
1 parent d08bcd8 commit 81101ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/swc/__tests__/dirWorker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Options } from "@swc/core";
import handleCompile from "../dirWorker";
import { CliOptions, DEFAULT_OUT_FILE_EXTENSION } from "../options";
import * as utilModule from "../util";
import path from "path";

type HandleCompileOptions = {
cliOptions: CliOptions;
Expand Down Expand Up @@ -64,7 +65,10 @@ describe("dirWorker", () => {
options.filename,
{ sourceFileName: `../${options.filename}` },
options.sync,
`${options.outDir}/${filename}.${DEFAULT_OUT_FILE_EXTENSION}`
path.join(
options.outDir,
`${filename}.${DEFAULT_OUT_FILE_EXTENSION}`
)
);
});
});
Expand Down

0 comments on commit 81101ce

Please sign in to comment.