@samitouri / QOS-React-1 / commits / 5ab6bbb4b0

package.json: cleanup deprecated scripts (#26852)

I think these have been dead for a while now. If the purpose is documentation, we should see if we need to improve `yarn test --help` or something instead.

Jan Kassens committed Dec 4, 2023 at 16:20 UTC 5ab6bbb4b058e22658fc6d4734db5acfbf393345
2 files changed -23
package.json
-13
@@ -108,7 +108,6 @@
108 },
109 "scripts": {
110 "build": "node ./scripts/rollup/build-all-release-channels.js",
111 - "build-combined": "echo 'build-combined is deprecated. yarn build instead.'",
111 "build-for-devtools": "cross-env RELEASE_CHANNEL=experimental yarn build react/index,react/jsx,react-dom/index,react-dom/unstable_testing,react-dom/test-utils,react-is,react-debug-tools,scheduler,react-test-renderer,react-refresh,react-art --type=NODE",
112 "build-for-devtools-dev": "yarn build-for-devtools --type=NODE_DEV",
113 "build-for-devtools-prod": "yarn build-for-devtools --type=NODE_PROD",
@@ -117,23 +116,11 @@
116 "lint-build": "node ./scripts/rollup/validate/index.js",
117 "extract-errors": "node scripts/error-codes/extract-errors.js",
118 "postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json && node ./scripts/flow/createFlowConfigs.js",
120 - "debug-test": "yarn test --deprecated 'yarn test --debug'",
119 "test": "node ./scripts/jest/jest-cli.js",
120 "test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable",
121 "test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",
122 "test-classic": "node ./scripts/jest/jest-cli.js --release-channel=www-classic",
125 - "test-www-variant": "yarn test --deprecated 'yarn test-www --variant'",
126 - "test-prod-www": "yarn test --deprecated 'yarn test-www --prod'",
127 - "test-prod-www-variant": "yarn test --deprecated 'yarn test-www --prod --variant'",
128 - "test-persistent": "yarn test --deprecated 'yarn test --persistent'",
129 - "debug-test-persistent": "yarn test --deprecated 'yarn test --debug --persistent'",
130 - "test-prod": "yarn test --deprecated 'yarn test --prod'",
131 - "debug-test-prod": "yarn test --deprecated 'yarn test --debug --prod'",
132 - "test-prod-build": "yarn test --deprecated 'yarn test --prod --build'",
133 - "test-build": "yarn test --deprecated 'yarn test --build'",
134 - "test-build-prod": "yarn test --deprecated 'yarn test --build --prod'",
123 "test-build-devtools": "node ./scripts/jest/jest-cli.js --build --project devtools --release-channel=experimental",
136 - "debug-test-build-devtools": "yarn test --deprecated 'yarn test-build-devtools --debug'",
124 "test-dom-fixture": "cd fixtures/dom && yarn && yarn predev && yarn test",
125 "flow": "node ./scripts/tasks/flow.js",
126 "flow-ci": "node ./scripts/tasks/flow-ci.js",
scripts/jest/jest-cli.js
-10
@@ -93,11 +93,6 @@ const argv = yargs
93 type: 'boolean',
94 default: false,
95 },
96 - deprecated: {
97 - describe: 'Print deprecation message for command.',
98 - requiresArg: true,
99 - type: 'string',
100 - },
96 compactConsole: {
97 alias: 'c',
98 describe: 'Compact console output (hide file locations).',
@@ -349,11 +344,6 @@ function getEnvars() {
344 }
345
346 function main() {
352 - if (argv.deprecated) {
353 - console.log(chalk.red(`\nPlease run: \`${argv.deprecated}\` instead.\n`));
354 - return;
355 - }
356 -
347 validateOptions();
348
349 const args = getCommandArgs();