Skip to content

[Bug] use strict: command not found #455

@mprast

Description

@mprast

Describe the bug
yarn v1 is having trouble running pnpify - looks like .bin/pnpify is missing the node shebang at the top of the file. I think that this is a regression back to #258

To Reproduce
yarn add @yarnpkg/pnpify
yarn pnpify tsc

(truncated) Output:

line 1: use strict: command not found
line 2: syntax error near unexpected token '('
line 2: `var __importDefault = (this && this.__importDefault) || function (mod) {'

Additional context
My best guess from the outside is that the pragma at the top of lib/bin.js was removed in #328 and wasn't re-added.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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