Docmaps-Project / docmaps

Extensible protocol for document history metadata exchange, to enable trustworthy, rapid, open science, by and for preprint science communities.
MIT License
15 stars 1 forks source link

Use tsx for etl cli #94

Closed ships closed 1 year ago

ships commented 1 year ago

Description

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

Additional Information