@glassly/cli 2.0.9 → 2.0.10-dev.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glassly/cli",
3
- "version": "2.0.9",
3
+ "version": "2.0.10-dev.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.8",
25
+ "@glassly/miniapp-cli": "0.1.9-dev.0",
26
26
  "commander": "^15.1.0",
27
27
  "qrcode": "^1.5.4"
28
28
  },
package/src/index.ts CHANGED
@@ -832,7 +832,7 @@ program
832
832
  .description("Build, pack, and upload the current miniapp release bundle")
833
833
  .option("--cwd <path>", "miniapp project directory", process.cwd())
834
834
  .option("--no-build", "skip running bun run build before packing")
835
- .option("--no-pack", "skip running bun run pack and upload the existing build zip")
835
+ .option("--no-pack", "skip running bun run pack and upload the existing build/<pkg>-<version>.gls")
836
836
  .action(async (options: { cwd: string; build: boolean; pack: boolean }) => {
837
837
  const creds = await requireCredentials();
838
838
  if (!creds) return;
@@ -853,9 +853,12 @@ program
853
853
  await buildMiniappProduction(cwd);
854
854
  }
855
855
 
856
- const zipPath = join(cwd, "build", `${packageName}-${version}.zip`);
857
- if (!existsSync(zipPath)) {
858
- throw new Error(`Release bundle not found: ${zipPath}`);
856
+ // Packs from before the .gls rename are still uploadable with --no-pack.
857
+ const zipPath = ["gls", "zip"]
858
+ .map((ext) => join(cwd, "build", `${packageName}-${version}.${ext}`))
859
+ .find((candidate) => existsSync(candidate));
860
+ if (!zipPath) {
861
+ throw new Error(`Release bundle not found: build/${packageName}-${version}.gls`);
859
862
  }
860
863
  const bundle = readFileSync(zipPath);
861
864
  const signingKey = await ensureSigningKey(creds);