Skip to content

Commit

Permalink
Switch bin/preflight.ts to bin/preflight.sh to avoid "tsx not found"
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 25, 2024
1 parent 2eac499 commit 932cd14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions bin/preflight.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
cd "$SCRIPT_DIR" || exit 1

pnpm exec tsx "./src/index.ts"
3 changes: 0 additions & 3 deletions bin/preflight.ts

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"module": "./src/index.ts",
"types": "./src/index.ts",
"bin": {
"preflight": "./bin/preflight.ts"
"preflight": "./bin/preflight.sh"
},
"files": [
"./bin/preflight.js",
Expand Down

0 comments on commit 932cd14

Please sign in to comment.