@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 CHANGED
@@ -1,3 +1,5 @@
1
+ ![1sat CLI](assets/banner.png)
2
+
1
3
  # @1sat/cli
2
4
 
3
5
  Command-line interface for 1Sat Ordinals on BSV.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/cli",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "CLI for 1Sat Ordinals SDK",
5
5
  "type": "module",
6
6
  "main": "./src/cli.ts",
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.1'
13
+ return pkg.version || '0.0.9'
16
14
  } catch {
17
- return '0.0.1'
15
+ return '0.0.9'
18
16
  }
19
17
  })()
20
18