yarnpkg/yarn

Command-specific flags `--ignore-scripts` shouldn't be shown with `yarn help`

Open

#2,735 创建于 2017年2月20日

在 GitHub 查看
 (10 评论) (8 反应) (0 负责人)JavaScript (41,514 star) (2,731 fork)batch import
cat-buggood first issuehelp wantedtriaged

描述

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

What is the current behavior? yarn [command] --ignore-scripts does not ignore scripts

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

package.json:

{
  "scripts" : {
    "prebuild": "echo prebuild",
    "build": "echo build"
  }
}
$ yarn run build --ignore-scripts
yarn run v0.20.3
$ echo prebuild
prebuild
$ echo build
build
✨  Done in 0.25s.

What is the expected behavior?

$ yarn run build --ignore-scripts
yarn run v0.20.3
$ echo build
build
warning Ignored scripts due to flag.
✨  Done in 0.25s.

Please mention your node.js, yarn and operating system version.

what version
node -v 6.9.1
yarn -V 0.20.3
os-version: OS X 10.11.6

贡献者指南

Command-specific flags `--ignore-scripts` shouldn't be shown with `yarn help` · yarnpkg/yarn#2735 | Good First Issue