Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion dist/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/pkg.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -24,7 +24,7 @@
"typescript": "^5.9.3"
},
"bin": {
"shielded": "./dist/bin.js"
"shielded": "dist/bin.js"
},
"dependencies": {
"commander": "^12.0.0",
Expand Down