diff --git a/bin/preflight.sh b/bin/preflight.sh new file mode 100755 index 00000000..20ac8a33 --- /dev/null +++ b/bin/preflight.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +SCRIPT_DIR="${BASH_SOURCE[0]%/*}" +cd "$SCRIPT_DIR" || exit 1 + +pnpm exec tsx "./src/index.ts" diff --git a/bin/preflight.ts b/bin/preflight.ts deleted file mode 100755 index 12968d35..00000000 --- a/bin/preflight.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S pnpm exec tsx - -import '../src/index.ts'; diff --git a/package.json b/package.json index 81919471..49de5da3 100644 --- a/package.json +++ b/package.json @@ -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",