@ulpi/browse 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulpi/browse",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ulpi-io/browse"
package/src/cli.ts CHANGED
@@ -576,6 +576,12 @@ export async function main() {
576
576
  cliFlags.headed = headed;
577
577
 
578
578
  // ─── Local commands (no server needed) ─────────────────────
579
+ if (args[0] === 'version' || args[0] === '--version' || args[0] === '-V') {
580
+ const pkg = await import('../package.json');
581
+ console.log(pkg.version);
582
+ return;
583
+ }
584
+
579
585
  if (args[0] === 'instances') {
580
586
  await listInstances();
581
587
  return;