@prisma/cli-dev 0.0.0-dev.202505142357 → 0.0.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/index.js +1 -6
- package/package.json +10 -13
package/dist/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{runMain as
|
|
3
|
-
`);try{let r=await g({acceleratePort:t,databasePort:s,debug:f,shadowDatabasePort:a});process.once("SIGINT",()=>{console.log("closing Prisma Dev server..."),r.close()}),console.log(`Great Success!
|
|
4
|
-
`),console.log(`To connect to your local Prisma Postgres database via Prisma ORM, use the following connection string:
|
|
5
|
-
|
|
6
|
-
DATABASE_URL="${r.ppg.url}"
|
|
7
|
-
`),process.on("uncaughtException",c=>{"code"in c&&c.code==="ECONNRESET"||process.exit(1)}),await new Promise(()=>{})}catch(r){if(r instanceof P)return console.error(`Prisma Dev Error: port number \`${r.port}\` is already in use. Please pass a different port number in the \`--${e[r.service]}\` option.`),process.exit(1);console.error(`Error starting Prisma Dev: ${r instanceof Error?r.message:String(r)}`),process.exit(1)}}});function $(o){w(u,{rawArgs:o})}export{$ as run};
|
|
2
|
+
import{runMain as n}from"citty";import{defineCommand as o}from"citty";var e="0.0.0";var t=o({meta:{description:"Spin up a local Prisma Postgres database",name:"dev",version:e},run:async()=>{console.log("coming soon")}});function l(s){n(t,{rawArgs:s})}export{l as run};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/cli-dev",
|
|
3
|
-
"version": "0.0.0
|
|
3
|
+
"version": "0.0.0",
|
|
4
4
|
"description": "Dev CLI for Prisma",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
"default": "./dist/index.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"check:exports": "attw . --pack",
|
|
23
|
+
"lint": "eslint --fix .",
|
|
24
|
+
"test": "",
|
|
25
|
+
"typecheck": "tsc --noEmit"
|
|
26
|
+
},
|
|
20
27
|
"keywords": [
|
|
21
28
|
"cli",
|
|
22
29
|
"prisma",
|
|
@@ -31,21 +38,11 @@
|
|
|
31
38
|
],
|
|
32
39
|
"devDependencies": {
|
|
33
40
|
"@arethetypeswrong/cli": "0.17.4",
|
|
34
|
-
"@types/node": "22.3.0",
|
|
35
41
|
"tsup": "8.0.2",
|
|
36
42
|
"typescript": "5.8.3",
|
|
37
43
|
"vitest": "3.1.3"
|
|
38
44
|
},
|
|
39
45
|
"dependencies": {
|
|
40
|
-
"citty": "0.1.6"
|
|
41
|
-
"@prisma/dev": "0.0.0-dev.202505142357"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "tsup",
|
|
45
|
-
"check:exports": "attw . --pack --profile esm-only",
|
|
46
|
-
"dev": "tsup --watch",
|
|
47
|
-
"lint": "eslint --fix .",
|
|
48
|
-
"test": "",
|
|
49
|
-
"typecheck": "tsc --noEmit"
|
|
46
|
+
"citty": "0.1.6"
|
|
50
47
|
}
|
|
51
|
-
}
|
|
48
|
+
}
|