@homepages/template-kit 0.0.0 → 0.0.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.
package/README.md CHANGED
@@ -71,6 +71,7 @@ optional capability is a **minor**.
71
71
 
72
72
  ### Bumping the version by hand
73
73
 
74
- Don't. `KIT_VERSION` in `src/index.ts` is asserted against `package.json` by the
75
- test suite, and changesets owns `package.json`'s version so a hand-bump fails
76
- CI. Update `KIT_VERSION` only in the Version Packages PR, alongside the bump.
74
+ Don't changesets owns `package.json`'s version. There is nothing else to keep
75
+ in step with it: `KIT_VERSION` is read from `package.json` and inlined at build
76
+ time, and the test suite asserts `template-kit --version` against `package.json`
77
+ to prove the inlining happened.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as KIT_VERSION } from "./src-CrdHXijV.js";
2
+ import { t as KIT_VERSION } from "./src-dZr5N30y.js";
3
3
 
4
4
  //#region src/cli/index.ts
5
5
  /**
package/dist/index.d.ts CHANGED
@@ -10,7 +10,15 @@ declare function KitSmoke({ label }: {
10
10
  }): import("react").JSX.Element;
11
11
  //#endregion
12
12
  //#region src/index.d.ts
13
- /** The published version of this kit. Kept in sync with package.json by src/index.test.tsx. */
14
- declare const KIT_VERSION = "0.0.0";
13
+ /**
14
+ * The published version of this kit.
15
+ *
16
+ * Read from package.json and inlined at build time, so it cannot drift: changesets
17
+ * owns package.json's version, and a hardcoded constant here would have to be
18
+ * hand-edited on every release — on a branch changesets force-pushes, which would
19
+ * silently discard the edit. `dist/cli.js --version` is asserted against
20
+ * package.json to prove the inlining actually happened.
21
+ */
22
+ declare const KIT_VERSION: string;
15
23
  //#endregion
16
24
  export { KIT_VERSION, KitSmoke };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as KitSmoke, t as KIT_VERSION } from "./src-CrdHXijV.js";
1
+ import { n as KitSmoke, t as KIT_VERSION } from "./src-dZr5N30y.js";
2
2
 
3
3
  export { KIT_VERSION, KitSmoke };
@@ -0,0 +1,35 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+
3
+ //#region package.json
4
+ var version = "0.0.1";
5
+
6
+ //#endregion
7
+ //#region src/kit-smoke.tsx
8
+ /**
9
+ * Boundary probe, not authoring surface. Its only job is to make the package
10
+ * boundary testable: React stays a peer, types resolve, and Tailwind's
11
+ * cross-package @source scan reaches this file's compiled output.
12
+ * Removed when the real contract primitives land.
13
+ */
14
+ function KitSmoke({ label }) {
15
+ return /* @__PURE__ */ jsx("span", {
16
+ className: "bg-kit-smoke uppercase tracking-[0.4275em]",
17
+ children: label
18
+ });
19
+ }
20
+
21
+ //#endregion
22
+ //#region src/index.ts
23
+ /**
24
+ * The published version of this kit.
25
+ *
26
+ * Read from package.json and inlined at build time, so it cannot drift: changesets
27
+ * owns package.json's version, and a hardcoded constant here would have to be
28
+ * hand-edited on every release — on a branch changesets force-pushes, which would
29
+ * silently discard the edit. `dist/cli.js --version` is asserted against
30
+ * package.json to prove the inlining actually happened.
31
+ */
32
+ const KIT_VERSION = version;
33
+
34
+ //#endregion
35
+ export { KitSmoke as n, KIT_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homepages/template-kit",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "Authoring kit for HomePages marketing-section templates: schema system, contract primitives, theme tokens, and the template-kit CLI.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,23 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
-
3
- //#region src/kit-smoke.tsx
4
- /**
5
- * Boundary probe, not authoring surface. Its only job is to make the package
6
- * boundary testable: React stays a peer, types resolve, and Tailwind's
7
- * cross-package @source scan reaches this file's compiled output.
8
- * Removed when the real contract primitives land.
9
- */
10
- function KitSmoke({ label }) {
11
- return /* @__PURE__ */ jsx("span", {
12
- className: "bg-kit-smoke uppercase tracking-[0.4275em]",
13
- children: label
14
- });
15
- }
16
-
17
- //#endregion
18
- //#region src/index.ts
19
- /** The published version of this kit. Kept in sync with package.json by src/index.test.tsx. */
20
- const KIT_VERSION = "0.0.0";
21
-
22
- //#endregion
23
- export { KitSmoke as n, KIT_VERSION as t };