Skip to content

Commit

Permalink
don't skip tcli initialization if a prebuilt file is given
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Aug 22, 2024
1 parent 5872d7d commit 1ca3b8f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ const publish = async (target: string, file: string | undefined) => {
console.log("::endgroup::");
}

// Skip everything if a prebuilt file is provided
if(Bun.env.TS_FILE) {
console.log("Publishing prebuild file");
// This doesn't work because the thunderstore.toml needs to be created
// maybe this should just be a requirement of having a prebuilt file?
// // Skip everything if a prebuilt file is provided
// if(Bun.env.TS_FILE) {
// console.log("Publishing prebuild file");

await publish(target_repo, Bun.env.TS_FILE);
process.exit(0);
}
// await publish(target_repo, Bun.env.TS_FILE);
// process.exit(0);
// }


// Move files to where they're expected
Expand Down Expand Up @@ -188,5 +190,5 @@ console.log(`\n${TOML.stringify(tstore)}`);
console.log("::endgroup::");

// Build and publish package
await publish(target_repo, undefined);
await publish(target_repo, Bun.env.TS_FILE);

0 comments on commit 1ca3b8f

Please sign in to comment.