mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-01 21:15:15 +08:00
build(contracts): fix output paths for windows (@NadAlaba) (#5700)
This commit is contained in:
parent
482de29460
commit
feaff239f2
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ const entryPoints = getAllFiles("./src");
|
|||
|
||||
// Function to generate output file names
|
||||
const getOutfile = (entryPoint, format) => {
|
||||
const relativePath = entryPoint.replace("src/", "");
|
||||
const relativePath = entryPoint.replace(/src[/\\]/, "");
|
||||
const fileBaseName = relativePath.replace(".ts", "");
|
||||
return `./dist/${fileBaseName}.${format === "esm" ? "mjs" : "cjs"}`;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue