lapeh 2.0.7 → 2.0.9

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.
Files changed (2) hide show
  1. package/bin/index.js +8 -0
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -219,6 +219,9 @@ function createProject() {
219
219
  'bin', // Don't copy the CLI script itself
220
220
  'package-lock.json',
221
221
  '.DS_Store',
222
+ 'prisma/migrations', // Exclude existing migrations
223
+ 'prisma/dev.db', // Exclude sqlite db if exists
224
+ 'prisma/dev.db-journal',
222
225
  projectName // Don't copy the destination folder itself if creating inside the template
223
226
  ];
224
227
 
@@ -232,6 +235,11 @@ function createProject() {
232
235
  if (ignoreList.includes(entry.name)) {
233
236
  continue;
234
237
  }
238
+
239
+ // Explicitly check for prisma/migrations to ensure it's skipped at any depth if logic changes
240
+ if (entry.name === 'migrations' && srcPath.includes('prisma')) {
241
+ continue;
242
+ }
235
243
 
236
244
  if (entry.isDirectory()) {
237
245
  fs.mkdirSync(destPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapeh",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Framework API Express yang siap pakai (Standardized)",
5
5
  "main": "index.js",
6
6
  "bin": {