-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sample code doesn't work (with ts-node) #41
Comments
Hi, clime currently does not work with Could you elaborate a little bit on the motivation using |
Hi, Thanks for the response. I have a project I've built that is all typescript. I've been running I was a bit curious as to why clime might not work with I'm brand new to the node world...and I prefer avoiding an extra compile step (I've worked a lot with python and other scripted languages that don't need compiling as this happens on the fly). This may be out-of-scope or maybe a feature request, but Thoughts? Thanks! |
Thanks for the detailed feedback. I think it's reasonable to be able to specify module extensions in this case. Will try to add |
Hi @vilic, did you get the chance to take a look at the PR and possibly merge it? Thanks for the package! |
👍 |
you can add the following code to make it work properly. import { CLI } from 'clime';
CLI.commandModuleExtension = '.ts'; |
I'm using the barebones example code in the documentation for the 'greet' command. Does clime work with ts-node? Either it clime doesn' work with ts-node or I'm missing something super silly.
I have:
cli.ts:
default.ts:
Here is my tsconfig.json file:
But when I run it with
ts-node -P . src/cli.ts
, the only output I ever see is (note: tsconfig.json lives in.
):It doesn't complain about the required
name
parameter missing. I get no description, etc...What am I missing here?
The text was updated successfully, but these errors were encountered: