Describe the bug
just init fails with ERR_MODULE_NOT_FOUND because justfile line 21 runs node packages/tools/src/index.ts sync-remote directly. Node.js cannot resolve .js extension imports (e.g. import('./sync-remote-deps.js')) to .ts files without a TypeScript loader.
The correct entry point is packages/tools/src/bin.js, which registers @oxc-node/core/register before importing index.ts.
Reproduction
Clone the repo and run: just init
Steps to reproduce
git clone the repo
- Run
just init
- Observe
ERR_MODULE_NOT_FOUND for sync-remote-deps.js
System Info
Node.js v22.18.0
just 1.48.1
Used Package Manager
pnpm
Logs
node packages/tools/src/index.ts sync-remote
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/.../packages/tools/src/sync-remote-deps.js' imported from /Users/.../packages/tools/src/index.ts
Validations
Describe the bug
just initfails withERR_MODULE_NOT_FOUNDbecausejustfileline 21 runsnode packages/tools/src/index.ts sync-remotedirectly. Node.js cannot resolve.jsextension imports (e.g.import('./sync-remote-deps.js')) to.tsfiles without a TypeScript loader.The correct entry point is
packages/tools/src/bin.js, which registers@oxc-node/core/registerbefore importingindex.ts.Reproduction
Clone the repo and run:
just initSteps to reproduce
git clonethe repojust initERR_MODULE_NOT_FOUNDforsync-remote-deps.jsSystem Info
Used Package Manager
pnpm
Logs
node packages/tools/src/index.ts sync-remote Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/.../packages/tools/src/sync-remote-deps.js' imported from /Users/.../packages/tools/src/index.tsValidations