Skip to content

Commit

Permalink
absolute paths maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Aug 21, 2024
1 parent 6fea27a commit 82ad332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ if(Bun.env.TS_FILE) {

// Move files to where they're expected
console.log("::group::Set up environment");
const path = Bun.env.TS_PATH ? p.normalize(Bun.env.TS_PATH) : "./*";
const path = Bun.env.TS_PATH ? p.normalize(Bun.env.TS_PATH) : p.join(process.cwd(), "*");
console.log("Moving files from", path, "to /dist");

// Create the dist dir
await fs.mkdir("/dist");
Bun.spawnSync(["mv", path, "/dist"]);
await Bun.spawn(["ls", "/dist"]).exited;

// The readme and icon need to be in the root though

Expand Down

0 comments on commit 82ad332

Please sign in to comment.