@intentius/chant-lexicon-docker 0.124.88 → 0.124.90
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/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/package.json +3 -3
- package/src/serializer.test.ts +10 -0
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "1771076a2eb98678b0f446d037aa06e28024e95e39ba321033f7f837ef17c826",
|
|
5
5
|
"meta.json": "b566d5cb84a87836a861dc5840c229577e860c5427123192810b7839f764a9ee",
|
|
6
6
|
"types/index.d.ts": "256644d2bffa2845900cf86984cc7dde3d9e79da5994ab13a22b0b83edf7f62a",
|
|
7
7
|
"rules/no-latest-tag.ts": "2281be0457c02e782fbafe015f65ff5fd2b008ef0f879226e9b548a3ea65399b",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"skills/chant-docker.md": "d499e18525f2cfd7ecc5b5be4a4c52c6931ebdef8d70f872d53279e53bed6f7e",
|
|
25
25
|
"skills/chant-docker-patterns.md": "655f437c833796e0d520bbe08740a4226d48fcec4912b0438672ed5a299897e7"
|
|
26
26
|
},
|
|
27
|
-
"composite": "
|
|
27
|
+
"composite": "a0af3beb7d3c5b45b5efb9bb1a782500fa35f173e3f48329f4c424ad5f507f9f"
|
|
28
28
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-docker",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.90",
|
|
4
4
|
"description": "Docker lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"build": "../../scripts/tsc7.sh -p tsconfig.build.json --sourceMap false && tsc-alias -p tsconfig.build.json"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@intentius/chant-lexicon-otel": "^0.124.
|
|
66
|
+
"@intentius/chant-lexicon-otel": "^0.124.90"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@intentius/chant": "*",
|
|
70
70
|
"typescript": "^5.9.3"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@intentius/chant": "^0.124.
|
|
73
|
+
"@intentius/chant": "^0.124.90"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/src/serializer.test.ts
CHANGED
|
@@ -204,6 +204,16 @@ describe("dockerSerializer.serialize — Dockerfile", () => {
|
|
|
204
204
|
expect(result.primary).toContain("web:");
|
|
205
205
|
});
|
|
206
206
|
|
|
207
|
+
test("Dockerfiles alone leave the compose output blank, so `chant build -o <dir>/` writes only them (#4950)", () => {
|
|
208
|
+
const entities = new Map<string, Declarable>();
|
|
209
|
+
entities.set("tofu", new MockDockerfile({ from: "tofu" }));
|
|
210
|
+
entities.set("node", new MockDockerfile({ from: "node:22" }));
|
|
211
|
+
|
|
212
|
+
const result = dockerSerializer.serialize(entities) as { primary: string; files: Record<string, string> };
|
|
213
|
+
expect(result.primary.trim()).toBe("");
|
|
214
|
+
expect(Object.keys(result.files).sort()).toEqual(["Dockerfile.node", "Dockerfile.tofu"]);
|
|
215
|
+
});
|
|
216
|
+
|
|
207
217
|
test("returns string (no SerializerResult) when no Dockerfile entities", () => {
|
|
208
218
|
const entities = new Map<string, Declarable>();
|
|
209
219
|
entities.set("web", new MockService({ image: "nginx" }));
|