Skip to content

chore: prepare pnpm-workspace.yaml for pnpm 12 - #63

Open
hideokamoto wants to merge 1 commit into
mainfrom
chore/pnpm-12-ready
Open

hideokamoto wants to merge 1 commit into
mainfrom
chore/pnpm-12-ready

Conversation

@hideokamoto

Copy link
Copy Markdown
Owner

Before: the pnpm 12 update, #60, fails CircleCI. pnpm 12 does not read onlyBuiltDependencies, so the install stops with ERR_PNPM_IGNORED_BUILDS on dtrace-provider and @parcel/watcher. @parcel/watcher was already skipped on pnpm 10, so it is set to false to keep that. The pnpm 12 branch still fails until the newest lockfile entries on main, from #62 (@aws-sdk/client-cloudfront 3.1181.0 and rollup 4.69.1), are a day old.

After: pnpm-workspace.yaml lists the same packages under allowBuilds, which pnpm 12 reads and pnpm 10.34.9 reads too, and sets minimumReleaseAge: 1440.

pnpm 12 also rejects any lockfile entry published less than a day ago (ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION). With minimumReleaseAge: 1440, lockfile updates made on pnpm 10 resolve only versions at least a day old, so main stops picking up entries that pnpm 12 would reject. hideokamoto/renovate-config#5 makes Renovate wait the same day before proposing a direct npm update; without it, a same-day direct update fails to resolve under this setting.

How: checked locally with pnpm 10.34.9 on main (frozen install, build, lint, typecheck where present, tests) and with pnpm 12.23.0 on the pnpm 12 branch with this file.


Generated by Claude Code

pnpm 12 ignores onlyBuiltDependencies and fails the install with
ERR_PNPM_IGNORED_BUILDS for any build script nobody has ruled on, so move
the list to allowBuilds, which pnpm 10.34 also reads.

pnpm 12 also rejects every lockfile entry published less than a day ago.
Set minimumReleaseAge to the same day so lockfile updates made on pnpm 10
resolve older versions and do not bring such an entry in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • パッケージのビルド設定を更新し、ビルドスクリプトの実行可否を調整しました。
    • リリースまでに必要な最低待機時間を設定しました。
    • 設定ファイルに、対応するパッケージ管理ツールのバージョンやロックファイルへの影響に関する注記を追加しました。
    • アプリの機能や画面表示に関する変更はありません。

pnpm-workspace.yamlのビルドスクリプト設定をallowBuildsに変更し、minimumReleaseAgeを1440分に設定します。pnpmの互換性とロックファイルに関するコメントも追加します。

Changes: ワークスペース設定

Layer / File(s) Summary
ビルドポリシーと公開遅延の設定
pnpm-workspace.yaml
onlyBuiltDependenciesをallowBuildsに置き換え、dtrace-providerのビルドを許可し、@parcel/watcherのビルドを拒否します。minimumReleaseAgeを1440分に設定します。

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

  • Issue 44はpnpmの更新を追跡しており、この変更はpnpmの設定を更新します。ただし、Issue 44はこの設定変更を直接扱っていません。

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Minimal · up to b5041

This updates workspace configuration so installs keep working on both the current pnpm and the planned pnpm 12 upgrade. No actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed タイトルは変更内容の中心である pnpm-workspace.yaml の準備(pnpm 12 対応)を示しています。変更は onlyBuiltDependencies から allowBuilds への移行と minimumReleaseAge の設定であり、タイトルはこの主要な変更と関連します。ただし「prepare」という語は具体的な変更内容を示していません。
Description check Passed 説明文は、pnpm 12 で発生する ERR_PNPM_IGNORED_BUILDS の問題、onlyBuiltDependencies から allowBuilds への移行、minimumReleaseAge: 1440 の設定理由を具体的に述べており、変更内容と直接関連します。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 5fc051bc-446b-4f47-b501-c262706b936c
Commits

Reviewing files that changed from the base of the PR and between 77d4b69 and b504129.

Files selected for processing: 1

  • pnpm-workspace.yaml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@hideokamoto
hideokamoto marked this pull request as ready for review November 30, 2026 23:02

This branch has not been deployed

No deployments
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