Git Product home page Git Product logo

Comments (8)

ianschmitz avatar ianschmitz commented on August 18, 2024 4

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.

wmonk avatar wmonk commented on August 18, 2024 1

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.

ianschmitz avatar ianschmitz commented on August 18, 2024

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.

ianschmitz avatar ianschmitz commented on August 18, 2024

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.

sartaj10 avatar sartaj10 commented on August 18, 2024

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.

GeeWee avatar GeeWee commented on August 18, 2024

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.

drager avatar drager commented on August 18, 2024

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.

wmonk avatar wmonk commented on August 18, 2024

Yep happy to take a PR for this, and will publish a major version 👍

from create-react-app-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.