create-daloy 0.34.0 → 0.34.2

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.
@@ -604,16 +604,10 @@ async function patchDockerfileForPackageManager(dir, packageManager) {
604
604
 
605
605
  const raw = await readFile(file, "utf8");
606
606
  const install = dockerInstallSnippet(packageManager);
607
- const defaultPnpmInstallBlock = [
608
- "COPY package.json pnpm-lock.yaml* ./",
609
- "RUN corepack enable && corepack prepare pnpm@latest --activate && \\",
610
- " pnpm install --frozen-lockfile --ignore-scripts",
611
- ].join("\n");
612
607
  let next = raw.replace(
613
- "COPY package.json pnpm-lock.yaml* ./\nRUN corepack enable && corepack prepare pnpm@latest --activate && \\\n pnpm install --frozen-lockfile --ignore-scripts",
608
+ /COPY package\.json pnpm-lock\.yaml\* \.\/\nRUN corepack enable && corepack prepare pnpm@latest --activate && \\\n+\s+pnpm install --frozen-lockfile --ignore-scripts/,
614
609
  `${install.copy}\n${install.run}`,
615
610
  );
616
- next = next.replace(defaultPnpmInstallBlock, `${install.copy}\n${install.run}`);
617
611
 
618
612
  if (packageManager !== "pnpm") {
619
613
  next = next.replaceAll(
@@ -636,6 +630,50 @@ async function patchDockerfileForPackageManager(dir, packageManager) {
636
630
  if (next !== raw) await writeFile(file, next, "utf8");
637
631
  }
638
632
 
633
+ const DOCKERIGNORE_PACKAGE_MANAGER_ENTRIES = {
634
+ npm: [".npm/"],
635
+ yarn: [
636
+ ".yarn/cache/",
637
+ ".yarn/unplugged/",
638
+ ".yarn/build-state.yml",
639
+ ".yarn/install-state.gz",
640
+ ".pnp.*",
641
+ ],
642
+ bun: [".bun/"],
643
+ pnpm: [".pnpm-store/"],
644
+ };
645
+
646
+ const ALL_DOCKERIGNORE_PACKAGE_MANAGER_ENTRIES = new Set(
647
+ Object.values(DOCKERIGNORE_PACKAGE_MANAGER_ENTRIES).flat(),
648
+ );
649
+
650
+ function dockerignorePackageManagerEntries(packageManager) {
651
+ return DOCKERIGNORE_PACKAGE_MANAGER_ENTRIES[packageManager] ?? DOCKERIGNORE_PACKAGE_MANAGER_ENTRIES.pnpm;
652
+ }
653
+
654
+ async function patchDockerignoreForPackageManager(dir, packageManager) {
655
+ const file = path.join(dir, ".dockerignore");
656
+ if (!existsSync(file)) return;
657
+
658
+ const raw = await readFile(file, "utf8");
659
+ const wanted = dockerignorePackageManagerEntries(packageManager);
660
+ const wantedSet = new Set(wanted);
661
+ const lines = raw
662
+ .split(/\r?\n/)
663
+ .filter((line) => {
664
+ const trimmed = line.trim();
665
+ return !ALL_DOCKERIGNORE_PACKAGE_MANAGER_ENTRIES.has(trimmed) || wantedSet.has(trimmed);
666
+ });
667
+ const existing = new Set(lines.map((line) => line.trim()).filter(Boolean));
668
+ const missing = wanted.filter((entry) => !existing.has(entry));
669
+ let next = lines.join("\n").trimEnd();
670
+ if (missing.length) {
671
+ next = `${next}${next ? "\n" : ""}${missing.join("\n")}`;
672
+ }
673
+ next = `${next}\n`;
674
+ if (next !== raw) await writeFile(file, next, "utf8");
675
+ }
676
+
639
677
  function hasPackageScript(packageJson, scriptName) {
640
678
  return typeof packageJson?.scripts?.[scriptName] === "string";
641
679
  }
@@ -1395,6 +1433,7 @@ async function main() {
1395
1433
  await patchPackageJson(targetDir, projectName, packageManager);
1396
1434
  logStep("Package metadata written", projectName);
1397
1435
  await patchTemplateTextFiles(targetDir, packageManager);
1436
+ await patchDockerignoreForPackageManager(targetDir, packageManager);
1398
1437
  if (packageManager !== "pnpm") {
1399
1438
  await patchDockerfileForPackageManager(targetDir, packageManager);
1400
1439
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-daloy",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "Scaffold a new DaloyJS project. Run with `pnpm create daloy`, `npm create daloy@latest`, `yarn create daloy`, or `bun create daloy`.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,4 +45,4 @@
45
45
  "scripts": {
46
46
  "test": "node --test test/**/*.test.mjs"
47
47
  }
48
- }
48
+ }
package/sbom.cdx.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.5",
4
- "serialNumber": "urn:uuid:82c87bf3-10d1-59f3-9cc6-48dd49603d42",
4
+ "serialNumber": "urn:uuid:6244f261-e99d-5b5f-9ccb-5a10bc0de8b7",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2026-05-21T23:55:46.185Z",
7
+ "timestamp": "2026-05-23T09:06:22.609Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "DaloyJS",
11
11
  "name": "daloy-generate-sbom",
12
- "version": "0.34.0"
12
+ "version": "0.34.2"
13
13
  }
14
14
  ],
15
15
  "authors": [],
16
16
  "component": {
17
17
  "type": "library",
18
- "bom-ref": "pkg:npm/create-daloy@0.34.0",
18
+ "bom-ref": "pkg:npm/create-daloy@0.34.2",
19
19
  "name": "create-daloy",
20
- "version": "0.34.0",
20
+ "version": "0.34.2",
21
21
  "description": "Scaffold a new DaloyJS project. Run with `pnpm create daloy`, `npm create daloy@latest`, `yarn create daloy`, or `bun create daloy`.",
22
- "purl": "pkg:npm/create-daloy@0.34.0",
22
+ "purl": "pkg:npm/create-daloy@0.34.2",
23
23
  "licenses": [
24
24
  {
25
25
  "license": {
@@ -38,9 +38,9 @@
38
38
  }
39
39
  ],
40
40
  "swid": {
41
- "tagId": "swidtag-create-daloy-0.34.0",
41
+ "tagId": "swidtag-create-daloy-0.34.2",
42
42
  "name": "create-daloy",
43
- "version": "0.34.0",
43
+ "version": "0.34.2",
44
44
  "tagVersion": 0,
45
45
  "patch": false
46
46
  }
@@ -49,7 +49,7 @@
49
49
  "components": [],
50
50
  "dependencies": [
51
51
  {
52
- "ref": "pkg:npm/create-daloy@0.34.0",
52
+ "ref": "pkg:npm/create-daloy@0.34.2",
53
53
  "dependsOn": []
54
54
  }
55
55
  ]
package/sbom.spdx.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "spdxVersion": "SPDX-2.3",
3
3
  "dataLicense": "CC0-1.0",
4
4
  "SPDXID": "SPDXRef-DOCUMENT",
5
- "name": "create-daloy-0.34.0",
6
- "documentNamespace": "https://github.com/daloyjs/daloy/sbom/create-daloy-0.34.0-82c87bf3-10d1-59f3-9cc6-48dd49603d42",
5
+ "name": "create-daloy-0.34.2",
6
+ "documentNamespace": "https://github.com/daloyjs/daloy/sbom/create-daloy-0.34.2-6244f261-e99d-5b5f-9ccb-5a10bc0de8b7",
7
7
  "creationInfo": {
8
- "created": "2026-05-21T23:55:46.185Z",
8
+ "created": "2026-05-23T09:06:22.609Z",
9
9
  "creators": [
10
10
  "Tool: daloy-generate-sbom",
11
11
  "Organization: DaloyJS"
@@ -16,7 +16,7 @@
16
16
  {
17
17
  "SPDXID": "SPDXRef-Package-create-daloy",
18
18
  "name": "create-daloy",
19
- "versionInfo": "0.34.0",
19
+ "versionInfo": "0.34.2",
20
20
  "downloadLocation": "https://github.com/daloyjs/daloy",
21
21
  "filesAnalyzed": false,
22
22
  "licenseConcluded": "MIT",
@@ -27,7 +27,7 @@
27
27
  {
28
28
  "referenceCategory": "PACKAGE-MANAGER",
29
29
  "referenceType": "purl",
30
- "referenceLocator": "pkg:npm/create-daloy@0.34.0"
30
+ "referenceLocator": "pkg:npm/create-daloy@0.34.2"
31
31
  }
32
32
  ]
33
33
  }
@@ -1,4 +1,5 @@
1
1
  node_modules
2
+ .pnpm-store/
2
3
  coverage
3
4
  .git
4
5
  .github
@@ -16,7 +16,7 @@
16
16
  "gen": "pnpm gen:openapi && pnpm gen:client"
17
17
  },
18
18
  "dependencies": {
19
- "@daloyjs/core": "^0.34.0",
19
+ "@daloyjs/core": "^0.34.2",
20
20
  "zod": "^4.4.3"
21
21
  },
22
22
  "devDependencies": {
@@ -1,4 +1,5 @@
1
1
  node_modules
2
+ .pnpm-store/
2
3
  .wrangler
3
4
  dist
4
5
  coverage
@@ -10,12 +10,12 @@
10
10
  "test": "node --import tsx/esm --test tests/**/*.test.ts"
11
11
  },
12
12
  "dependencies": {
13
- "@daloyjs/core": "^0.34.0",
13
+ "@daloyjs/core": "^0.34.2",
14
14
  "zod": "^4.4.3"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@cloudflare/workers-types": "^4.20240909.0",
18
- "tsx": "^4.22.0",
18
+ "tsx": "^4.22.3",
19
19
  "typescript": "^6.0.3",
20
20
  "wrangler": "^4.0.0"
21
21
  }
@@ -1,3 +1,4 @@
1
+ .deno/
1
2
  coverage
2
3
  .git
3
4
  .github
@@ -8,8 +8,8 @@
8
8
  "gen:openapi": "deno run --allow-net --allow-env --allow-read --allow-write scripts/dump-openapi.ts"
9
9
  },
10
10
  "imports": {
11
- "@daloyjs/core": "npm:@daloyjs/core@^0.34.0",
12
- "@daloyjs/core/": "npm:@daloyjs/core@^0.34.0/",
11
+ "@daloyjs/core": "npm:@daloyjs/core@^0.34.2",
12
+ "@daloyjs/core/": "npm:@daloyjs/core@^0.34.2/",
13
13
  "zod": "npm:zod@^4.4.3"
14
14
  },
15
15
  "compilerOptions": {
@@ -1,4 +1,5 @@
1
1
  node_modules
2
+ .pnpm-store/
2
3
  dist
3
4
  coverage
4
5
  .git
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "scripts": {
10
10
  "dev": "daloy dev",
11
- "start": "node --import tsx/esm src/index.ts",
11
+ "start": "node dist/index.js",
12
12
  "build": "tsc -p tsconfig.build.json",
13
13
  "typecheck": "tsc --noEmit",
14
14
  "test": "node --import tsx/esm --test tests/**/*.test.ts",
@@ -18,13 +18,13 @@
18
18
  "audit": "pnpm audit --prod"
19
19
  },
20
20
  "dependencies": {
21
- "@daloyjs/core": "^0.34.0",
21
+ "@daloyjs/core": "^0.34.2",
22
22
  "zod": "^4.4.3"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@hey-api/openapi-ts": "^0.97.1",
26
26
  "@types/node": "^25.7.0",
27
- "tsx": "^4.22.0",
27
+ "tsx": "^4.22.3",
28
28
  "typescript": "^6.0.3"
29
29
  }
30
30
  }
@@ -1,4 +1,5 @@
1
1
  node_modules
2
+ .pnpm-store/
2
3
  .vercel
3
4
  dist
4
5
  coverage
@@ -10,12 +10,12 @@
10
10
  "test": "node --import tsx/esm --test tests/**/*.test.ts"
11
11
  },
12
12
  "dependencies": {
13
- "@daloyjs/core": "^0.34.0",
13
+ "@daloyjs/core": "^0.34.2",
14
14
  "zod": "^4.4.3"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/node": "^25.7.0",
18
- "tsx": "^4.22.0",
18
+ "tsx": "^4.22.3",
19
19
  "typescript": "^6.0.3",
20
20
  "vercel": "^48.0.0"
21
21
  }