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

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v6.7.1 (Thu Jan 08 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: stop copying all images to bundle [#2369](https://github.com/grafana/plugin-tools/pull/2369) ([@jackw](https://github.com/jackw))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
10
+
11
+ ---
12
+
1
13
  # v6.7.0 (Wed Jan 07 2026)
2
14
 
3
15
  #### 🚀 Enhancement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "6.7.1-canary.2370.20798217827.0",
3
+ "version": "6.7.1",
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": "bb9cbddbe1ddc57c7343dcaa5671238c128be212"
58
+ "gitHead": "b07ae6d9705b0e9b4d5a8ca7a7d3d6733849a442"
59
59
  }
@@ -21,7 +21,8 @@ import { externals } from '../bundler/externals';
21
21
  const { SubresourceIntegrityPlugin } = rspack.experiments;
22
22
  const pluginJson = getPluginJson();
23
23
  const cpVersion = getCPConfigVersion();
24
-
24
+ const logoPaths = Array.from(new Set([pluginJson.info?.logos?.large, pluginJson.info?.logos?.small])).filter(Boolean);
25
+ const screenshotPaths = pluginJson.info?.screenshots?.map((s: { path: string }) => s.path) || [];
25
26
  const virtualPublicPath = new RspackVirtualModulePlugin({
26
27
  'grafana-public-path': `
27
28
  import amdMetaModule from 'amd-module';
@@ -161,14 +162,13 @@ const config = async (env): Promise<Configuration> => {
161
162
  { from: 'plugin.json', to: '.' },
162
163
  { from: '../LICENSE', to: '.' },
163
164
  { from: '../CHANGELOG.md', to: '.', force: 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
165
+ { from: '**/*.json', to: '.' },
166
+ { from: '**/query_help.md', to: '.', noErrorOnMissing: true },
167
+ ...logoPaths.map((logoPath) => ({ from: logoPath, to: logoPath })),
168
+ ...screenshotPaths.map((screenshotPath) => ({
169
+ from: screenshotPath,
170
+ to: screenshotPath,
171
+ })),
172
172
  ],
173
173
  }),
174
174
  // Replace certain template-variables in the README and plugin.json
@@ -1,4 +1,4 @@
1
- import webpack from 'webpack';
1
+ import webpack, { type Compiler } from 'webpack';
2
2
 
3
3
  const PLUGIN_NAME = 'BuildModeWebpack';
4
4
 
@@ -24,7 +24,8 @@ import { externals } from '../bundler/externals.ts';
24
24
  const pluginJson = getPluginJson();
25
25
  const cpVersion = getCPConfigVersion();
26
26
  const pluginVersion = getPackageJson().version;
27
-
27
+ const logoPaths = Array.from(new Set([pluginJson.info?.logos?.large, pluginJson.info?.logos?.small])).filter(Boolean);
28
+ const screenshotPaths = pluginJson.info?.screenshots?.map((s: { path: string }) => s.path) || [];
28
29
  const virtualPublicPath = new VirtualModulesPlugin({
29
30
  'node_modules/grafana-public-path.js': `
30
31
  import amdMetaModule from 'amd-module';
@@ -174,13 +175,12 @@ const config = async (env: Env): Promise<Configuration> => {
174
175
  { from: '../LICENSE', to: '.' },
175
176
  { from: '../CHANGELOG.md', to: '.', force: true },
176
177
  { 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 },
183
178
  { 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