@greatstore/cli 0.0.11-beta.2 → 0.0.11

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/CHANGELOG.md ADDED
@@ -0,0 +1,53 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@greatstore/cli` are recorded here. The format
4
+ follows [Keep a Changelog](https://keepachangelog.com/).
5
+
6
+ ## 0.0.11 — 2026-05-24
7
+
8
+ ### Added
9
+ - Multi-component projects: scaffold one root, then add N components under `components/<name>/`. `gs init` (no args) writes the project root; `gs init <name>` adds a component (auto-scaffolds the root if missing).
10
+ - `gs build [<name>]` — compiles every `components/<name>/bundle.js` via the project's local Vite. Externals + runtime shim paths now live in the CLI, so future versions can adjust them without a re-scaffold.
11
+ - `gs push` (no args) hashes each component against `.gssync.json` and uploads only the changed ones.
12
+ - `gs pull` (no args, or `*`) batch-pulls every remote component. Components with uncommitted local edits are skipped with a warning; `--force` overwrites.
13
+ - Public `CHANGELOG.md`. `gs --version` now prints the most recent entries.
14
+
15
+ ### Changed
16
+ - A project folder ships to exactly one store. Only `gs init` accepts `--store`; every other command reads the slug from `.gsrc`. The legacy single-component layout is rejected with a migration hint.
17
+ - `gs init` errors on a fresh root without `--store <slug>` (no placeholder slug is written). On an existing root, passing `--store` errors.
18
+ - `gs init` no longer writes `build.mjs`. Scaffolded `package.json` scripts run `gs build`.
19
+
20
+ ## 0.0.10 — 2026-05-23
21
+
22
+ ### Changed
23
+ - The OAuth callback tab opened by `gs login` auto-closes once credentials are persisted.
24
+
25
+ ## 0.0.9 — 2026-05-23
26
+
27
+ ### Changed
28
+ - `gs init` scaffold writes a `displayName` into the generated manifest so the admin Builder UI has a friendlier label.
29
+
30
+ ## 0.0.8 — 2026-05-23
31
+
32
+ ### Changed
33
+ - `gs push` and `gs publish` print a permalink to the component's card in the admin Builder panel.
34
+
35
+ ## 0.0.6 — 2026-05-23
36
+
37
+ ### Changed
38
+ - `gs --version` reads the version from `cli/package.json` at build time so it can't drift from the published release.
39
+
40
+ ## 0.0.4 — 2026-05-23
41
+
42
+ ### Changed
43
+ - Scaffolded projects produce browser-ready bundles (React + runtime shim wired up).
44
+
45
+ ## 0.0.3 — 2026-05-23
46
+
47
+ ### Changed
48
+ - Trimmed public README to the essentials.
49
+
50
+ ## 0.0.2 — 2026-05-23
51
+
52
+ ### Fixed
53
+ - Read the nav OAuth callback parameter as `code` instead of `token`.
package/dist/cli.js CHANGED
@@ -1320,8 +1320,27 @@ function tryResolve(req, specifier) {
1320
1320
  }
1321
1321
  }
1322
1322
 
1323
+ // src/changelog.ts
1324
+ function recentChangelog(text, minItems = 15) {
1325
+ if (!text.trim()) return "";
1326
+ const lines = text.split("\n");
1327
+ const out = [];
1328
+ let bullets = 0;
1329
+ let inSection = false;
1330
+ for (const line of lines) {
1331
+ if (line.startsWith("## ")) {
1332
+ if (inSection && bullets >= minItems) break;
1333
+ inSection = true;
1334
+ }
1335
+ out.push(line);
1336
+ if (inSection && /^\s*[-*+]\s/.test(line)) bullets++;
1337
+ }
1338
+ return out.join("\n").trimEnd();
1339
+ }
1340
+
1323
1341
  // src/index.ts
1324
- var VERSION = true ? "0.0.11-beta.2" : "0.0.0-dev";
1342
+ var VERSION = true ? "0.0.11" : "0.0.0-dev";
1343
+ var CHANGELOG = true ? "# Changelog\n\nAll notable changes to `@greatstore/cli` are recorded here. The format\nfollows [Keep a Changelog](https://keepachangelog.com/).\n\n## 0.0.11 \u2014 2026-05-24\n\n### Added\n- Multi-component projects: scaffold one root, then add N components under `components/<name>/`. `gs init` (no args) writes the project root; `gs init <name>` adds a component (auto-scaffolds the root if missing).\n- `gs build [<name>]` \u2014 compiles every `components/<name>/bundle.js` via the project's local Vite. Externals + runtime shim paths now live in the CLI, so future versions can adjust them without a re-scaffold.\n- `gs push` (no args) hashes each component against `.gssync.json` and uploads only the changed ones.\n- `gs pull` (no args, or `*`) batch-pulls every remote component. Components with uncommitted local edits are skipped with a warning; `--force` overwrites.\n- Public `CHANGELOG.md`. `gs --version` now prints the most recent entries.\n\n### Changed\n- A project folder ships to exactly one store. Only `gs init` accepts `--store`; every other command reads the slug from `.gsrc`. The legacy single-component layout is rejected with a migration hint.\n- `gs init` errors on a fresh root without `--store <slug>` (no placeholder slug is written). On an existing root, passing `--store` errors.\n- `gs init` no longer writes `build.mjs`. Scaffolded `package.json` scripts run `gs build`.\n\n## 0.0.10 \u2014 2026-05-23\n\n### Changed\n- The OAuth callback tab opened by `gs login` auto-closes once credentials are persisted.\n\n## 0.0.9 \u2014 2026-05-23\n\n### Changed\n- `gs init` scaffold writes a `displayName` into the generated manifest so the admin Builder UI has a friendlier label.\n\n## 0.0.8 \u2014 2026-05-23\n\n### Changed\n- `gs push` and `gs publish` print a permalink to the component's card in the admin Builder panel.\n\n## 0.0.6 \u2014 2026-05-23\n\n### Changed\n- `gs --version` reads the version from `cli/package.json` at build time so it can't drift from the published release.\n\n## 0.0.4 \u2014 2026-05-23\n\n### Changed\n- Scaffolded projects produce browser-ready bundles (React + runtime shim wired up).\n\n## 0.0.3 \u2014 2026-05-23\n\n### Changed\n- Trimmed public README to the essentials.\n\n## 0.0.2 \u2014 2026-05-23\n\n### Fixed\n- Read the nav OAuth callback parameter as `code` instead of `token`.\n" : "";
1325
1344
  var HELP = `gs \u2014 GreatStore CLI (v${VERSION})
1326
1345
 
1327
1346
  Usage:
@@ -1362,6 +1381,10 @@ async function main() {
1362
1381
  const parsed = parseArgs(argv);
1363
1382
  if (flagBool(parsed.flags, "version")) {
1364
1383
  process.stdout.write(`gs v${VERSION}
1384
+
1385
+ `);
1386
+ const changelog = recentChangelog(CHANGELOG);
1387
+ if (changelog) process.stdout.write(`${changelog}
1365
1388
  `);
1366
1389
  return 0;
1367
1390
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatstore/cli",
3
- "version": "0.0.11-beta.2",
3
+ "version": "0.0.11",
4
4
  "description": "CLI for authoring and shipping GreatStore custom components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
- "README.md"
12
+ "README.md",
13
+ "CHANGELOG.md"
13
14
  ],
14
15
  "engines": {
15
16
  "node": ">=20"