@ffflorian/gh-open 3.8.7 → 3.8.9
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 +1 -3
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
|
-
import { fileURLToPath } from 'node:url';
|
|
5
4
|
import { program as commander } from 'commander';
|
|
6
5
|
import { findUp } from 'find-up';
|
|
7
6
|
import open from 'open';
|
|
8
7
|
import { RepositoryService } from './RepositoryService.js';
|
|
9
|
-
const
|
|
10
|
-
const __dirname = path.dirname(__filename);
|
|
8
|
+
const __dirname = import.meta.dirname;
|
|
11
9
|
const packageJsonPath = path.join(__dirname, '../package.json');
|
|
12
10
|
const { description, name, version } = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
13
11
|
commander
|
package/package.json
CHANGED