Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: support for -S in env shebang #6305

Open
1 task
npenin opened this issue May 22, 2024 · 1 comment
Open
1 task

[Bug?]: support for -S in env shebang #6305

npenin opened this issue May 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@npenin
Copy link

npenin commented May 22, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

when using the -S parameter on env shebang line, the generated shim files are completely messed up

To reproduce

#!/usr/bin/env -S node --enable-source-maps
console.log('hello world')

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
  Binaries:
    Node: 22.2.0 - ~\AppData\Local\Temp\xfs-d216ad6d\node.CMD
    Yarn: 4.1.1 - ~\AppData\Local\Temp\xfs-d216ad6d\yarn.CMD
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD

Additional context

it is true for both generated shims on windows: shim and shim.cmd

@npenin npenin added the bug Something isn't working label May 22, 2024
@npenin
Copy link
Author

npenin commented May 22, 2024

apparently should have been covered by pnpm/cmd-shim@218d337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant