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] npm exec does not pass switches to the inner function #2337

Closed
Redfire75369 opened this issue Dec 12, 2020 · 1 comment
Closed

[BUG] npm exec does not pass switches to the inner function #2337

Redfire75369 opened this issue Dec 12, 2020 · 1 comment
Labels
Release 7.x work is associated with a specific npm 7 release

Comments

@Redfire75369
Copy link

Current Behavior:

When entering this command, npm exec --no babel --watch src --out-dir dist, the output is all of the compiled files in text, which is the behaviour of npm exec --no babel src. This command, npm exec --no -c "babel --watch src --out-dir dist" has to be run for the expected behaviour.

Expected Behavior:

Console Output of Successfully compiled 21 files with Babel.
All scripts are compiled and output to the dist directory

Steps To Reproduce:

  1. In this environment, run npm exec --no babel --watch src --out-dir dist
  2. See console output of compiled files as text

Environment:

  • OS: Windows 10 Home v1909
  • Node: 15.4.0
  • npm: 7.1.2
  • @babel/cli: 7.12.10
  • @babel/core: 7.12.10
@Redfire75369 Redfire75369 added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Dec 12, 2020
@darcyclarke
Copy link
Contributor

darcyclarke commented Jan 29, 2021

@Redfire75369 I think you're missing a -- between your args (ex. npm exec --no -- babel --watch src --out-dir dist)

@darcyclarke darcyclarke removed Needs Triage needs review for next steps Bug thing that needs fixing labels Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

2 participants