@grafana/create-plugin 4.2.2 → 4.2.3-canary.819.704d66c.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.
|
@@ -5,7 +5,9 @@ import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
|
5
5
|
import { isPluginDirectory, updateDotConfigFolder } from '../utils/utils.plugin.js';
|
|
6
6
|
import { EXTRA_TEMPLATE_VARIABLES } from '../constants.js';
|
|
7
7
|
import { getVersion } from '../utils/utils.version.js';
|
|
8
|
+
import { getPackageManagerFromUserAgent } from '../utils/utils.packageManager.js';
|
|
8
9
|
export const update = async (argv) => {
|
|
10
|
+
const { packageManagerName } = getPackageManagerFromUserAgent();
|
|
9
11
|
try {
|
|
10
12
|
if (!(await isGitDirectory()) && !argv.force) {
|
|
11
13
|
printRedBox({
|
|
@@ -46,14 +48,14 @@ In case you want to proceed as is please use the ${chalk.bold('--force')} flag.)
|
|
|
46
48
|
${chalk.bold('@grafana/create-plugin version:')} ${getVersion()}
|
|
47
49
|
|
|
48
50
|
${chalk.bold.underline('Next steps:')}
|
|
49
|
-
- 1. Run ${chalk.bold('
|
|
50
|
-
- 2. Check if
|
|
51
|
-
(
|
|
51
|
+
- 1. Run ${chalk.bold(packageManagerName, 'install')} to install the package updates
|
|
52
|
+
- 2. Check if you encounter any breaking changes
|
|
53
|
+
(refer to our migration guide: https://grafana.com/developers/plugin-tools/migration-guides/update-from-grafana-versions/)
|
|
52
54
|
|
|
53
55
|
${chalk.bold('Do you have questions?')}
|
|
54
56
|
Please don't hesitate to reach out in one of the following ways:
|
|
55
|
-
- Open an issue
|
|
56
|
-
- Ask a question in the community forum at https://community.grafana.com/
|
|
57
|
+
- Open an issue in https://github.com/grafana/plugin-tools
|
|
58
|
+
- Ask a question in the community forum at https://community.grafana.com/c/plugin-development/30
|
|
57
59
|
- Join our community slack channel at https://slack.grafana.com/`,
|
|
58
60
|
});
|
|
59
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3-canary.819.704d66c.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=20"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "704d66c76f34daddbb5d7fc3fa30109479cb9cab"
|
|
91
91
|
}
|
|
@@ -6,8 +6,10 @@ import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
|
6
6
|
import { isPluginDirectory, updateDotConfigFolder } from '../utils/utils.plugin.js';
|
|
7
7
|
import { EXTRA_TEMPLATE_VARIABLES } from '../constants.js';
|
|
8
8
|
import { getVersion } from '../utils/utils.version.js';
|
|
9
|
+
import { getPackageManagerFromUserAgent } from '../utils/utils.packageManager.js';
|
|
9
10
|
|
|
10
11
|
export const update = async (argv: minimist.ParsedArgs) => {
|
|
12
|
+
const { packageManagerName } = getPackageManagerFromUserAgent();
|
|
11
13
|
try {
|
|
12
14
|
if (!(await isGitDirectory()) && !argv.force) {
|
|
13
15
|
printRedBox({
|
|
@@ -60,14 +62,14 @@ In case you want to proceed as is please use the ${chalk.bold('--force')} flag.)
|
|
|
60
62
|
${chalk.bold('@grafana/create-plugin version:')} ${getVersion()}
|
|
61
63
|
|
|
62
64
|
${chalk.bold.underline('Next steps:')}
|
|
63
|
-
- 1. Run ${chalk.bold('
|
|
64
|
-
- 2. Check if
|
|
65
|
-
(
|
|
65
|
+
- 1. Run ${chalk.bold(packageManagerName, 'install')} to install the package updates
|
|
66
|
+
- 2. Check if you encounter any breaking changes
|
|
67
|
+
(refer to our migration guide: https://grafana.com/developers/plugin-tools/migration-guides/update-from-grafana-versions/)
|
|
66
68
|
|
|
67
69
|
${chalk.bold('Do you have questions?')}
|
|
68
70
|
Please don't hesitate to reach out in one of the following ways:
|
|
69
|
-
- Open an issue
|
|
70
|
-
- Ask a question in the community forum at https://community.grafana.com/
|
|
71
|
+
- Open an issue in https://github.com/grafana/plugin-tools
|
|
72
|
+
- Ask a question in the community forum at https://community.grafana.com/c/plugin-development/30
|
|
71
73
|
- Join our community slack channel at https://slack.grafana.com/`,
|
|
72
74
|
});
|
|
73
75
|
} catch (error) {
|