Skip to content

Remove pnpm-only public-hoist-pattern from kit .npmrc (npm warns on every run) #68

@midhunmonachan

Description

@midhunmonachan

Current generated .npmrc for Inertia blank base includes:

public-hoist-pattern[]=@inertiajs/core

When users run npm in generated kits, npm prints a warning each time because public-hoist-pattern is not an npm config key.

Repro:

  1. Create a Laravel app using an Inertia starter kit
  2. Open the generated project root
  3. Run npm install (or any npm command)
  4. Observe warning about unknown project config public-hoist-pattern

Why this matters:

  • noisy DX for default npm users
  • npm warns unsupported custom keys may stop working in a future major

Source in Maestro:

Suggested fix:

  • Remove public-hoist-pattern[]=@inertiajs/core from Maestro kit .npmrc

Related:

If this direction looks good, I can open a PR against Maestro with the minimal change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions