@grafana/create-plugin 6.7.1-canary.2369.20789853616.0 → 6.7.1-canary.2370.20798217827.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "6.7.1-canary.2369.20789853616.0",
3
+ "version": "6.7.1-canary.2370.20798217827.0",
4
4
  "repository": {
5
5
  "directory": "packages/create-plugin",
6
6
  "url": "https://github.com/grafana/plugin-tools"
@@ -55,5 +55,5 @@
55
55
  "engines": {
56
56
  "node": ">=20"
57
57
  },
58
- "gitHead": "779eacef0db77c47e8fadaead53cdebbe208fe24"
58
+ "gitHead": "bb9cbddbe1ddc57c7343dcaa5671238c128be212"
59
59
  }
@@ -21,8 +21,7 @@ import { externals } from '../bundler/externals';
21
21
  const { SubresourceIntegrityPlugin } = rspack.experiments;
22
22
  const pluginJson = getPluginJson();
23
23
  const cpVersion = getCPConfigVersion();
24
- const logoPaths = Array.from(new Set([pluginJson.info?.logos?.large, pluginJson.info?.logos?.small])).filter(Boolean);
25
- const screenshotPaths = Array.from(new Set(pluginJson.info?.screenshots?.map((s: { path: string }) => s.path)));
24
+
26
25
  const virtualPublicPath = new RspackVirtualModulePlugin({
27
26
  'grafana-public-path': `
28
27
  import amdMetaModule from 'amd-module';
@@ -162,10 +161,14 @@ const config = async (env): Promise<Configuration> => {
162
161
  { from: 'plugin.json', to: '.' },
163
162
  { from: '../LICENSE', to: '.' },
164
163
  { from: '../CHANGELOG.md', to: '.', force: true },
165
- { from: '**/*.json', to: '.' },
166
- { from: 'img/logo.svg', to: '.', noErrorOnMissing: true },
167
- { from: 'img/screenshots/**/*', to: '.', noErrorOnMissing: true },
168
- { from: '**/query_help.md', to: '.', noErrorOnMissing: true },
164
+ { from: '**/*.json', to: '.' }, // TODO<Add an error for checking the basic structure of the repo>
165
+ { from: '**/*.svg', to: '.', noErrorOnMissing: true }, // Optional
166
+ { from: '**/*.png', to: '.', noErrorOnMissing: true }, // Optional
167
+ { from: '**/*.html', to: '.', noErrorOnMissing: true }, // Optional
168
+ { from: 'img/**/*', to: '.', noErrorOnMissing: true }, // Optional
169
+ { from: 'libs/**/*', to: '.', noErrorOnMissing: true }, // Optional
170
+ { from: 'static/**/*', to: '.', noErrorOnMissing: true }, // Optional
171
+ { from: '**/query_help.md', to: '.', noErrorOnMissing: true }, // Optional
169
172
  ],
170
173
  }),
171
174
  // Replace certain template-variables in the README and plugin.json
@@ -1,4 +1,4 @@
1
- import webpack, { type Compiler } from 'webpack';
1
+ import webpack from 'webpack';
2
2
 
3
3
  const PLUGIN_NAME = 'BuildModeWebpack';
4
4
 
@@ -24,8 +24,7 @@ import { externals } from '../bundler/externals.ts';
24
24
  const pluginJson = getPluginJson();
25
25
  const cpVersion = getCPConfigVersion();
26
26
  const pluginVersion = getPackageJson().version;
27
- const logoPaths = Array.from(new Set([pluginJson.info?.logos?.large, pluginJson.info?.logos?.small])).filter(Boolean);
28
- const screenshotPaths = Array.from(new Set(pluginJson.info?.screenshots?.map((s: { path: string }) => s.path)));
27
+
29
28
  const virtualPublicPath = new VirtualModulesPlugin({
30
29
  'node_modules/grafana-public-path.js': `
31
30
  import amdMetaModule from 'amd-module';
@@ -175,12 +174,13 @@ const config = async (env: Env): Promise<Configuration> => {
175
174
  { from: '../LICENSE', to: '.' },
176
175
  { from: '../CHANGELOG.md', to: '.', force: true },
177
176
  { from: '**/*.json', to: '.' },
177
+ { from: '**/*.svg', to: '.', noErrorOnMissing: true },
178
+ { from: '**/*.png', to: '.', noErrorOnMissing: true },
179
+ { from: '**/*.html', to: '.', noErrorOnMissing: true },
180
+ { from: 'img/**/*', to: '.', noErrorOnMissing: true },
181
+ { from: 'libs/**/*', to: '.', noErrorOnMissing: true },
182
+ { from: 'static/**/*', to: '.', noErrorOnMissing: true },
178
183
  { from: '**/query_help.md', to: '.', noErrorOnMissing: true },
179
- ...logoPaths.map((logoPath) => ({ from: logoPath, to: logoPath })),
180
- ...screenshotPaths.map((screenshotPath) => ({
181
- from: screenshotPath,
182
- to: screenshotPath,
183
- })),
184
184
  ],
185
185
  }),
186
186
  // Replace certain template-variables in the README and plugin.json