Toolkit: Deprecate node-version-check command (#57591)

* Toolkit: Deprecate node-version-check command

* Do not check for nodejs version on frontend-test
This commit is contained in:
Esteban Beltran 2022-10-25 14:53:53 +02:00 committed by GitHub
parent f64b0e1fae
commit 8d42e1b169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -48,7 +48,7 @@
"typecheck": "tsc --noEmit && yarn run packages:typecheck",
"plugins:build-bundled": "grafana-toolkit plugin:bundle-managed",
"watch": "yarn start -d watch,start core:start --watchTheme",
"ci:test-frontend": "yarn run test:ci && yarn grafana-toolkit node-version-check",
"ci:test-frontend": "yarn run test:ci",
"postinstall": "husky install",
"i18n:clean": "rimraf public/locales/en-US/grafana.json",
"i18n:extract": "yarn i18n:clean && yarn run i18next -c public/locales/i18next-parser.config.js 'public/**/*.{tsx,ts}' 'packages/grafana-ui/**/*.{tsx,ts}' && node ./public/locales/psuedo.js",

View File

@ -37,8 +37,15 @@ export const run = (includeInternalScripts = false) => {
program
.command('node-version-check')
.description('Verify node version')
.action(async (cmd) => {
.description('[deprecated] Verify node version')
.action(async () => {
chalk.yellow.bold(
`⚠️ This command is deprecated and will be removed in v10. No further support will be provided. ⚠️`
);
console.log(
'if you were reliant on this command we recommend https://www.npmjs.com/package/check-node-version'
);
await execTask(nodeVersionCheckerTask)({});
});