@grafana/create-plugin 6.7.1-canary.2369.20789129388.0 → 6.7.1-canary.2369.20789853616.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.20789129388.0",
3
+ "version": "6.7.1-canary.2369.20789853616.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": "86a8dda0b9abceb324dc71b188653abd1f53cdf9"
58
+ "gitHead": "779eacef0db77c47e8fadaead53cdebbe208fe24"
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 = Array.from(new Set(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';
@@ -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 = Array.from(new Set(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';
@@ -36,18 +37,6 @@ __webpack_public_path__ =
36
37
  `,
37
38
  });
38
39
 
39
- const logoPaths = Array.from(
40
- new Set([
41
- pluginJson.info?.logos?.large,
42
- pluginJson.info?.logos?.small,
43
- ])
44
- ).filter(Boolean);
45
-
46
- const screenshotPaths =
47
- Array.from(
48
- new Set(pluginJson.info?.screenshots?.map((s) => s.path))
49
- ).filter(Boolean) || [];
50
-
51
40
  export type Env = {
52
41
  [key: string]: true | string | Env;
53
42
  };
@@ -187,9 +176,11 @@ const config = async (env: Env): Promise<Configuration> => {
187
176
  { from: '../CHANGELOG.md', to: '.', force: true },
188
177
  { from: '**/*.json', to: '.' },
189
178
  { from: '**/query_help.md', to: '.', noErrorOnMissing: true },
190
- ...logoPaths.map((logoPath) => ({ from: logoPath, to: '.', noErrorOnMissing: true })),
179
+ ...logoPaths.map((logoPath) => ({ from: logoPath, to: logoPath })),
191
180
  ...screenshotPaths.map((screenshotPath) => ({
192
- from: screenshotPath, to: '.', noErrorOnMissing: true })),
181
+ from: screenshotPath,
182
+ to: screenshotPath,
183
+ })),
193
184
  ],
194
185
  }),
195
186
  // Replace certain template-variables in the README and plugin.json