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