yukichant 3.0.1 → 3.0.2
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/package.json +1 -1
- package/src/cli.js +3 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import getStdin from 'get-stdin'
|
|
3
3
|
import chant from './index.js'
|
|
4
4
|
import fs from 'fs'
|
|
5
|
-
|
|
5
|
+
import path from 'path'
|
|
6
|
+
const dirname = path.dirname(new URL(import.meta.url).pathname)
|
|
7
|
+
const { version } = JSON.parse(fs.readFileSync(`${dirname}/../package.json`));
|
|
6
8
|
|
|
7
9
|
import { Command } from 'commander/esm.mjs';
|
|
8
10
|
const program = new Command();
|