Skip to content

Commit a932fa0

Browse files
committed
fix(init): use bin.js entry point for TypeScript loader in justfile
`just init` fails because `node packages/tools/src/index.ts` runs without a TypeScript loader, so Node.js cannot resolve `.js` imports to `.ts` files. Use `bin.js` which registers `@oxc-node/core/register` before importing `index.ts`.
1 parent 9322199 commit a932fa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _clean_dist:
1818

1919
init: _clean_dist
2020
cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear dprint taplo-cli -y
21-
node packages/tools/src/index.ts sync-remote
21+
node packages/tools/src/bin.js sync-remote
2222
pnpm install
2323
pnpm -C docs install
2424

0 commit comments

Comments
 (0)