-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
build: migrate to pnpm #5978
build: migrate to pnpm #5978
Conversation
|
Name | Type |
---|---|
@tiptap/core | Patch |
@tiptap/extension-font-size | Patch |
@tiptap/extension-blockquote | Patch |
@tiptap/extension-bold | Patch |
@tiptap/extension-bubble-menu | Patch |
@tiptap/extension-bullet-list | Patch |
@tiptap/extension-character-count | Patch |
@tiptap/extension-code-block-lowlight | Patch |
@tiptap/extension-code-block | Patch |
@tiptap/extension-code | Patch |
@tiptap/extension-collaboration-cursor | Patch |
@tiptap/extension-collaboration | Patch |
@tiptap/extension-color | Patch |
@tiptap/extension-document | Patch |
@tiptap/extension-dropcursor | Patch |
@tiptap/extension-floating-menu | Patch |
@tiptap/extension-focus | Patch |
@tiptap/extension-font-family | Patch |
@tiptap/extension-gapcursor | Patch |
@tiptap/extension-hard-break | Patch |
@tiptap/extension-heading | Patch |
@tiptap/extension-highlight | Patch |
@tiptap/extension-history | Patch |
@tiptap/extension-horizontal-rule | Patch |
@tiptap/extension-image | Patch |
@tiptap/extension-italic | Patch |
@tiptap/extension-link | Patch |
@tiptap/extension-list-item | Patch |
@tiptap/extension-list-keymap | Patch |
@tiptap/extension-mention | Patch |
@tiptap/extension-ordered-list | Patch |
@tiptap/extension-paragraph | Patch |
@tiptap/extension-placeholder | Patch |
@tiptap/extension-strike | Patch |
@tiptap/extension-subscript | Patch |
@tiptap/extension-superscript | Patch |
@tiptap/extension-table-cell | Patch |
@tiptap/extension-table-header | Patch |
@tiptap/extension-table-row | Patch |
@tiptap/extension-table | Patch |
@tiptap/extension-task-item | Patch |
@tiptap/extension-task-list | Patch |
@tiptap/extension-text-align | Patch |
@tiptap/extension-text-style | Patch |
@tiptap/extension-text | Patch |
@tiptap/extension-typography | Patch |
@tiptap/extension-underline | Patch |
@tiptap/extension-utils | Patch |
@tiptap/extension-youtube | Patch |
@tiptap/html | Patch |
@tiptap/pm | Patch |
@tiptap/react | Patch |
@tiptap/starter-kit | Patch |
@tiptap/suggestion | Patch |
@tiptap/vue-2 | Patch |
@tiptap/vue-3 | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
✅ Deploy Preview for tiptap-embed ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@tiptap/core
@tiptap/extension-blockquote
@tiptap/extension-bubble-menu
@tiptap/extension-bullet-list
@tiptap/extension-bold
@tiptap/extension-character-count
@tiptap/extension-code
@tiptap/extension-code-block
@tiptap/extension-code-block-lowlight
@tiptap/extension-collaboration
@tiptap/extension-collaboration-cursor
@tiptap/extension-color
@tiptap/extension-document
@tiptap/extension-dropcursor
@tiptap/extension-floating-menu
@tiptap/extension-focus
@tiptap/extension-font-family
@tiptap/extension-font-size
@tiptap/extension-gapcursor
@tiptap/extension-hard-break
@tiptap/extension-heading
@tiptap/extension-highlight
@tiptap/extension-history
@tiptap/extension-horizontal-rule
@tiptap/extension-image
@tiptap/extension-italic
@tiptap/extension-link
@tiptap/extension-list-keymap
@tiptap/extension-list-item
@tiptap/extension-mention
@tiptap/extension-ordered-list
@tiptap/extension-paragraph
@tiptap/extension-placeholder
@tiptap/extension-strike
@tiptap/extension-subscript
@tiptap/extension-superscript
@tiptap/extension-table
@tiptap/extension-table-cell
@tiptap/extension-table-header
@tiptap/extension-table-row
@tiptap/extension-task-item
@tiptap/extension-task-list
@tiptap/extension-text
@tiptap/extension-text-align
@tiptap/extension-text-style
@tiptap/extension-typography
@tiptap/extension-underline
@tiptap/extension-youtube
@tiptap/html
@tiptap/pm
@tiptap/react
@tiptap/starter-kit
@tiptap/suggestion
@tiptap/vue-2
@tiptap/vue-3
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looked fine to me - just a few small questions.
@@ -15,11 +15,11 @@ | |||
"@shikijs/core": "1.10.3", | |||
"d3": "^7.9.0", | |||
"fast-glob": "^3.3.2", | |||
"highlight.js": "^11.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess those version bumps were necessary because pnpm won't load the correct dependencies? Seems like only minors/patches were updated - however we had a bad time in the past with packages only upgrading a minor but still breaking something. 😃
Do we have a fast way to make sure those package upgrades are not breaking anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I just bumped these while regenerating the lockfile (moving from package-lock to pnpm-lock).
I mean the tests ran against all of these and it seems to be working. I know our testing isn't super comprehensive, but we should trust them a bit haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, here was the issue: https://github.com/ueberdosis/tiptap/actions/runs/12629042554/job/35186222134?pr=5978#step:8:1377
Because the type is re-exported, it needs to be present in node_modules (as opposed to the root workspace). This is actually valid though, it is a hard-dep on the current types exported.
@@ -33,13 +33,14 @@ | |||
"directory": "packages/extension-bubble-menu" | |||
}, | |||
"sideEffects": false, | |||
"dependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we include floating-ui in the deps now instead of letting users manage it themselves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, I think I was running into dep resolution problems & this is something I tried that did nothing. Updating.
Though technically, this is mostly equivalent, since the dep is declared as a range.
Changes Overview
This PR, migrates us to use pnpm for installs, revamps our pipelines to actually hit caches, updates our packages to export CJS types correctly, and a number of small cross-cutting changes.
I've also implemented prettier formatting into the repo merging in this PR: #5796
AI summary
This pull request includes significant updates to the build and publish workflows, the transition from npm to pnpm, and various dependency updates. The most important changes are as follows:
Workflow Improvements:
PNPM_VERSION
environment variable and updated workflows to use pnpm for installing dependencies and running scripts. (.github/workflows/build.yml
,.github/workflows/publish.yml
) [1] [2].github/workflows/build.yml
,.github/workflows/publish.yml
) [1] [2] [3] [4]Dependency and Script Updates:
package.json
files and the addition of new dependencies. (demos/package.json
,package.json
,packages/core/package.json
,packages/extension-blockquote/package.json
,packages/extension-bold/package.json
,packages/extension-bubble-menu/package.json
) [1] [2] [3] [4] [5] [6]Configuration Changes:
link-workspace-packages
andprefer-workspace-packages
settings to.npmrc
for better workspace management. (.npmrc
)lint-staged
configuration and moved it from.lintstagedrc.js
topackage.json
. (.lintstagedrc.js
,package.json
) [1] [2]Codebase Enhancements:
package.json
files to ensure code quality. (packages/core/package.json
,packages/extension-blockquote/package.json
,packages/extension-bold/package.json
,packages/extension-bubble-menu/package.json
) [1] [2] [3] [4]exports
field for better module resolution. (packages/core/package.json
,packages/extension-blockquote/package.json
,packages/extension-bold/package.json
,packages/extension-bubble-menu/package.json
) [1] [2] [3] [4]Miscellaneous:
demos/vite.config.ts
. (demos/vite.config.ts
)findParentNode
function to improve type safety inpackages/core/src/helpers/findParentNode.ts
. (packages/core/src/helpers/findParentNode.ts
)Implementation Approach
Testing Done
Verification Steps
Additional Notes
Checklist
Related Issues