Skip to content

feat: migrate Yarn v1 to pnpm#942

Merged
kdaviduik merged 1 commit intomainfrom
03-09-feat_migrate_yarn_v1_to_pnpm
Mar 12, 2026
Merged

feat: migrate Yarn v1 to pnpm#942
kdaviduik merged 1 commit intomainfrom
03-09-feat_migrate_yarn_v1_to_pnpm

Conversation

@kdaviduik
Copy link
Contributor

Replace Yarn v1 with pnpm 10 as the package manager.

  • Create .npmrc (enable-pre-post-scripts, shamefully-hoist)
  • Generate pnpm-lock.yaml via pnpm import (exact version preservation)
  • Update all package.json scripts from yarn/npm to pnpm
  • Rename prepublish to prepublishOnly (modern lifecycle hook)
  • Add packageManager field for Corepack enforcement
  • Update CI workflows with pnpm/action-setup and --frozen-lockfile
  • Update dev.yml, shipit.production.yml, readme.md, DEPLOYING.md
  • Fix changeset detection in npm-release.yml (check *.md not dir empty)
  • Delete yarn.lock

shamefully-hoist is temporary: needed until browserify is replaced
by Vitest (PR 7a). enable-pre-post-scripts is permanent: the project
uses pretest and prepublishOnly lifecycle hooks.

@kdaviduik kdaviduik marked this pull request as ready for review March 9, 2026 19:59
@kdaviduik kdaviduik changed the base branch from kd-update-to-typescript to graphite-base/942 March 9, 2026 20:26
@kdaviduik kdaviduik force-pushed the 03-09-feat_migrate_yarn_v1_to_pnpm branch from 213bf77 to ee4846e Compare March 9, 2026 20:26
@kdaviduik kdaviduik changed the base branch from graphite-base/942 to 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests March 9, 2026 20:26
@kdaviduik kdaviduik marked this pull request as draft March 9, 2026 20:27
@kdaviduik kdaviduik marked this pull request as ready for review March 9, 2026 20:34
@kdaviduik kdaviduik force-pushed the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch from 731bb4a to cdb7712 Compare March 9, 2026 20:39
@kdaviduik kdaviduik force-pushed the 03-09-feat_migrate_yarn_v1_to_pnpm branch from ee4846e to 6adb227 Compare March 9, 2026 20:39
@kdaviduik kdaviduik marked this pull request as draft March 9, 2026 20:40
@kdaviduik kdaviduik force-pushed the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch from cdb7712 to d65c289 Compare March 9, 2026 20:44
@kdaviduik kdaviduik force-pushed the 03-09-feat_migrate_yarn_v1_to_pnpm branch 2 times, most recently from c394251 to a65405e Compare March 9, 2026 20:53
@kdaviduik kdaviduik marked this pull request as ready for review March 9, 2026 20:56
Replace Yarn v1 with pnpm as the package manager. Update all
package.json scripts from yarn/npm to pnpm, add pnpm-lock.yaml,
remove yarn.lock, configure .npmrc for pnpm, and update CI
workflow to use pnpm with frozen lockfile.

Add a 'Build generated styles' step in CI before lint because
src/styles/embeds/all.js and src/styles/host/main.js are
generated files (gitignored) that ESLint's import/no-unresolved
rule needs to resolve. pnpm install does not trigger lifecycle
scripts that generate them, unlike npm install.
@kdaviduik kdaviduik force-pushed the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch from d65c289 to a79416c Compare March 10, 2026 01:37
@kdaviduik kdaviduik force-pushed the 03-09-feat_migrate_yarn_v1_to_pnpm branch from a65405e to 12b544b Compare March 10, 2026 01:37
@kdaviduik kdaviduik requested a review from a team March 10, 2026 03:19
Base automatically changed from 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests to main March 11, 2026 15:49
@kdaviduik kdaviduik merged commit d83fdfa into main Mar 12, 2026
7 checks passed
@kdaviduik kdaviduik deleted the 03-09-feat_migrate_yarn_v1_to_pnpm branch March 12, 2026 14:16
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.

2 participants