Skip to content

Commit

Permalink
Ensure dist exists on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed May 1, 2024
1 parent c295f6f commit 5fb949d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions make.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { mkdirSync, copyFileSync, readFileSync, writeFileSync } from "fs";
mkdirSync("./build", { recursive: true });
mkdirSync("./dist", { recursive: true });
const binPath = process.argv[2];
if (binPath === undefined) throw new Error("No bin path provided");
copyFileSync(process.execPath, binPath);
Expand Down

0 comments on commit 5fb949d

Please sign in to comment.