lapeh 2.6.9 → 2.6.10

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/index.js CHANGED
@@ -598,6 +598,11 @@ function createProject(skipFirstArg = false) {
598
598
  const lapehPath = path.resolve(__dirname, '..').replace(/\\/g, '/');
599
599
  packageJson.dependencies["lapeh"] = `file:${lapehPath}`;
600
600
  }
601
+
602
+ // Ensure @prisma/client is in dependencies for the new project
603
+ if (usePrisma) {
604
+ packageJson.dependencies["@prisma/client"] = "^7.2.0";
605
+ }
601
606
 
602
607
  packageJson.version = '1.0.0';
603
608
  delete packageJson.bin;
@@ -9,6 +9,7 @@ File ini mencatat semua perubahan, pembaruan, dan perbaikan yang dilakukan pada
9
9
  - **CLI `init` Command**:
10
10
  - **Prisma Client Generation**: Fixed `MODULE_NOT_FOUND` error for `.prisma/client/default` during seeding by forcing `npx prisma generate` before the seed process.
11
11
  - **Project Name Parsing**: Fixed a critical bug where running `npx lapeh init <project-name>` would incorrectly interpret `init` as the project name.
12
+ - **Dependency Management**: Moved `@prisma/client` to `peerDependencies` in the framework core and ensured it is explicitly added to the new project's `dependencies`. This prevents conflicts and ensures the generated client is correctly located.
12
13
 
13
14
  ## [2025-12-29] - Monday, December 29, 2025 - Upgrade CLI Improvements & MongoDB Support (v2.6.6)
14
15
 
@@ -9,6 +9,7 @@ File ini mencatat semua perubahan, pembaruan, dan perbaikan yang dilakukan pada
9
9
  - **Perintah CLI `init`**:
10
10
  - **Prisma Client Generation**: Memperbaiki error `MODULE_NOT_FOUND` untuk `.prisma/client/default` saat seeding dengan memaksa eksekusi `npx prisma generate` sebelum proses seed.
11
11
  - **Parsing Nama Project**: Memperbaiki bug kritis di mana menjalankan `npx lapeh init <nama-project>` akan salah menafsirkan `init` sebagai nama proyek.
12
+ - **Manajemen Dependensi**: Memindahkan `@prisma/client` ke `peerDependencies` di core framework dan memastikannya ditambahkan secara eksplisit ke `dependencies` proyek baru. Ini mencegah konflik dan memastikan client yang digenerate ditemukan dengan benar.
12
13
 
13
14
  ## [2025-12-29] - Senin, 29 Desember 2025 - Perbaikan CLI Upgrade & Dukungan MongoDB (v2.6.6)
14
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapeh",
3
- "version": "2.6.9",
3
+ "version": "2.6.10",
4
4
  "description": "Framework API Express yang siap pakai (Standardized)",
5
5
  "engines": {
6
6
  "node": ">=18.0.0",