-
Notifications
You must be signed in to change notification settings - Fork 280
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
plopfile.ts Typescript support #423
Comments
brilliant but where will this be declared |
In your npm scripts or when running from the command line. NODE_OPTIONS='--import tsx' npx plop --plopfile=plopfile.ts |
so something like this?
|
"plop": "NODE_OPTIONS='--import tsx' npx plop --plopfile=plopfile.ts" |
so i updated that and used but got this
|
That error means you are using Node <v20.6. For that, you need to use Try this: Node 20.6+ Node <20.6 |
i'm on node v21.7.1 |
@urizennnn If you have time please test #427 |
The original text of this issue at the top is a WONDERFUL solution to this problem. So nice, in fact, that I vote we DONT support TS files in Plop and instead document that as our official support (not joking) |
Agreed 👍 |
After my testing, he treated plop as a file for TSX to recognize, rather than believing that plop is an instruction |
@Coderclc Can you send a PR please? |
Fix the use of plofile.ts in README.md? |
@Coderclc Yes, if you have time and have tested it. I believe |
For anyone who would like to use a Typescript
plopfile.ts
instead of JS, I found that tsx loaders work:Node.js v20.6 and above
Node.js v20.5.1 and below
The text was updated successfully, but these errors were encountered: