Plugins: Remove deprecated grafana-toolkit (#73489)

* remove grafana-toolkit

* replaces old tsconfig with grafana tsconfig

* fix betterer
This commit is contained in:
Yulia Shanyrova 2023-09-05 09:56:04 +02:00 committed by GitHub
parent a403027608
commit 77bf8215d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 7 additions and 661 deletions

View File

@ -870,11 +870,6 @@ exports[`better eslint`] = {
[0, 0, 0, "Do not use any type assertions.", "4"],
[0, 0, 0, "Do not use any type assertions.", "5"]
],
"packages/grafana-toolkit/src/cli/tasks/task.ts:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
[0, 0, 0, "Do not use any type assertions.", "1"],
[0, 0, 0, "Unexpected any. Specify a different type.", "2"]
],
"packages/grafana-ui/src/components/ColorPicker/ColorPicker.tsx:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]

1
.github/CODEOWNERS vendored
View File

@ -304,7 +304,6 @@
/packages/ @grafana/grafana-frontend-platform @grafana/plugins-platform-frontend
/packages/grafana-e2e-selectors/ @grafana/grafana-frontend-platform
/packages/grafana-e2e/ @grafana/grafana-frontend-platform
/packages/grafana-toolkit/ @grafana/plugins-platform-frontend
/packages/grafana-ui/.storybook/ @grafana/plugins-platform-frontend
/packages/grafana-ui/src/components/ @grafana/grafana-frontend-platform
/packages/grafana-ui/src/components/DateTimePickers/ @grafana/grafana-frontend-platform

View File

@ -18,7 +18,7 @@
"ora", // we should bump this once we move to esm modules
],
"includePaths": ["package.json", "packages/**"],
"ignorePaths": ["packages/grafana-toolkit/package.json", "emails/**", "plugins-bundled/**", "**/mocks/**"],
"ignorePaths": ["emails/**", "plugins-bundled/**", "**/mocks/**"],
"labels": ["area/frontend", "dependencies", "no-backport", "no-changelog"],
"packageRules": [
{

1
.gitignore vendored
View File

@ -138,7 +138,6 @@ pkg/services/quota/quotaimpl/storage/storage.json
/packages/**/.rpt2_cache
/packages/**/tsdoc-metadata.json
/packages/**/package.tgz
/packages/grafana-toolkit/sass
## CI places the packages in a different location
/npm-artifacts

View File

@ -13,7 +13,6 @@ packages/grafana-data/
packages/grafana-e2e/
packages/grafana-e2e-selectors/
packages/grafana-runtime/
packages/grafana-toolkit/
packages/grafana-ui/
packaging/
kinds/

View File

@ -21,7 +21,6 @@ These packages live in the `/packages` folder and contain packages like:
- `@grafana/data`
- `@grafana/runtime`
- `@grafana/toolkit`
- `@grafana/ui`
- etc. ([They can be viewed here](https://github.com/grafana/grafana/tree/main/packages)

View File

@ -93,7 +93,7 @@ Labeled with `add to changelog` and either labeled with `type/bug` or the pull r
**Plugin development fixes & changes:**
Labeled with `area/grafana/toolkit`, `area/grafana/ui` or `area/grafana/runtime`.
Labeled with `area/grafana/ui` or `area/grafana/runtime`.
**Deprecations:**

View File

@ -80,7 +80,6 @@
"@grafana/e2e": "workspace:*",
"@grafana/eslint-config": "6.0.1",
"@grafana/eslint-plugin": "link:./packages/grafana-eslint-rules",
"@grafana/toolkit": "workspace:*",
"@grafana/tsconfig": "^1.3.0-rc1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@react-types/button": "3.7.3",

View File

@ -12,7 +12,7 @@ All packages are versioned according to the current Grafana version:
- Grafana v6.2.5 -> @grafana/\* packages @ 6.2.5
- Grafana - main branch version (based on package.json, i.e. 6.4.0-pre) -> @grafana/\* packages @ 6.4.0-pre-<COMMIT-SHA> (see details below about packages publishing channels)
> Please note that @grafana/toolkit, @grafana/ui, @grafana/data, and @grafana/runtime packages are considered ALPHA even though they are not released as alpha versions.
> Please note that @grafana/ui, @grafana/data, and @grafana/runtime packages are considered ALPHA even though they are not released as alpha versions.
### Stable releases
@ -57,7 +57,7 @@ Every commit to main that has changes within the `packages` directory is a subje
To build individual packages, run:
```
yarn packages:build --scope=@grafana/<data|e2e|e2e-selectors|runtime|schema|toolkit|ui>
yarn packages:build --scope=@grafana/<data|e2e|e2e-selectors|runtime|schema|ui>
```
### Setting up @grafana/\* packages for local development

View File

@ -1,5 +1,5 @@
{
"extends": "@grafana/toolkit/src/config/tsconfig.plugin.json",
"extends": "@grafana/tsconfig",
"include": ["**/*.ts"],
"compilerOptions": {
"baseUrl": "../node_modules",

View File

@ -1,14 +0,0 @@
{
"rules": {
"no-restricted-imports": ["error", { "patterns": ["@grafana/runtime"] }]
},
"overrides": [
{
"files": ["./**/*.{ts,tsx}"],
"rules": {
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off"
}
}
]
}

View File

@ -1,47 +0,0 @@
# 7.3.0-beta1 (2020-10-15)
### Features / Enhancements
- **grafana/toolkit**: expose Jest maxWorkers arg for plugin test & build tasks. [#27724](https://github.com/grafana/grafana/pull/27724), [@domasx2](https://github.com/domasx2)
# 7.2.1 (2020-10-08)
### Features / Enhancements
- **grafana/toolkit**: Add --coverage flag to plugin build command. [#27743](https://github.com/grafana/grafana/pull/27743), [@gassiss](https://github.com/gassiss)
# 7.2.0 (2020-09-23)
### Bug Fixes
- **grafana/toolkit**: avoid path.resolve with globby in moveStaticFiles. [#27670](https://github.com/grafana/grafana/pull/27670), [@kennytm](https://github.com/kennytm)
# 7.0.0 (2020-05-18)
### Bug Fixes
- **@grafana/toolkit**: Use process.cwd() instead of PWD to get directory. [#24677](https://github.com/grafana/grafana/pull/24677), [@zoltanbedi](https://github.com/zoltanbedi)
# 7.0.0-beta.1 (2020-04-28)
### Features / Enhancements
- **Grafana Toolkit**: Adds template for backend data source. [#23864](https://github.com/grafana/grafana/pull/23864), [@bergquist](https://github.com/bergquist)
# 6.6.0-beta1 (2020-01-20)
### Features / Enhancements
- **grafana/toolkit**: Add option to override webpack config. [#20872](https://github.com/grafana/grafana/pull/20872), [@sebimarkgraf](https://github.com/sebimarkgraf)
# 6.4.0 (2019-10-01)
# 6.4.0-beta2 (2019-09-25)
### Features / Enhancements
- **grafana/toolkit**: Add plugin creation task. [#19207](https://github.com/grafana/grafana/pull/19207), [@dprokop](https://github.com/dprokop)
# 6.4.0-beta1 (2019-09-17)
First release, see [Readme](https://github.com/grafana/grafana/blob/v6.4.0-beta1/packages/grafana-toolkit/README.md) for details.

View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2015 Grafana Labs
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,15 +0,0 @@
> **WARNING: @grafana/toolkit is deprecated**.
# grafana-toolkit
grafana-toolkit is a CLI that enables efficient development of Grafana plugins. We want to help our community focus on the core value of their plugins rather than all the setup required to develop them.
## FAQ
### Which version of grafana-toolkit should I use?
You should not use grafana-toolkit anymore. [create-plugin](https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin/) is the tool to create new plugins and existing plugins should migrate.
## Contribute to grafana-toolkit
Grafana Toolkit is now deprecated.

View File

@ -1,49 +0,0 @@
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
let includeInternalScripts = false;
const isLinkedMode = () => {
// In circleci we are in linked mode. Detect by using the circle working directory,
// rather than the present working directory.
const pwd = process.env.CIRCLE_WORKING_DIRECTORY || process.env.PWD || process.cwd();
if (path.basename(pwd) === 'grafana-toolkit') {
return true;
}
try {
const resolvedPath = require.resolve('@grafana/toolkit');
return fs.lstatSync(resolvedPath).isSymbolicLink();
} catch {
return false;
}
};
const entrypoint = () => {
const entrypointBase = `${__dirname}/../src/cli/index`;
const resolvedJsDir = path.resolve(`${entrypointBase}.js`);
const resolvedTsDir = path.resolve(`${entrypointBase}.ts`);
// IF we have a toolkit directory AND linked grafana toolkit AND the toolkit dir is a symbolic lik
// THEN run everything in linked mode
if (isLinkedMode() || !fs.existsSync(resolvedJsDir)) {
console.log('Running in local/linked mode');
// This bin is used for cli executed internally
const tsProjectPath = path.resolve(__dirname, '../tsconfig.json');
require('ts-node').register({
project: tsProjectPath,
transpileOnly: true,
});
includeInternalScripts = true;
return resolvedTsDir;
}
// The default entrypoint must exist, return it now.
return resolvedJsDir;
};
require(entrypoint()).run(includeInternalScripts);

View File

@ -1,49 +0,0 @@
{
"author": "Grafana Labs",
"license": "Apache-2.0",
"name": "@grafana/toolkit",
"version": "10.2.0-pre",
"description": "Grafana Toolkit",
"keywords": [
"grafana",
"cli",
"plugins",
"typescript"
],
"repository": {
"type": "git",
"url": "http://github.com/grafana/grafana.git",
"directory": "packages/grafana-toolkit"
},
"bin": {
"grafana-toolkit": "./bin/grafana-toolkit.js"
},
"publishConfig": {
"access": "public"
},
"files": [
"config",
"src",
"sass",
"./README.md",
"./CHANGELOG.md",
"LICENSE_APACHE2"
],
"scripts": {
"build": "yarn clean && tsc -p tsconfig.json",
"clean": "rm -rf ./dist ./compiled ./sass ./package.tgz",
"prepack": "mv ./src ./src_bak && cp -r ./dist/src ./src",
"postpack": "rm -rf ./src && mv ./src_bak ./src",
"typecheck": "tsc --noEmit"
},
"main": "src/index.ts",
"dependencies": {
"@grafana/tsconfig": "^1.2.0-rc1",
"@types/node": "16.11.26",
"chalk": "^4.1.2",
"commander": "^9.2.0",
"ts-node": "^9.1.0",
"tslib": "2.5.0",
"typescript": "4.8.2"
}
}

View File

@ -1 +0,0 @@
export type Task<T> = (options: T) => Promise<void>;

View File

@ -1,91 +0,0 @@
import chalk from 'chalk';
import { program } from 'commander';
import { getToolkitVersion } from './tasks/plugin.utils';
import { templateTask } from './tasks/template';
import { execTask } from './utils/execTask';
export const run = (includeInternalScripts = false) => {
if (includeInternalScripts) {
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', (v) => v.split(','));
program
.command('debug:template')
.description('Just testing')
.action(async () => {
await execTask(templateTask)({});
});
}
program.option('-v, --version', 'Toolkit version').action(async () => {
const version = getToolkitVersion();
console.log(`v${version}`);
});
program
.command('plugin:create [name]')
.description('[removed] Use grafana create-plugin instead')
.action(async () => {
console.log(
'No longer supported. Use grafana create-plugin https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin\n'
);
process.exit(1);
});
program
.command('plugin:build')
.option('--maxJestWorkers <num>|<string>', 'Limit number of Jest workers spawned')
.option('--coverage', 'Run code coverage', false)
.option('--skipTest', 'Skip running tests (for pipelines that run it separate)', false)
.option('--skipLint', 'Skip running lint (for pipelines that run it separate)', false)
.option('--preserveConsole', 'Preserves console calls', false)
.description('[removed] Use grafana create-plugin instead')
.action(async () => {
console.log(
'No longer supported. Use grafana create-plugin https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin\n'
);
process.exit(1);
});
program
.command('plugin:sign')
.option('--signatureType <type>', 'Signature Type')
.option(
'--rootUrls <urls...>',
'Root URLs',
function (url: string, urls: string[]) {
if (typeof url !== 'string') {
return urls;
}
const parts = url.split(',');
urls.push(...parts);
return urls;
},
[]
)
.description('[removed] Use grafana sign-plugin instead')
.action(() => {
console.log(
'No longer supported. Use grafana sign-plugin https://github.com/grafana/plugin-tools/tree/main/packages/sign-plugin\n'
);
process.exit(1);
});
program.on('command:*', () => {
console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' '));
process.exit(1);
});
program.parse(process.argv);
const options = program.opts();
if (options.depreciate && options.depreciate.length === 2) {
console.log(
chalk.yellow.bold(
`[NPM script depreciation] ${options.depreciate[0]} is deprecated! Use ${options.depreciate[1]} instead!`
)
);
}
};

View File

@ -1,10 +0,0 @@
import { readFileSync } from 'fs';
export const getToolkitVersion = () => {
const pkg = readFileSync(`${__dirname}/../../../package.json`, 'utf8');
const { version } = JSON.parse(pkg);
if (!version) {
throw `Could not find the toolkit version`;
}
return version;
};

View File

@ -1,25 +0,0 @@
export type TaskRunner<T> = (options: T) => Promise<any>;
export class Task<TOptions> {
options: TOptions = {} as any;
constructor(
public name: string,
public runner: TaskRunner<TOptions>
) {}
setName = (name: string) => {
this.name = name;
};
setRunner = (runner: TaskRunner<TOptions>) => {
this.runner = runner;
};
setOptions = (options: TOptions) => {
this.options = options;
};
exec = () => {
return this.runner(this.options);
};
}

View File

@ -1,9 +0,0 @@
import { Task, TaskRunner } from './task';
interface TemplateOptions {}
const templateRunner: TaskRunner<TemplateOptions> = async () => {
console.log('Template task');
};
export const templateTask = new Task<TemplateOptions>('Template task', templateRunner);

View File

@ -1,6 +0,0 @@
{
"compilerOptions": {
"module": "commonjs"
},
"extends": "@grafana/tsconfig"
}

View File

@ -1,26 +0,0 @@
/* eslint-disable no-console */
import chalk from 'chalk';
import { Task } from '../tasks/task';
interface TaskBasicOptions {
// Don't print task details when running
silent?: boolean;
}
export const execTask =
<TOptions>(task: Task<TOptions>) =>
async (options: TOptions & TaskBasicOptions) => {
if (!options.silent) {
console.log(chalk.yellow(`Running ${chalk.bold(task.name)} task`));
}
task.setOptions(options);
try {
console.group();
await task.exec();
console.groupEnd();
} catch (e) {
console.trace(e);
process.exit(1);
}
};

View File

@ -1,15 +0,0 @@
{
"compilerOptions": {
"declarationDir": "dist/src/cli",
"module": "commonjs",
"outDir": "dist/src/cli",
"rootDirs": ["."],
"paths": {
"@grafana/toolkit": ["."]
},
"useUnknownInCatchVariables": false
},
"exclude": ["dist", "node_modules"],
"extends": "@grafana/tsconfig",
"include": ["src/**/*.ts", "../../public/app/types/jquery/*.ts"]
}

View File

@ -21,7 +21,6 @@ const NpmArtifactDir = "./npm-artifacts"
var packages = []string{
"@grafana/ui",
"@grafana/data",
"@grafana/toolkit",
"@grafana/runtime",
"@grafana/e2e",
"@grafana/e2e-selectors",

View File

@ -16,7 +16,7 @@ while IFS=" " read -r -a package; do
CURRENT="./pr/$PACKAGE_PATH"
# Temporarily skipping these packages as they don't have any exposed static typing
if [[ "$PACKAGE_PATH" == 'grafana-toolkit' || "$PACKAGE_PATH" == 'grafana-eslint-rules' ]]; then
if [[ "$PACKAGE_PATH" == 'grafana-eslint-rules' ]]; then
continue
fi

View File

@ -30,18 +30,6 @@ for file in "$ARTIFACTS_DIR"/*.tgz; do
fi
done
# @grafana/toolkit structure is different to the other packages
if [[ "$dir_name" == "grafana-toolkit" ]]; then
if [ ! -d bin ] || [ ! -f bin/grafana-toolkit.js ]; then
echo -e "❌ Failed: Missing 'bin' directory or required files in package $dir_name.\n"
exit 1
fi
echo -e "✅ Passed: package checks for $file.\n"
popd || exit
continue
fi
# Assert commonjs builds
if [ ! -d dist ] || [ ! -f dist/index.js ] || [ ! -f dist/index.d.ts ]; then
echo -e "❌ Failed: Missing 'dist' directory or required commonjs files in package $dir_name.\n"

View File

@ -3977,22 +3977,6 @@ __metadata:
languageName: unknown
linkType: soft
"@grafana/toolkit@workspace:*, @grafana/toolkit@workspace:packages/grafana-toolkit":
version: 0.0.0-use.local
resolution: "@grafana/toolkit@workspace:packages/grafana-toolkit"
dependencies:
"@grafana/tsconfig": ^1.2.0-rc1
"@types/node": 16.11.26
chalk: ^4.1.2
commander: ^9.2.0
ts-node: ^9.1.0
tslib: 2.5.0
typescript: 4.8.2
bin:
grafana-toolkit: ./bin/grafana-toolkit.js
languageName: unknown
linkType: soft
"@grafana/tsconfig@npm:^1.2.0-rc1":
version: 1.2.0-rc1
resolution: "@grafana/tsconfig@npm:1.2.0-rc1"
@ -10288,13 +10272,6 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:16.11.26":
version: 16.11.26
resolution: "@types/node@npm:16.11.26"
checksum: 57757caaba3f0d95de82198cb276a1002c49b710108c932a1d02d7c91ff2fa57cfe2dd19fde60853b6dd90b0964b3cf35557981d2628e20aed6a909057aedfe6
languageName: node
linkType: hard
"@types/node@npm:18.16.16":
version: 18.16.16
resolution: "@types/node@npm:18.16.16"
@ -14354,13 +14331,6 @@ __metadata:
languageName: node
linkType: hard
"commander@npm:^9.2.0":
version: 9.2.0
resolution: "commander@npm:9.2.0"
checksum: 7c82e4cd969712aa6d7c055b8351807a7230f9f31ef7ec7881e11a1147511de85adf5d6ccfd200240a118eecf693b220caf6865b8efbcea558a70d35aa9ed711
languageName: node
linkType: hard
"commander@npm:^9.4.0":
version: 9.4.0
resolution: "commander@npm:9.4.0"
@ -19261,7 +19231,6 @@ __metadata:
"@grafana/runtime": "workspace:*"
"@grafana/scenes": ^0.27.0
"@grafana/schema": "workspace:*"
"@grafana/toolkit": "workspace:*"
"@grafana/tsconfig": ^1.3.0-rc1
"@grafana/ui": "workspace:*"
"@kusto/monaco-kusto": ^7.4.0
@ -29809,7 +29778,7 @@ __metadata:
languageName: node
linkType: hard
"source-map-support@npm:^0.5.16, source-map-support@npm:^0.5.17":
"source-map-support@npm:^0.5.16":
version: 0.5.21
resolution: "source-map-support@npm:0.5.21"
dependencies:
@ -31502,27 +31471,6 @@ __metadata:
languageName: node
linkType: hard
"ts-node@npm:^9.1.0":
version: 9.1.1
resolution: "ts-node@npm:9.1.1"
dependencies:
arg: ^4.1.0
create-require: ^1.1.0
diff: ^4.0.1
make-error: ^1.1.1
source-map-support: ^0.5.17
yn: 3.1.1
peerDependencies:
typescript: ">=2.7"
bin:
ts-node: dist/bin.js
ts-node-script: dist/bin-script.js
ts-node-transpile-only: dist/bin-transpile.js
ts-script: dist/bin-script-deprecated.js
checksum: 356e2647b8b1e6ab00380c0537fa569b63bd9b6f006cc40fd650f81fae1817bd8fecc075300036950d8f45c1d85b95be33cd1e48a1a424a7d86c3dbb42bf60e5
languageName: node
linkType: hard
"ts-toolbelt@npm:^9.6.0":
version: 9.6.0
resolution: "ts-toolbelt@npm:9.6.0"
@ -31752,16 +31700,6 @@ __metadata:
languageName: node
linkType: hard
"typescript@npm:4.8.2":
version: 4.8.2
resolution: "typescript@npm:4.8.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 7f5b81d0d558c9067f952c7af52ab7f19c2e70a916817929e4a5b256c93990bf3178eccb1ac8a850bc75df35f6781b6f4cb3370ce20d8b1ded92ed462348f628
languageName: node
linkType: hard
"typescript@npm:4.8.4, typescript@npm:^3 || ^4":
version: 4.8.4
resolution: "typescript@npm:4.8.4"
@ -31792,16 +31730,6 @@ __metadata:
languageName: node
linkType: hard
"typescript@patch:typescript@4.8.2#~builtin<compat/typescript>":
version: 4.8.2
resolution: "typescript@patch:typescript@npm%3A4.8.2#~builtin<compat/typescript>::version=4.8.2&hash=3b564f"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 28e130a49d9330b64b8229ad336247bf980e9a705c5850f30a859a68c051e8e68e367b3275f119da4a825dca71ad0fe315964a1315d4a381c0021bca5eeeb62e
languageName: node
linkType: hard
"typescript@patch:typescript@4.8.4#~builtin<compat/typescript>, typescript@patch:typescript@^3 || ^4#~builtin<compat/typescript>":
version: 4.8.4
resolution: "typescript@patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>::version=4.8.4&hash=1a91c8"