Skip to content

Commit 2a002db

Browse files
committed
Ship a JS bundle instead of a bun native one
1 parent 3eb170e commit 2a002db

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:update": "bun test --update-snapshots",
1111
"format": "prettier ./ --ignore-unknown --write",
1212
"format:check": "prettier ./ --ignore-unknown --list-different",
13-
"build": "bun build ./src/cli.ts --compile --outfile ./dist/cli",
13+
"build": "bun build ./src/cli.ts --outfile ./dist/cli.js",
1414
"typecheck": "tsc --noEmit",
1515
"prepublish": "bun run build"
1616
},
@@ -30,6 +30,12 @@
3030
"typescript": "^5.2.2"
3131
},
3232
"bin": {
33-
"openapi-static-validator": "./dist/cli"
34-
}
33+
"openapi-static-validator": "./dist/cli.js"
34+
},
35+
"files": [
36+
"bin/**/*",
37+
"src/**/*",
38+
"!src/tests/**/*",
39+
"!src/**/*.test.ts"
40+
]
3541
}

src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
import { Compiler } from './compiler';
23
import { readFileSync } from 'node:fs';
34

0 commit comments

Comments
 (0)