@ffflorian/gh-open 3.14.3 → 3.15.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/dist/cli.js +2 -2
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs/promises';
|
|
2
3
|
import path from 'node:path';
|
|
3
|
-
import fs from 'node:fs';
|
|
4
4
|
import { program as commander } from 'commander';
|
|
5
5
|
import { findUp } from 'find-up';
|
|
6
6
|
import open from 'open';
|
|
7
7
|
import { RepositoryService } from './RepositoryService.js';
|
|
8
8
|
const __dirname = import.meta.dirname;
|
|
9
9
|
const packageJsonPath = path.join(__dirname, '../package.json');
|
|
10
|
-
const { description, name, version } = JSON.parse(fs.
|
|
10
|
+
const { description, name, version } = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8'));
|
|
11
11
|
commander
|
|
12
12
|
.name(name.replace(/^@[^/]+\//, ''))
|
|
13
13
|
.description(description)
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"vitest": "4.0.16"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">= 21"
|
|
21
21
|
},
|
|
22
22
|
"exports": "./dist/index.js",
|
|
23
23
|
"files": [
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"test": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"type": "module",
|
|
46
|
-
"version": "3.
|
|
47
|
-
"gitHead": "
|
|
46
|
+
"version": "3.15.1",
|
|
47
|
+
"gitHead": "ba772186f0c4fb05492ef586666b8e44faefe71d"
|
|
48
48
|
}
|