kofi-stack-template-generator 2.0.9 → 2.0.10
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/.turbo/turbo-build.log +4 -4
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/src/generator.ts +4 -1
- package/src/templates.generated.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> kofi-stack-template-generator@2.0.
|
|
2
|
+
> kofi-stack-template-generator@2.0.10 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.
|
|
6
|
+
> kofi-stack-template-generator@2.0.10 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.
|
|
17
|
-
ESM ⚡️ Build success in
|
|
16
|
+
ESM dist/index.js 40.14 KB
|
|
17
|
+
ESM ⚡️ Build success in 12ms
|
|
18
18
|
DTS Build start
|
|
19
19
|
DTS ⚡️ Build success in 434ms
|
|
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
|
-
|
|
507
|
+
if (processedContent.trim()) {
|
|
508
|
+
vfs.writeFile(finalPath, processedContent);
|
|
509
|
+
}
|
|
508
510
|
}
|
|
509
511
|
}
|
|
510
512
|
}
|
package/package.json
CHANGED
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
|
-
|
|
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
|
}
|