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

yarn run production fails #2349

Closed
MunifTanjim opened this issue Dec 27, 2016 · 3 comments
Closed

yarn run production fails #2349

MunifTanjim opened this issue Dec 27, 2016 · 3 comments

Comments

@MunifTanjim
Copy link

Do you want to request a feature or report a bug?

bug

What is the current behavior?

package.json scripts part:

  "scripts": {
    "production": "webpack -p"
  },

yarn command:

yarn run production

output:

yarn run v0.18.1
error No command specified.
info Commands available from binary scripts: webpack, webpack-dev-server
info Project commands
   - production
question Which command would you like to run?:

If the current behavior is a bug, please provide the steps to reproduce.

Same as above.

N.B.: The problem seems to exist for only if the script is named production. For example, if we change the name:

  "scripts": {
    "product": "webpack -p"
  },

yarn run product works just fine.

What is the expected behavior?

run the script with no error...

Please mention your node.js, yarn and operating system version.
node.js : v6.9.1
yarn : v0.18.1
os : UbuntuMATE 16.10

@benmvp
Copy link

benmvp commented Dec 29, 2016

FWIW, I was able to reproduce the same issue in v0.18.1. If you do npm run production it works just fine. Maybe production is some sort of secret reserved word...

@jerguslejko
Copy link

jerguslejko commented Dec 31, 2016

👍 same here

@iredchuk
Copy link
Contributor

This should be fixed in 0.19.
See #2112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants