-
Notifications
You must be signed in to change notification settings - Fork 507
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
How to specify typescript version? #852
Comments
Yes, TSDX uses whatever version of TS is in your |
@agilgur5 not sure what you mean. Lets say I create a folder In the source code you do: so how tsdx uses another version of typescript if the node_modules doen't exist yet? I can send a PR -> create read config file (if exist) and merge (using lodash) the dependencies list with whatever write in the config file.
I just say let me decided what version I want to install in those dependencies. because sometimes I use monorepo with one version and otherwise it will mess up my repo. |
You can do: npx tsdx create mylib
cd mylib
npm i typescript@3
You can also use
No I think this is out of scope and too large of a request, it increases the API surface and maintenance burden therein tremendously for little value. We can't accept every request and that creates sprawl; meanwhile TSDX's mission is enabling zero-config as much as possible. If you want to use different versions of dependencies and customize your templates heavily, you don't have to use See also #441 and related PRs, which invert your ask but still introduce a new API |
this command creates mylib with the lastest of typescript package (v4).
but I want to change to
typescript: "^3.9.3"
.Is there a way to configure this? like a config file such as:
if not supplier config the default is latest.
@agilgur5
The text was updated successfully, but these errors were encountered: