fromdeno / deno2node

Compile your Deno project to run on Node.js.
MIT License
115 stars 3 forks source link

Add `--version` flag #17

Closed KnorpelSenf closed 2 years ago

KnorpelSenf commented 2 years ago

Implements --version and -v for the CLI. Example output:

$ deno2node --version
deno2node 1.0.1
typescript 4.4.4
KnorpelSenf commented 2 years ago

This requires the ts-morph version string to be updated manually whenever the ts-morph dependency is updated.

Note also that future version releases must be performed using npm version so that the correct version string of deno2node can be injected before the release.

KnorpelSenf commented 2 years ago

How would we add tests for this?

KnorpelSenf commented 2 years ago

That was simple. Thanks! Can be merged now.