@1sat/cli 0.0.9 → 0.0.10
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/README.md +2 -0
- package/package.json +1 -1
- package/src/help.ts +3 -5
package/README.md
CHANGED
package/package.json
CHANGED
package/src/help.ts
CHANGED
|
@@ -2,19 +2,17 @@
|
|
|
2
2
|
* Help text and version display for the 1sat CLI.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { readFileSync } from 'node:fs'
|
|
5
6
|
import chalk from 'chalk'
|
|
6
7
|
|
|
7
|
-
// Version is read at build time via Bun's import. Works in both source and compiled binary.
|
|
8
8
|
const VERSION = (() => {
|
|
9
9
|
try {
|
|
10
|
-
// biome-ignore lint/style/noVar: dynamic require for Bun compiled binary compat
|
|
11
|
-
const { readFileSync } = require('node:fs')
|
|
12
10
|
const pkg = JSON.parse(
|
|
13
11
|
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
14
12
|
)
|
|
15
|
-
return pkg.version || '0.0.
|
|
13
|
+
return pkg.version || '0.0.9'
|
|
16
14
|
} catch {
|
|
17
|
-
return '0.0.
|
|
15
|
+
return '0.0.9'
|
|
18
16
|
}
|
|
19
17
|
})()
|
|
20
18
|
|