Skip to content

Commit ced26cd

Browse files
authored
fix(init): use bin.js entry point for TypeScript loader in justfile (#1252)
Closes #1251 - `just init` fails with `ERR_MODULE_NOT_FOUND` because `node packages/tools/src/index.ts` runs without a TypeScript loader, so Node.js cannot resolve `.js` imports to `.ts` files - Changed to `node packages/tools/src/bin.js` which registers `@oxc-node/core/register` before importing `index.ts`, enabling proper `.js` → `.ts` resolution
1 parent 4bf3ec1 commit ced26cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)