Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion projenrc/build-standalone-zip.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ async function main() {

await fs.mkdir('dist/standalone', { recursive: true });
await fs.rm(path.join('dist/standalone/', zipFileName), { force: true });
await fs.rename(path.join(outdir, zipFileName), path.join('dist/standalone/', zipFileName));
// Use copyFile instead of rename to avoid cross-device link errors
const sourcePath = path.join(outdir, zipFileName);
const destPath = path.join('dist/standalone/', zipFileName);
await fs.copyFile(sourcePath, destPath);
await fs.unlink(sourcePath);
} finally {
await fs.rm(outdir, { recursive: true, force: true });
}
Expand Down
Loading