Skip to content

Commit

Permalink
Remove -- from some yarn run commands (cvat-ai#5173)
Browse files Browse the repository at this point in the history
In Yarn 1.0, the `--` is no longer required, and in Yarn 2.0 it is now
passed to the script verbatim, thus breaking the command.

There are also usages of `--` in `lint-staged.config.js`, but in those
cases, passing `--` to the script would be mildly beneficial (ensuring that
none of the file names are interpreted as options), so I'm keeping those.
  • Loading branch information
SpecLad authored Oct 27, 2022
1 parent 6d965b8 commit 286f942
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cvat-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs": "jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs",
"coveralls": "cat ./reports/coverage/lcov.info | coveralls",
"type-check": "tsc --noEmit",
"type-check:watch": "yarn run type-check -- --watch"
"type-check:watch": "yarn run type-check --watch"
},
"author": "CVAT.ai",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion cvat-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "yarn run patch; webpack --config ./webpack.config.js",
"server": "yarn run patch; nodemon --watch config --exec 'webpack-dev-server --config ./webpack.config.js --mode=development --open'",
"type-check": "tsc --noEmit",
"type-check:watch": "yarn run type-check -- --watch"
"type-check:watch": "yarn run type-check --watch"
},
"author": "CVAT.ai",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "webpack --config ./webpack.config.js",
"start": "webpack serve --env API_URL=http://localhost:7000 --config ./webpack.config.js --mode=development",
"type-check": "tsc --noEmit",
"type-check:watch": "yarn run type-check -- --watch",
"type-check:watch": "yarn run type-check --watch",
"lint": "eslint './src/**/*.{ts,tsx}'",
"lint:fix": "eslint './src/**/*.{ts,tsx}' --fix"
},
Expand Down

0 comments on commit 286f942

Please sign in to comment.