diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8210a1..fd08a8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,14 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build + - name: Check compiled output is clean + run: | + 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 + fi - run: npm run lint # - run: npm test - run: npm install -g . 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",