Skip to content

Commit

Permalink
don't coaslesce TS_REPO
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Aug 24, 2024
1 parent bc4f637 commit 87a940b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const deps = (Bun.env.TS_DEPS ?? "").replace(/\n/g, " ");
const community = Bun.env.TS_COMMUNITY;
const nsfw = Bun.env.TS_NSFW;
const wrap = Bun.env.TS_WRAP;
const repo = Bun.env.TS_REPO ?? "https://thunderstore.io";
// can't use coalescence here because we need to default to thunderstore.io
// even if TS_REPO is defined but empty
const repo = Bun.env.TS_REPO ? Bun.env.TS_REPO : "https://thunderstore.io";
const target_repo = Bun.env.TS_DEV?.toLowerCase() === "true" ? "https://thunderstore.dev" : repo;

const moveDirContents = async (from: string, to: string) => {
Expand Down

0 comments on commit 87a940b

Please sign in to comment.