@glassly/cli 2.0.10-dev.0 → 2.0.11-beta.0
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 -1
- package/package.json +2 -2
- package/src/index.ts +3 -2
package/README.md
CHANGED
|
@@ -40,7 +40,8 @@ glassly hardware add DISPLAY REQUIRED
|
|
|
40
40
|
glassly schema print # the miniapp.json JSON Schema
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
`dev` and `release` take `--qr sm|md|lg` and `--qr-output <path
|
|
43
|
+
`dev` and `release` take `--qr sm|md|lg` and `--qr-output <path>`; `dev --no-iroh`
|
|
44
|
+
prints a LAN-only QR. Every
|
|
44
45
|
project command takes `--cwd <path>` to run against another directory.
|
|
45
46
|
|
|
46
47
|
## Publish to the Glassly Miniapp Store
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glassly/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11-beta.0",
|
|
4
4
|
"description": "The glassly command: develop, pack, release, and publish Glassly miniapps. Bun-only.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"typecheck": "tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@glassly/miniapp-cli": "0.1.
|
|
25
|
+
"@glassly/miniapp-cli": "0.1.10-beta.0",
|
|
26
26
|
"commander": "^15.1.0",
|
|
27
27
|
"qrcode": "^1.5.4"
|
|
28
28
|
},
|
package/src/index.ts
CHANGED
|
@@ -631,7 +631,8 @@ program
|
|
|
631
631
|
.option("--auth", "require signed dev auto-auth setup before starting")
|
|
632
632
|
.option("-q, --qr <size>", "terminal QR size: small|medium|large (sm|md|lg)", "medium")
|
|
633
633
|
.option("--qr-output <path>", "also write the QR as a PNG at this path")
|
|
634
|
-
.
|
|
634
|
+
.option("--no-iroh", "leave the iroh ticket out of the QR (phone must share this computer's Wi-Fi)")
|
|
635
|
+
.action(async (options: { cwd: string; auth?: boolean; qr: string; qrOutput?: string; iroh: boolean }) => {
|
|
635
636
|
const cwd = resolve(options.cwd);
|
|
636
637
|
try {
|
|
637
638
|
const qrSize = parseQrSize(options.qr);
|
|
@@ -660,7 +661,7 @@ program
|
|
|
660
661
|
console.log("Dev auto-auth disabled. Run `glassly login` if this miniapp uses session.auth.");
|
|
661
662
|
}
|
|
662
663
|
|
|
663
|
-
await devMiniapp({ cwd, qrSize, qrOutput: options.qrOutput, signDevAttestation: signer });
|
|
664
|
+
await devMiniapp({ cwd, qrSize, qrOutput: options.qrOutput, iroh: options.iroh, signDevAttestation: signer });
|
|
664
665
|
} catch (error) {
|
|
665
666
|
fail(error);
|
|
666
667
|
}
|