Uses TSX as buildloader for running the packaged bin script docmaps-etl.
Related Issues
Doesn't exactly resolve #57 , but removes one major impetus for solving that quickly. Before this PR, it was not feasible to run npm install @docmaps/etl && npx docmaps-etl item ... because the compiled JS was not loadable by Node and there were ES module dependencies that got in the way of fixing this. We had to rely on ts-node.
Now we run npx tsx directly in the cli.js script and so the above invocation, as well as the faster invocation pnpm docmaps-etl ..., will work.
Checklist
[x] I have tested these changes locally and they work as expected.
[ ] I have added or updated tests to cover any new functionality or bug fixes.
[x] I have updated the documentation to reflect any changes or additions to the project.
Description
Uses TSX as buildloader for running the packaged
bin
scriptdocmaps-etl
.Related Issues
Doesn't exactly resolve #57 , but removes one major impetus for solving that quickly. Before this PR, it was not feasible to run
npm install @docmaps/etl && npx docmaps-etl item ...
because the compiled JS was not loadable by Node and there were ES module dependencies that got in the way of fixing this. We had to rely onts-node
.Now we run
npx tsx
directly in thecli.js
script and so the above invocation, as well as the faster invocationpnpm docmaps-etl ...
, will work.Checklist
Additional Information