@intentius/chant-lexicon-docker 0.124.84 → 0.124.86

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "2aec672f0cd3d00bbf2d0da735eeb4fc0e5ff4181f141779722186d842e9aaf1",
4
+ "manifest.json": "3becd406dede0deaa71e19b2bc58d972ffe179e7a5c3ee67da9b0489fed23ea3",
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": "10f6426d89173f50f9c23a064817c59dfa8f2acf47baa0339526927d7302784a"
27
+ "composite": "85251ff779d3ba77f412dc6915c508e6c2491b99f914ff4f949d93512831e289"
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docker",
3
- "version": "0.124.84",
3
+ "version": "0.124.86",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Docker",
6
6
  "intrinsics": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-docker",
3
- "version": "0.124.84",
3
+ "version": "0.124.86",
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.84"
66
+ "@intentius/chant-lexicon-otel": "^0.124.86"
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.84"
73
+ "@intentius/chant": "^0.124.86"
74
74
  }
75
75
  }
@@ -3,6 +3,7 @@ import { dockerSerializer } from "./serializer";
3
3
  import { composeKey } from "./compose-key";
4
4
  import { DECLARABLE_MARKER, type Declarable } from "@intentius/chant/declarable";
5
5
  import { INTRINSIC_MARKER } from "@intentius/chant/intrinsic";
6
+ import { dockerfileText, productImageStages } from "@intentius/chant/ci-image";
6
7
 
7
8
  // ── Mock entities ──────────────────────────────────────────────────
8
9
 
@@ -315,6 +316,18 @@ describe("dockerSerializer.serialize — Dockerfile steps", () => {
315
316
  return (result as { files: Record<string, string> }).files["Dockerfile.app"]!;
316
317
  };
317
318
 
319
+ test("a product image's stages from @intentius/chant/ci-image serialize as ci-image writes them (#4784)", () => {
320
+ const stages = productImageStages({
321
+ name: "terragucci-tofu",
322
+ product: "terragucci",
323
+ description: "OpenTofu 1.13.1 and the terragucci engine",
324
+ source: "https://github.com/INTENTIUS/terragucci",
325
+ tools: [{ tool: "tofu", version: "1.13.1" }],
326
+ bundle: { file: "packages/terragucci/dist/terragucci.mjs", bin: "terragucci" },
327
+ });
328
+ expect(dockerfile({ stages })).toBe(dockerfileText(stages));
329
+ });
330
+
318
331
  test("steps are written in the order given, interleaving COPY and RUN", () => {
319
332
  expect(dockerfile({
320
333
  from: "node:20-alpine",