Skip to content
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

Add error on new module/moduleResolution modes when used in non-nightly TS #46557

Merged
merged 2 commits into from Oct 29, 2021

Conversation

weswigham
Copy link
Member

@weswigham weswigham commented Oct 27, 2021

Since it depends on ts.version, it's not exactly stable to test in our usual test harness; specifically, our default version string includes -dev, however when this hits the beta/rc/release branch, we should see a swath of baselines that test these options suddenly change and add the error. That's... maybe a good thing? I'm on the fence about it.

Fixes #46454

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug For Milestone Bug PRs that fix a bug with a specific milestone and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 27, 2021
@DanielRosenwasser
Copy link
Member

That's... maybe a good thing? I'm on the fence about it.

It definitely means that the publishing process will have another step of updating baselines - I actually don't know if the bot will succeed in the usual update process it does.

What you could do is change the version string to -nonstable, but you'd have to update all the regexes to look for that instead of -dev .

@DanielRosenwasser
Copy link
Member

https://github.com/microsoft/TypeScript/pull/42921/files maybe it'll just work if you also change the tag to -nonpublished instead of -dev.

@DanielRosenwasser
Copy link
Member

I'll do it separately.

@DanielRosenwasser DanielRosenwasser merged commit 28e3cd3 into microsoft:main Oct 29, 2021
@DanielRosenwasser
Copy link
Member

Can't do it that way because that would break nightly publish - a bunch of tests would fail because they would stop having the error.

mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
…ly TS (microsoft#46557)

* Add error on new module/moduleResolution modes when used in non-nightly TS

* Update diagnostic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gate usage of --module/--moduleResolution node12/nodenext on nightly releases
3 participants