We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a06af3 commit 3ffd9b5Copy full SHA for 3ffd9b5
scripts/build.js
@@ -9,7 +9,8 @@ await $`cp -r tsp-output build`;
9
await $`cp -r vendors build`;
10
await $`cp -r assets build`;
11
12
-if ((await $`git branch --show-current`) != 'main') {
+const branch = await $`git branch --show-current`.quiet();
13
+if (branch.stdout.trim() != 'main') {
14
const hash = (await $`git rev-parse --short HEAD`.quiet()).toString().trim();
15
const version = `${hash}`;
16
0 commit comments