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

Pin @types/bluebird to the last version that worked with TS v3 #52

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

lukehorvat
Copy link
Contributor

Scope

Intervene currently supports 3.5.x versions of @types/bluebird. The latest 3.5.x versions drop support for TS v3 in favor of TS v4: https://www.npmjs.com/package/@types/bluebird?activeTab=versions

Since Intervene uses TS v3, we need to pin the version of @types/bluebird to one that is compatible. Otherwise you will see a lot of TS errors when running a fresh install of Intervene.

Pinning is a band-aid fix; obviously in the long term we should upgrade Intervene to TS v4.

How to test

  1. Checkout master branch of this repo locally.
  2. Change the version of @types/bluebird to 3.5.38 (without ^) in package.json.
  3. Run make build. It should fail with lots of TS errors.
  4. Undo the change and checkout this branch.
  5. Run make build again. It should succeed with no errors.

Copy link
Contributor

@pablofmena pablofmena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

package.json Outdated
@@ -41,7 +41,7 @@
"sudo-prompt": "^8.2.3",
"susie": "^3.0.0",
"ts-node": "^8.10.1",
"typescript": "^3.8.3",
"typescript": "^3.9.10",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to use ~ for typescript given we're pinning it as well and it doesn't follow semver strictly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep i think so 👍

@lukehorvat lukehorvat merged commit d7af637 into master Feb 17, 2023
@lukehorvat lukehorvat deleted the fix-ts-compile-bug branch February 17, 2023 11:45
@intervene-ci
Copy link
Collaborator

🎉 This PR is included in version 3.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

lukehorvat added a commit that referenced this pull request Feb 17, 2023
The fix from #52 didn't work because I think they configured their `typesVersions` wrong in v3.5.36.
intervene-ci pushed a commit that referenced this pull request Feb 17, 2023
## [3.1.5](v3.1.4...v3.1.5) (2023-02-17)

### Bug Fixes

* Downgrade @types/bluebird to v3.5.34 ([899f03b](899f03b)), closes [#52](#52)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants