From b057aa72a1d4c12f0ed118cdf53912cfcf5e2dcc Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Sun, 26 Jul 2026 20:55:34 -0500 Subject: [PATCH 1/3] build: regenerate TypeScript output --- dist/bin.js | 2 +- dist/pkg.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/bin.js b/dist/bin.js index 7b0261d..eef3171 100755 --- a/dist/bin.js +++ b/dist/bin.js @@ -39,7 +39,7 @@ if (!options.token) { } if (!options.token) { const tokenVariables = options.key ? 'SHIELDED_USER_TOKEN or SHIELDED_TOKEN' : 'SHIELDED_TOKEN'; - process.stderr.write(`Missing token. Please set the ${tokenVariables} environment variable or use --token option.`); + process.stderr.write(`Missing token. Please set the ${tokenVariables} environment variable or use --token option.\n\n`); process.stderr.write(program.helpInformation()); process.exit(1); } diff --git a/dist/pkg.json b/dist/pkg.json index 46193da..3de55c2 100644 --- a/dist/pkg.json +++ b/dist/pkg.json @@ -1,6 +1,6 @@ { "name": "shielded-cli", - "version": "0.2.0", + "version": "0.3.0", "description": "Shielded.dev JS SDK", "main": "dist/sdk.js", "scripts": { @@ -24,7 +24,7 @@ "typescript": "^5.9.3" }, "bin": { - "shielded": "./dist/bin.js" + "shielded": "dist/bin.js" }, "dependencies": { "commander": "^12.0.0", From 5a0a41f1f76e7e916b4c154e013127590b8c4fa7 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Sun, 26 Jul 2026 20:56:18 -0500 Subject: [PATCH 2/3] ci: verify compiled output is committed --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8210a1..f9bc3e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,13 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build + - name: Check compiled output is clean + run: | + if ! git diff --quiet -- ./dist; then + git diff -- ./dist + echo "::error::./dist has uncommitted changes after build" + exit 1 + fi - run: npm run lint # - run: npm test - run: npm install -g . From 7b6fc6453800ec01580ee72539027263b4faea1c Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Sun, 26 Jul 2026 21:43:00 -0500 Subject: [PATCH 3/3] ci: detect untracked compiled output --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9bc3e7..fd08a8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,8 @@ jobs: - run: npm run build - name: Check compiled output is clean run: | - if ! git diff --quiet -- ./dist; then + if [ -n "$(git status --porcelain --untracked-files=all -- ./dist)" ]; then + git status --short -- ./dist git diff -- ./dist echo "::error::./dist has uncommitted changes after build" exit 1