@prisma/cli-init 0.2.0 → 0.4.0
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/dist/{_-O567UZLT.js → _-WIN5AVS3.js} +3 -1
- package/dist/accelerate-GABM6I4V.js +221 -0
- package/dist/chunk-ASMCGOOW.js +1286 -0
- package/dist/{chunk-CMRCQXCF.js → chunk-SORRSNB3.js} +5 -6
- package/dist/chunk-YX4UTTNJ.js +44 -0
- package/dist/index.js +3114 -43
- package/dist/utility-W6LOZZIT.js +21 -0
- package/package.json +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import "./chunk-YX4UTTNJ.js";
|
|
3
|
+
|
|
4
|
+
// ../../dev/server/src/utility.ts
|
|
5
|
+
import { Hono } from "hono/tiny";
|
|
6
|
+
import { StatusCodes } from "http-status-codes";
|
|
7
|
+
var utilityRoute = new Hono();
|
|
8
|
+
utilityRoute.post("/database/dump", async (ctx) => {
|
|
9
|
+
const db = ctx.get("db");
|
|
10
|
+
const serverState = ctx.get("serverState");
|
|
11
|
+
await db.dump(serverState.databaseDumpPath);
|
|
12
|
+
return ctx.json({ dumpPath: serverState.databaseDumpPath }, StatusCodes.CREATED);
|
|
13
|
+
});
|
|
14
|
+
var _healthRoute = utilityRoute.get("/health", (ctx) => {
|
|
15
|
+
return ctx.json({
|
|
16
|
+
name: ctx.get("serverState").name
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
utilityRoute
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/cli-init",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Init CLI for Prisma",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"tsup": "8.0.2",
|
|
37
37
|
"typescript": "5.8.3",
|
|
38
38
|
"vitest": "3.1.3",
|
|
39
|
-
"@prisma/dev": "0.
|
|
39
|
+
"@prisma/dev": "0.9.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@inquirer/prompts": "7.3.3",
|