Toolkit: Deprecate plugin:bundle-managed command and move its functionality to a bash script. (#57719)

* Toolkit: Deprecate `plugin:bundle-managed` command

* Replace yarn script with bash command
This commit is contained in:
Esteban Beltran 2022-10-27 13:15:45 +02:00 committed by GitHub
parent 8b44ca1b0c
commit b4633fc516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@
"storybook:build": "yarn workspace @grafana/ui storybook:build",
"themes:generate": "ts-node --transpile-only --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts",
"typecheck": "tsc --noEmit && yarn run packages:typecheck",
"plugins:build-bundled": "grafana-toolkit plugin:bundle-managed",
"plugins:build-bundled": "find plugins-bundled -name package.json -not -path '*/node_modules/*' -execdir yarn build \\;",
"watch": "yarn start -d watch,start core:start --watchTheme",
"ci:test-frontend": "yarn run test:ci",
"postinstall": "husky install",

View File

@ -223,6 +223,9 @@ export const run = (includeInternalScripts = false) => {
.command('plugin:bundle-managed')
.description('Builds managed plugins')
.action(async (cmd) => {
chalk.yellow.bold(
`⚠️ This command is deprecated and will be removed in v10. No further support will be provided. ⚠️`
);
await execTask(bundleManagedTask)({});
});