duel
duel copied to clipboard
TypeScript dual packages.
When the dual build is CJS * Replace `import.meta.url` with something like `require('url').pathToFileURL(__filename).toString()`. When the dual build is ESM * Repalce `__filename` with `import.meta.filename` or `fileURLToPath(import.meta.url)`. The latter option allows...
Nodejs: v20.12.2 Error when running duel: Failed to compile: spawn D:\project\xxxx\node_modules\.bin\tsc ENOENT Adding "shell: true" to the option of the spawn() function call in duel.js seems to solve the problem.
No need to keep both dependencies around. Also look into transforming the specifiers before compiling with `tsc`. I think that will cause `tsc` to complain about not being able to...
Add an `--exports` option that will generate package.json `exports` based on the build output. It should not support any additional configuration but instead assume basic defaults (if it requires a...