adminforth 2.12.5 → 2.12.7

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.
@@ -31,6 +31,6 @@
31
31
  "@types/express": "latest",
32
32
  "@types/node": "latest",
33
33
  "@prisma/client": "latest",
34
- "prisma": "latest"
34
+ "prisma": "^7.0.0"
35
35
  }
36
36
  }
@@ -0,0 +1,8 @@
1
+ import 'dotenv/config'
2
+ import { defineConfig, env } from 'prisma/config'
3
+
4
+ export default defineConfig({
5
+ datasource: {
6
+ url: env('PRISMA_DATABASE_URL'),
7
+ },
8
+ })
@@ -4,7 +4,6 @@ generator client {
4
4
 
5
5
  datasource db {
6
6
  provider = "{{provider}}"
7
- url = env("PRISMA_DATABASE_URL")
8
7
  }
9
8
 
10
9
  model adminuser {
@@ -222,6 +222,11 @@ async function writeTemplateFiles(dirname, cwd, options) {
222
222
  data: { provider },
223
223
  condition: Boolean(prismaDbUrl), // only create if prismaDbUrl is truthy
224
224
  },
225
+ {
226
+ src: 'prisma.config.ts.hbs',
227
+ dest: 'prisma.config.ts',
228
+ data: {},
229
+ },
225
230
  {
226
231
  src: 'package.json.hbs',
227
232
  dest: 'package.json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.12.5",
3
+ "version": "2.12.7",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",