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

Update TypeScript to version 5.7.2 #1929

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Update TypeScript to version 5.7.2 #1929

merged 1 commit into from
Dec 2, 2024

Conversation

kevinb-khan
Copy link
Contributor

@kevinb-khan kevinb-khan commented Nov 28, 2024

Summary:

Wonder Blocks is updating Storybook to 8.x which requires using "moduleResolution": "bundler" in its tsconfig, see https://stackoverflow.com/questions/72193784/why-doesnt-the-exports-field-of-npm-work-in-typescript for details. To fix this, I decided to update TypeScript in Wonder Blocks. Instead of updating to the minimally required version I figured I may as well upgrade to the most recent version since I'm upgrading anyways.

Although we probably don't need to update TypeScript in all of our repos at the same time (unless we start using new syntax), we may as well. That way, if a new Wonder Blocks package is published with new TS syntax it its types, Perseus will be ready.

In theory, this shouldn't change the output of any of the packages since we're using babel for compilation.

Issue: None

Test plan:

  • yarn typecheck

@kevinb-khan kevinb-khan self-assigned this Nov 28, 2024
@khan-actions-bot khan-actions-bot requested a review from a team November 28, 2024 20:34
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to package.json, tsconfig-common.json, yarn.lock

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

Copy link
Contributor

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (de2e40a) and published it to npm. You
can install it using the tag PR1929.

Example:

yarn add @khanacademy/perseus@PR1929

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR1929

Copy link
Contributor

github-actions bot commented Nov 28, 2024

Size Change: 0 B

Total Size: 1.29 MB

ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 77.9 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-editor/dist/es/index.js 697 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/index.js 422 kB
packages/perseus/dist/es/strings.js 3.68 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

Copy link
Collaborator

@jeremywiebe jeremywiebe left a comment

Choose a reason for hiding this comment

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

Nice. We're moving to Storybook 8 next week also: #1904

Thanks for this!

@kevinb-khan kevinb-khan merged commit 819184c into main Dec 2, 2024
20 of 27 checks passed
@kevinb-khan kevinb-khan deleted the ts-5.7.2 branch December 2, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants