Move root package.json pnpm settings into pnpm-workspace.yaml

オープン 初心者向け
#1,948 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
devtools

調査の方向性

pnpm の設定はルートの package.json にある pnpm ブロック(68〜94 行目)にあり、pnpm-workspace.yaml にはすでに allowBuilds、packageExtensions、peerDependencyRules があります。まず onlyBuiltDependencies と ignoredBuiltDependencies のリストを allowBuilds と比較し、その後 pnpm.overrides を overrides キーに移動してください。package.json から pnpm ブロックがなくなり、ワークスペースファイルにすべての設定があり、pnpm install --frozen-lockfile を実行しても pnpm-lock.yaml が変更されず pnpm 11 の警告も出なければ完了です。

索引モデルが issue の本文から書いたものです。

説明

Area: Infrastructure Chore Difficulty: Low Priority: Low

Root package.json (package.json:68-94) still carries a "pnpm" configuration block (overrides, onlyBuiltDependencies, ignoredBuiltDependencies). When a host runs a pnpm 11 global binary (even when delegating to "packageManager": "[email protected]" via manage-package-manager-versions), every pnpm command prints:

[WARN] The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides", "pnpm.onlyBuiltDependencies". See https://pnpm.io/settings for the new home of each setting.

pnpm-workspace.yaml (pnpm-workspace.yaml:2-13, 84-109) already holds the workspace's other pnpm 10/11 settings (allowBuilds, packageExtensions, patchedDependencies, peerDependencyRules, minimumReleaseAge), which creates two problems:

  1. Duplicate, diverging build-script lists: pnpm-workspace.yaml declares allowBuilds (with msgpackr-extract: false and without @tailwindcss/oxide or oxc-resolver), while package.json declares pnpm.onlyBuiltDependencies (including @tailwindcss/oxide, msgpackr-extract, and oxc-resolver) and pnpm.ignoredBuiltDependencies (@scarf/scarf).
  2. Overrides live only in package.json: pnpm.overrides (@tailwindcss/typography>postcss-selector-parser, @types/react, @types/react-dom, find-my-way@9, sharp, yaml@2) has not been moved to overrides in pnpm-workspace.yaml, so upgrading packageManager to pnpm 11 (or running pnpm 11 directly) silently drops those overrides.

Suggested fix

Move pnpm.overrides into overrides in pnpm-workspace.yaml, reconcile pnpm.onlyBuiltDependencies / pnpm.ignoredBuiltDependencies into allowBuilds in pnpm-workspace.yaml, remove the "pnpm" key from root package.json, and verify pnpm install --frozen-lockfile leaves pnpm-lock.yaml intact.

主要言語
TypeScript
スター
119
フォーク
19
平均マージ
1日 18時間
マージ済み PR(30日)
60

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DouglasNeuroInformatics/OpenDataCapture のほかの issue

DouglasNeuroInformatics/OpenDataCapture の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。