@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 +4 -3
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +1 -1
- package/dist/src-dZr5N30y.js +35 -0
- package/package.json +1 -1
- package/dist/src-CrdHXijV.js +0 -23
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
|
|
75
|
-
|
|
76
|
-
|
|
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
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
|
-
/**
|
|
14
|
-
|
|
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
|
@@ -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.
|
|
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",
|
package/dist/src-CrdHXijV.js
DELETED
|
@@ -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 };
|