kofi-stack-template-generator 2.0.9 → 2.0.11

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,9 +1,9 @@
1
1
 
2
- > kofi-stack-template-generator@2.0.9 build /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/template-generator
2
+ > kofi-stack-template-generator@2.0.11 build /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/template-generator
3
3
  > pnpm run prebuild && tsup src/index.ts --format esm --dts
4
4
 
5
5
 
6
- > kofi-stack-template-generator@2.0.9 prebuild /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/template-generator
6
+ > kofi-stack-template-generator@2.0.11 prebuild /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/template-generator
7
7
  > node scripts/generate-templates.js
8
8
 
9
9
  Generating templates.generated.ts...
@@ -13,8 +13,8 @@ CLI Using tsconfig: tsconfig.json
13
13
  CLI tsup v8.5.1
14
14
  CLI Target: es2022
15
15
  ESM Build start
16
- ESM dist/index.js 40.10 KB
17
- ESM ⚡️ Build success in 14ms
16
+ ESM dist/index.js 40.14 KB
17
+ ESM ⚡️ Build success in 15ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 434ms
19
+ DTS ⚡️ Build success in 456ms
20
20
  DTS dist/index.d.ts 2.96 KB
package/dist/index.js CHANGED
@@ -504,7 +504,9 @@ function processTemplatesFromPrefix(vfs, prefix, outputPrefix, config) {
504
504
  vfs.writeFile(finalPath, Buffer.from(content, "base64"));
505
505
  } else {
506
506
  const processedContent = processTemplateString(content, config);
507
- vfs.writeFile(finalPath, processedContent);
507
+ if (processedContent.trim()) {
508
+ vfs.writeFile(finalPath, processedContent);
509
+ }
508
510
  }
509
511
  }
510
512
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kofi-stack-template-generator",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/generator.ts CHANGED
@@ -91,7 +91,10 @@ function processTemplatesFromPrefix(
91
91
  } else {
92
92
  // Process as template
93
93
  const processedContent = processTemplateString(content, config)
94
- vfs.writeFile(finalPath, processedContent)
94
+ // Skip writing empty files (can happen with conditional templates)
95
+ if (processedContent.trim()) {
96
+ vfs.writeFile(finalPath, processedContent)
97
+ }
95
98
  }
96
99
  }
97
100
  }
@@ -1,6 +1,6 @@
1
1
  // Auto-generated file. Do not edit manually.
2
2
  // Run 'pnpm prebuild' to regenerate.
3
- // Generated: 2026-01-13T22:52:24.314Z
3
+ // Generated: 2026-01-13T23:10:07.840Z
4
4
  // Template count: 34
5
5
 
6
6
  export const EMBEDDED_TEMPLATES: Record<string, string> = {
@@ -1,4 +0,0 @@
1
-
2
- > kofi-stack-template-generator@2.0.5 typecheck /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/template-generator
3
- > tsc --noEmit
4
-