.npmrc の target-arch/target-platform は pnpm では効かず supportedArchitectures を使う
Node.js
運用
node-pre-gyp 系の .npmrc 設定 target-arch/target-platform は npm 向けで、pnpm はこれらのキーを認識せず無視する。@swc/core のようなプラットフォーム別パッケージを optionalDependencies で出し分ける NAPI prebuilt 方式は node-gyp ビルドではないため target-arch では制御できない。pnpm では supportedArchitectures.os[]/cpu[] で制御する。複数プラットフォームを列挙すれば両バイナリを node_modules に共存させられるが、install が肥大化する。