Skip to content

Commit 5ab6bbb

Browse files
authored
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.
1 parent f498aa2 commit 5ab6bbb

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

package.json

-13
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
},
109109
"scripts": {
110110
"build": "node ./scripts/rollup/build-all-release-channels.js",
111-
"build-combined": "echo 'build-combined is deprecated. yarn build instead.'",
112111
"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",
113112
"build-for-devtools-dev": "yarn build-for-devtools --type=NODE_DEV",
114113
"build-for-devtools-prod": "yarn build-for-devtools --type=NODE_PROD",
@@ -117,23 +116,11 @@
117116
"lint-build": "node ./scripts/rollup/validate/index.js",
118117
"extract-errors": "node scripts/error-codes/extract-errors.js",
119118
"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'",
121119
"test": "node ./scripts/jest/jest-cli.js",
122120
"test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable",
123121
"test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",
124122
"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'",
135123
"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'",
137124
"test-dom-fixture": "cd fixtures/dom && yarn && yarn predev && yarn test",
138125
"flow": "node ./scripts/tasks/flow.js",
139126
"flow-ci": "node ./scripts/tasks/flow-ci.js",

scripts/jest/jest-cli.js

-10
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ const argv = yargs
9393
type: 'boolean',
9494
default: false,
9595
},
96-
deprecated: {
97-
describe: 'Print deprecation message for command.',
98-
requiresArg: true,
99-
type: 'string',
100-
},
10196
compactConsole: {
10297
alias: 'c',
10398
describe: 'Compact console output (hide file locations).',
@@ -349,11 +344,6 @@ function getEnvars() {
349344
}
350345

351346
function main() {
352-
if (argv.deprecated) {
353-
console.log(chalk.red(`\nPlease run: \`${argv.deprecated}\` instead.\n`));
354-
return;
355-
}
356-
357347
validateOptions();
358348

359349
const args = getCommandArgs();

0 commit comments

Comments
 (0)