@grafana/create-plugin 6.1.0 → 6.1.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.1.1 (Wed Oct 15 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Fix: Use proper install command for legacy plugin migrations [#2221](https://github.com/grafana/plugin-tools/pull/2221) ([@sunker](https://github.com/sunker))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Erik Sundell ([@sunker](https://github.com/sunker))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v6.1.0 (Wed Oct 08 2025)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { getMigrationsToRun, runMigrations } from '../migrations/manager.js';
|
|
2
|
+
import { getPackageManagerWithFallback, getPackageManagerExecCmd, getPackageManagerSilentInstallCmd } from '../utils/utils.packageManager.js';
|
|
1
3
|
import { lt, gte } from 'semver';
|
|
2
4
|
import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
5
|
+
import { CURRENT_APP_VERSION } from '../utils/utils.version.js';
|
|
6
|
+
import { LEGACY_UPDATE_CUTOFF_VERSION } from '../constants.js';
|
|
3
7
|
import { getConfig } from '../utils/utils.config.js';
|
|
4
|
-
import { output } from '../utils/utils.console.js';
|
|
5
8
|
import { isPluginDirectory } from '../utils/utils.plugin.js';
|
|
6
|
-
import {
|
|
7
|
-
import { LEGACY_UPDATE_CUTOFF_VERSION } from '../constants.js';
|
|
9
|
+
import { output } from '../utils/utils.console.js';
|
|
8
10
|
import { spawnSync } from 'node:child_process';
|
|
9
|
-
import { getMigrationsToRun, runMigrations } from '../migrations/manager.js';
|
|
10
|
-
import { CURRENT_APP_VERSION } from '../utils/utils.version.js';
|
|
11
11
|
|
|
12
12
|
const update = async (argv) => {
|
|
13
13
|
await performPreUpdateChecks(argv);
|
|
@@ -77,9 +77,10 @@ async function performPreUpdateChecks(argv) {
|
|
|
77
77
|
function preparePluginForMigrations(argv) {
|
|
78
78
|
const { packageManagerName, packageManagerVersion } = getPackageManagerWithFallback();
|
|
79
79
|
const packageManagerExecCmd = getPackageManagerExecCmd(packageManagerName, packageManagerVersion);
|
|
80
|
+
const installCmd = getPackageManagerSilentInstallCmd(packageManagerName, packageManagerVersion);
|
|
80
81
|
const updateCmdList = [
|
|
81
82
|
`${packageManagerExecCmd}@${LEGACY_UPDATE_CUTOFF_VERSION} update${argv.force ? " --force" : ""}`,
|
|
82
|
-
|
|
83
|
+
installCmd
|
|
83
84
|
];
|
|
84
85
|
const gitCmdList = [
|
|
85
86
|
"git add -A",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { gte, lt } from 'semver';
|
|
1
2
|
import { basename } from 'node:path';
|
|
2
|
-
import { spawnSync } from 'node:child_process';
|
|
3
3
|
import { findUpSync } from 'find-up';
|
|
4
4
|
import { getPackageJson } from './utils.packagejson.js';
|
|
5
|
-
import {
|
|
5
|
+
import { spawnSync } from 'node:child_process';
|
|
6
6
|
|
|
7
7
|
const NPM_LOCKFILE = "package-lock.json";
|
|
8
8
|
const PNPM_LOCKFILE = "pnpm-lock.yaml";
|
|
@@ -81,7 +81,7 @@ function getPackageManagerSilentInstallCmd(packageManagerName, packageManagerVer
|
|
|
81
81
|
if (lt(packageManagerVersion, "2.0.0")) {
|
|
82
82
|
return "yarn install --silent --ignore-scripts";
|
|
83
83
|
}
|
|
84
|
-
return "yarn install --silent";
|
|
84
|
+
return "yarn install --mode update-lockfile --silent";
|
|
85
85
|
case "pnpm":
|
|
86
86
|
return "pnpm install --no-frozen-lockfile --silent --ignore-scripts";
|
|
87
87
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=20"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "6b891abe4df5c9c3c1e191b5286298182efa70a0"
|
|
65
65
|
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { getMigrationsToRun, runMigrations } from '../migrations/manager.js';
|
|
2
|
+
import {
|
|
3
|
+
getPackageManagerExecCmd,
|
|
4
|
+
getPackageManagerSilentInstallCmd,
|
|
5
|
+
getPackageManagerWithFallback,
|
|
6
|
+
} from '../utils/utils.packageManager.js';
|
|
2
7
|
import { gte, lt } from 'semver';
|
|
3
8
|
import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
9
|
+
|
|
10
|
+
import { CURRENT_APP_VERSION } from '../utils/utils.version.js';
|
|
11
|
+
import { LEGACY_UPDATE_CUTOFF_VERSION } from '../constants.js';
|
|
4
12
|
import { getConfig } from '../utils/utils.config.js';
|
|
5
|
-
import { output } from '../utils/utils.console.js';
|
|
6
13
|
import { isPluginDirectory } from '../utils/utils.plugin.js';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
14
|
+
import minimist from 'minimist';
|
|
15
|
+
import { output } from '../utils/utils.console.js';
|
|
9
16
|
import { spawnSync } from 'node:child_process';
|
|
10
|
-
import { getMigrationsToRun, runMigrations } from '../migrations/manager.js';
|
|
11
|
-
import { CURRENT_APP_VERSION } from '../utils/utils.version.js';
|
|
12
17
|
|
|
13
18
|
export const update = async (argv: minimist.ParsedArgs) => {
|
|
14
19
|
await performPreUpdateChecks(argv);
|
|
@@ -93,10 +98,11 @@ async function performPreUpdateChecks(argv: minimist.ParsedArgs) {
|
|
|
93
98
|
function preparePluginForMigrations(argv: minimist.ParsedArgs) {
|
|
94
99
|
const { packageManagerName, packageManagerVersion } = getPackageManagerWithFallback();
|
|
95
100
|
const packageManagerExecCmd = getPackageManagerExecCmd(packageManagerName, packageManagerVersion);
|
|
101
|
+
const installCmd = getPackageManagerSilentInstallCmd(packageManagerName, packageManagerVersion);
|
|
96
102
|
|
|
97
103
|
const updateCmdList = [
|
|
98
104
|
`${packageManagerExecCmd}@${LEGACY_UPDATE_CUTOFF_VERSION} update${argv.force ? ' --force' : ''}`,
|
|
99
|
-
|
|
105
|
+
installCmd,
|
|
100
106
|
];
|
|
101
107
|
const gitCmdList = [
|
|
102
108
|
'git add -A',
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { gte, lt } from 'semver';
|
|
2
|
+
|
|
1
3
|
import { basename } from 'node:path';
|
|
2
|
-
import { spawnSync } from 'node:child_process';
|
|
3
4
|
import { findUpSync } from 'find-up';
|
|
4
5
|
import { getPackageJson } from './utils.packagejson.js';
|
|
5
|
-
import {
|
|
6
|
+
import { spawnSync } from 'node:child_process';
|
|
6
7
|
|
|
7
8
|
const NPM_LOCKFILE = 'package-lock.json';
|
|
8
9
|
const PNPM_LOCKFILE = 'pnpm-lock.yaml';
|
|
@@ -104,8 +105,8 @@ export function getPackageManagerSilentInstallCmd(packageManagerName: string, pa
|
|
|
104
105
|
if (lt(packageManagerVersion, '2.0.0')) {
|
|
105
106
|
return 'yarn install --silent --ignore-scripts';
|
|
106
107
|
}
|
|
107
|
-
|
|
108
|
-
return 'yarn install --silent';
|
|
108
|
+
// Yarn Berry: --mode update-lockfile allows lockfile updates in CI
|
|
109
|
+
return 'yarn install --mode update-lockfile --silent';
|
|
109
110
|
|
|
110
111
|
case 'pnpm':
|
|
111
112
|
return 'pnpm install --no-frozen-lockfile --silent --ignore-scripts';
|