Skip to content

Commit 70babed

Browse files
committed
fix: package plugin files inside subdirectory to pass Grafana validator
1 parent e247828 commit 70babed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/package.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ archive.on('error', (err) => {
5555
// Pipe archive data to the file
5656
archive.pipe(output);
5757

58-
// Add all files from dist directory
59-
archive.directory(DIST_DIR, false);
58+
// Add all files from dist directory inside a subdirectory named after the plugin ID
59+
// This is required by Grafana's plugin packaging format
60+
archive.directory(DIST_DIR, 'cybertec-pev-panel');
6061

6162
// Finalize the archive
6263
archive.finalize();

0 commit comments

Comments
 (0)