Skip to content

Commit

Permalink
cleanup, add extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Aug 22, 2024
1 parent cd84005 commit a8b84e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const moveDirContents = async (from: string, to: string) => {

const publish = async (target: string, file: string | undefined) => {
console.log("::group::Publish package");
console.log(`Publishing with target repoitory '${target}'`)
const args = file ? ["--file", p.join("/dist", file)] : [];
const pub = Bun.spawnSync(["tcli", "publish", "--repository", target, ...args], {
env: {...Bun.env}
Expand Down Expand Up @@ -162,9 +163,8 @@ if (categories && categories !== "") {
if (deps && deps !== "") {
console.log("::debug::Parsing dependencies: ", deps.split(" "));
const p: Record<string, string> = {};
for (let d of deps.split(" ")) {
for (const d of deps.split(" ")) {
if (!d) {
console.log("::warn::Empty dependency", d);
continue;
}

Expand All @@ -178,7 +178,7 @@ if (deps && deps !== "") {
}
}

console.log("::debug:: Built depencendies:", p);
console.log("::debug::Built depencendies:", p);
tstore.package.dependencies = p;
}

Expand Down

0 comments on commit a8b84e3

Please sign in to comment.