create-tigra 1.0.2 → 1.0.3
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 +8 -0
- package/package.json +1 -1
package/bin/create-tigra.js
CHANGED
|
@@ -218,8 +218,16 @@ 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: exclude .env but NOT .env.example
|
|
227
|
+
if (basename === '.env' && !src.endsWith('.env.example')) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
|
|
223
231
|
// Check against exclude patterns
|
|
224
232
|
return !excludePatterns.some(
|
|
225
233
|
(pattern) =>
|