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.
@@ -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) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tigra",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Create a production-ready Fastify + TypeScript + Prisma API server",
6
6
  "keywords": [