Skip to content

narn <binary> incorrectly runs pnpm run <binary>  #28

@bbugh

Description

@bbugh

pnpm can run both scripts and binaries like yarn 'pnpm eslint' == 'yarn eslint' && 'pnpm test' == 'yarn test'.

When running narn eslint in a pnpm folder, it runs pnpm run.

The most correct form is pnpm exec <binary>, but pnpm lets you do it if there's no script name binary, same as yarn.

Example:

» pnpm eslint . --fix # Works fine

» narn eslint . --fix
pnpm run eslint . --fix # Incorrectly calls run
 ERR_PNPM_NO_SCRIPT  Missing script: eslint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions