NativeScript / NativeScript/nativescript-cli

Support pnpm without shamefully-hoist

未關閉
#5,775 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

feature-pending-triage
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
8

描述

Is your feature request related to a problem? Please describe.

It would be nice if NativeScript worked with pnpm without --shamefully-hoist, as that flag disables the isolation and strictness of packages that pnpm otherwise grants, and makes NativeScript incompatible with pnpm workspaces as it likely assumes on where the hoisting happens and workspaces generally don't use or want to use that flag.

Describe the solution you'd like

Support pnpm without --shamefully-hoist.

Describe alternatives you've considered

Give up and use it with the flag outside a pnpm workspace, wiring the internal packages some other way.

Anything else?

shamefully-hoist = true can be included in a project level .npmrc for users running pnpm install directly so they don't have to remember including that. It can also be generated by the CLI when using pnpm or suggested to be added by it if it is missing.

Please accept these terms

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

該 issue 沒有指出檔案、測試或進入點。首先追蹤 CLI 對 package-manager 和 workspace 安裝的處理,然後找出哪些地方存在關於 hoisting 的假設。當 NativeScript 能夠在 pnpm workspace 中運作而不需要 --shamefully-hoist,同時保留 pnpm 的套件隔離機制時,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
build-system, cli
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。