Skip to content

Commit

Permalink
Merge pull request #2078 from demergent-labs/tsx_problem
Browse files Browse the repository at this point in the history
fix global tsx requirement issue for azle's bin
  • Loading branch information
lastmjs authored Sep 9, 2024
2 parents 4159b47 + 2c524f8 commit 762fd51
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"type": "module",
"bin": {
"azle": "./src/build/index.ts"
"azle": "./src/build/index.js"
},
"main": "./src/lib/stable/index.ts",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions src/build/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env -S node --abort-on-uncaught-exception

import 'tsx';
import('./index.ts');
2 changes: 0 additions & 2 deletions src/build/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env -S tsx --abort-on-uncaught-exception

import { IOType } from 'child_process';
import { join } from 'path';

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 762fd51

Please sign in to comment.