Comments (8)
Are we feeling like this is a change we should make? I'd be happy to submit a PR. We should probably do a major version bump on react-scripts-ts
though.
from create-react-app-typescript.
This is an interesting question. If you look through past issues, most people are asking the package to upgrade the version os TS - the opposite issue for you!
What that does show though, is that there might be an opportunity to let consumers control their version of TS, while the package dictates a minimum version it supports on creation. I can't think of any issues that may arise from this, but maybe other people can 😄
Would be good to open this to discussion!
from create-react-app-typescript.
Yeah I think there's a couple benefits. It allows users to stay back on an older version if needed because of some breaking change in their project. Like I was describing has happened on a very large code base at my company. Stuck on 2.1.5 when 2.3.3 was current and took a significant effort to fix the issues for us to upgrade.
It also allows users to upgrade to the latest without having to release a new version of react-scripts-ts. I'm actually confused as to why this isn't already the case since you guys use the carat versioning to signify any 2.x.
Thanks for considering!
from create-react-app-typescript.
Oh I forgot to mention I thought of it since I've used gulp-typescript before which uses this same approach with the peerDependency
from create-react-app-typescript.
Same here. This would be a nice thing to do
I too want to lower the typescript version to 2.3.3 since I'm facing a few issues with the latest version.
from create-react-app-typescript.
Other side of the story - I'd like to be on typescript@next currently for some compilation performance improvements they've done there.
Being able to specify the typescript version would be really nice.
edit: It actually does seem to pick up on the new tsc if i install typescript@next
from create-react-app-typescript.
I agree with @ianschmitz. This is a change I would also appreciate! I want to use the latest changes of react-scripts-ts but use a slightly older typescript version at the moment.
I use yarn's resolutions
to accomplish that today like this:
"resolutions": {
"**/*/typescript": "2.3.4"
},
from create-react-app-typescript.
Yep happy to take a PR for this, and will publish a major version 👍
from create-react-app-typescript.
Related Issues (20)
- Browserlist error
- CRA 2.0 HOT 31
- Include nodejs v8 for for Travis CI build
- Remove dependency on babel HOT 2
- Using jest-extended? HOT 1
- Husky hooks not working HOT 1
- Update webpack-dev-server HOT 10
- Add documentation detailing differences between CRA 2.0 and CRA-TS HOT 10
- Source Maps don't work for `js` or `jsx` files in live dev mode.
- Version 4.0.8: Internet Explorer no working anymore HOT 2
- Build process is almost 20 minutes long HOT 1
- postcss support? HOT 1
- Why is Jest's version hard coded to "20.0.4"? HOT 1
- Jest doesn't work when I add lint-staged
- Maintenance
- Tslint rules are barriers to entry HOT 2
- [Help] Compatibility IE + Firefox old versions problems
- Are 4.X.X versions are legit? HOT 1
- Jest doesn't resolve absolute paths from tsconfig HOT 1
- npm start dont work on freeBSD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app-typescript.