@grafana/create-plugin 6.7.1-canary.2369.20789853616.0 → 6.7.1-canary.2369.20813254996.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.
|
|
3
|
+
"version": "6.7.1-canary.2369.20813254996.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": "
|
|
58
|
+
"gitHead": "fe4b2480ec84a3f3c08961f70e3e172876a7e511"
|
|
59
59
|
}
|
|
@@ -22,7 +22,7 @@ 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 =
|
|
25
|
+
const screenshotPaths = pluginJson.info?.screenshots?.map((s: { path: string }) => s.path) || [];
|
|
26
26
|
const virtualPublicPath = new RspackVirtualModulePlugin({
|
|
27
27
|
'grafana-public-path': `
|
|
28
28
|
import amdMetaModule from 'amd-module';
|
|
@@ -163,9 +163,12 @@ const config = async (env): Promise<Configuration> => {
|
|
|
163
163
|
{ from: '../LICENSE', to: '.' },
|
|
164
164
|
{ from: '../CHANGELOG.md', to: '.', force: true },
|
|
165
165
|
{ from: '**/*.json', to: '.' },
|
|
166
|
-
{ from: 'img/logo.svg', to: '.', noErrorOnMissing: true },
|
|
167
|
-
{ from: 'img/screenshots/**/*', to: '.', noErrorOnMissing: true },
|
|
168
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
|
+
})),
|
|
169
172
|
],
|
|
170
173
|
}),
|
|
171
174
|
// Replace certain template-variables in the README and plugin.json
|
|
@@ -25,7 +25,7 @@ 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 =
|
|
28
|
+
const screenshotPaths = pluginJson.info?.screenshots?.map((s: { path: string }) => s.path) || [];
|
|
29
29
|
const virtualPublicPath = new VirtualModulesPlugin({
|
|
30
30
|
'node_modules/grafana-public-path.js': `
|
|
31
31
|
import amdMetaModule from 'amd-module';
|