-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
CLI dist/cli/main.js file is missing #!/usr/bin/env node at the very top. This causes pnpm happo to fail on systems where pnpm install prefers symlinking instead of creating command shims, e.g. macOS.
Steps to repro —
pnpm install [email protected]pnpm happo
/node_modules/.bin/happo: line 1: import: command not found
/node_modules/.bin/happo: line 2: startServer: command not found
/node_modules/.bin/happo: line 3: syntax error near unexpected token `}'
/node_modules/.bin/happo: line 3: `} from "./chunk-JTRP4JVC.js";'
Cross-platform workarounds:
- Directly-running script:
node node_modules/happo/dist/cli/main.js - Forcing PNPM to create command shims:
// pnpm-workspace.yaml
preferSymlinkedExecutables: false
Seems to have originated in #311.
Metadata
Metadata
Assignees
Labels
No labels