-
-
Notifications
You must be signed in to change notification settings - Fork 36
fix: Create templates added types/node #536
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
Conversation
|
SvelteKit users could be using older versions of Node.js. v22 should not be hardcoded: { "engines": { "node": ">=18.13" } } |
Yeah that is fair, a post install script is bloat for created project. Is there a simple way that you can think of, could just have ^18.13? I'm thinking of adding a node detection function that can be used during the copy over of package.json from template to build out version of types/node. This might be overkill EDIT: Ignore above, went with getting the version and updating in write common files |
commit: |
Thanks for the PR! I'm not actually sure this is a safe way. Going to the node downloads it currently suggest downloading v23, but as far as I can see, there is no Just having |
I'm not particularly convinced that this is something that we need add to the base These type errors really only occur when native node modules are being used in the project. In the case of the For the |
Alright, I'll adjust the PR to just 18.13 on templates for now. Is that the plan? @manuel3108 Then we can update if needed to add-on by add-on basis? |
Closes: #509