Skip to content

Commit

Permalink
fix: use '--import=tsx' on node>18
Browse files Browse the repository at this point in the history
  • Loading branch information
cusspvz committed Mar 12, 2024
1 parent a1ba533 commit af2ebe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "Mosano Dev Team <[email protected]>",
"license": "MIT",
"bin": {
"abmt": "node --experimental-loader tsx dist/cli.js"
"abmt": "node --import=tsx dist/cli.js"
},
"scripts": {
"dev": "rollup --config --sourcemap --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S node --experimental-loader tsx
#!/usr/bin/env -S node --import=tsx

import { Command } from 'commander';
import dotenv from 'dotenv';
Expand Down

0 comments on commit af2ebe9

Please sign in to comment.