Remove `--` from some `yarn run` commands (#5173)

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.
main
Roman Donchenko 3 years ago committed by GitHub
parent 6d965b80b8
commit 286f942b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@
"docs": "jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs", "docs": "jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs",
"coveralls": "cat ./reports/coverage/lcov.info | coveralls", "coveralls": "cat ./reports/coverage/lcov.info | coveralls",
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
"type-check:watch": "yarn run type-check -- --watch" "type-check:watch": "yarn run type-check --watch"
}, },
"author": "CVAT.ai", "author": "CVAT.ai",
"license": "MIT", "license": "MIT",

@ -8,7 +8,7 @@
"build": "yarn run patch; webpack --config ./webpack.config.js", "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'", "server": "yarn run patch; nodemon --watch config --exec 'webpack-dev-server --config ./webpack.config.js --mode=development --open'",
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
"type-check:watch": "yarn run type-check -- --watch" "type-check:watch": "yarn run type-check --watch"
}, },
"author": "CVAT.ai", "author": "CVAT.ai",
"license": "MIT", "license": "MIT",

@ -7,7 +7,7 @@
"build": "webpack --config ./webpack.config.js", "build": "webpack --config ./webpack.config.js",
"start": "webpack serve --env API_URL=http://localhost:7000 --config ./webpack.config.js --mode=development", "start": "webpack serve --env API_URL=http://localhost:7000 --config ./webpack.config.js --mode=development",
"type-check": "tsc --noEmit", "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": "eslint './src/**/*.{ts,tsx}'",
"lint:fix": "eslint './src/**/*.{ts,tsx}' --fix" "lint:fix": "eslint './src/**/*.{ts,tsx}' --fix"
}, },

Loading…
Cancel
Save