create-tigra 1.0.2 → 1.0.4
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/bin/create-tigra.js +13 -0
- package/package.json +1 -1
package/bin/create-tigra.js
CHANGED
|
@@ -218,8 +218,21 @@ program
|
|
|
218
218
|
// Filter function to exclude unwanted files/folders
|
|
219
219
|
const filterFunc = (src) => {
|
|
220
220
|
const relativePath = path.relative(templateDir, src);
|
|
221
|
+
const basename = path.basename(src);
|
|
222
|
+
|
|
221
223
|
// Always include the root
|
|
222
224
|
if (!relativePath) return true;
|
|
225
|
+
|
|
226
|
+
// Special case: ALWAYS include .env.example
|
|
227
|
+
if (basename === '.env.example') {
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// Special case: exclude .env (but not .env.example which was already handled)
|
|
232
|
+
if (basename === '.env') {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
|
|
223
236
|
// Check against exclude patterns
|
|
224
237
|
return !excludePatterns.some(
|
|
225
238
|
(pattern) =>
|