NativeScript / NativeScript/nativescript-cli

Support pnpm without shamefully-hoist

Open
#5,775 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-pending-triage
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the CLI's package-manager and workspace installation handling, then identify where assumptions about hoisting are made. Done means NativeScript works in a pnpm workspace without requiring --shamefully-hoist while retaining pnpm's package isolation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.