@grafana/create-plugin 7.8.0 → 7.8.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,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.8.1](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.8.0...@grafana/create-plugin@7.8.1) (2026-07-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* replace find-up dependency with native @libs/find-up helper ([#2722](https://github.com/grafana/plugin-tools/issues/2722)) ([d20ff77](https://github.com/grafana/plugin-tools/commit/d20ff7714de762a2d7ce96cf33a37d615e78e77c))
|
|
9
|
+
|
|
3
10
|
## [7.8.0](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.7.1...@grafana/create-plugin@7.8.0) (2026-06-11)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { statSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
function findUpSync(name, options = {}) {
|
|
5
|
+
const names = Array.isArray(name) ? name : [name];
|
|
6
|
+
let currentDir = path.resolve(options.cwd ?? process.cwd());
|
|
7
|
+
let previousDir;
|
|
8
|
+
while (currentDir !== previousDir) {
|
|
9
|
+
for (const candidateName of names) {
|
|
10
|
+
const candidatePath = path.join(currentDir, candidateName);
|
|
11
|
+
const stat = statSync(candidatePath, { throwIfNoEntry: false });
|
|
12
|
+
if (stat?.isFile()) {
|
|
13
|
+
return candidatePath;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
previousDir = currentDir;
|
|
17
|
+
currentDir = path.dirname(currentDir);
|
|
18
|
+
}
|
|
19
|
+
return void 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { findUpSync };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { gte, lt } from 'semver';
|
|
2
2
|
import { basename } from 'node:path';
|
|
3
|
-
import { findUpSync } from 'find-up';
|
|
3
|
+
import { findUpSync } from '../libs/find-up/src/index.js';
|
|
4
4
|
import { getPackageJson } from './utils.packagejson.js';
|
|
5
5
|
import { spawnSync } from 'node:child_process';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"directory": "packages/create-plugin",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"change-case": "5.4.4",
|
|
32
32
|
"debug": "4.4.3",
|
|
33
33
|
"enquirer": "2.4.1",
|
|
34
|
-
"find-up": "8.0.0",
|
|
35
34
|
"glob": "13.0.6",
|
|
36
35
|
"handlebars": "4.7.9",
|
|
37
36
|
"jsonc-parser": "3.3.1",
|
|
@@ -44,6 +43,7 @@
|
|
|
44
43
|
"yaml": "2.9.0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
46
|
+
"@libs/find-up": "1.0.0",
|
|
47
47
|
"@libs/output": "1.0.3",
|
|
48
48
|
"@libs/version": "1.0.2",
|
|
49
49
|
"@types/glob": "9.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { gte, lt } from 'semver';
|
|
2
2
|
|
|
3
3
|
import { basename } from 'node:path';
|
|
4
|
-
import { findUpSync } from 'find-up';
|
|
4
|
+
import { findUpSync } from '@libs/find-up';
|
|
5
5
|
import { getPackageJson } from './utils.packagejson.js';
|
|
6
6
|
import { spawnSync } from 'node:child_process';
|
|
7
7
|
|