@prisma/cli 8.0.0-rc.33-dev.186 → 8.0.0-rc.33-dev.187
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/cli.js +28 -15
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -14455,21 +14455,32 @@ const skillsCommandFamily = defineCommandFamily({
|
|
|
14455
14455
|
});
|
|
14456
14456
|
//#endregion
|
|
14457
14457
|
//#region src/v7-redirects.ts
|
|
14458
|
-
function
|
|
14458
|
+
function kebabCase(flag) {
|
|
14459
|
+
return flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
14460
|
+
}
|
|
14461
|
+
function withPrisma7Install(reason, invocation) {
|
|
14462
|
+
return `${reason} To keep using Prisma 7, install its CLI with \`npm install --save-dev @prisma/prisma7@7\` and run \`prisma7 ${invocation}\`.`;
|
|
14463
|
+
}
|
|
14464
|
+
function withPlaceholder(invocation, placeholder) {
|
|
14465
|
+
return placeholder === void 0 ? invocation : `${invocation} ${placeholder}`;
|
|
14466
|
+
}
|
|
14467
|
+
function v7Command(from, { placeholder, ...entry }) {
|
|
14459
14468
|
return {
|
|
14460
14469
|
from,
|
|
14461
14470
|
code: "CLI.V7_COMMAND",
|
|
14462
14471
|
summary: `\`{bin} ${from}\` is a Prisma 7 command and is not available in Prisma 8`,
|
|
14463
|
-
...entry
|
|
14472
|
+
...entry,
|
|
14473
|
+
reason: withPrisma7Install(entry.reason, withPlaceholder(from, placeholder))
|
|
14464
14474
|
};
|
|
14465
14475
|
}
|
|
14466
|
-
function v7Flag(command, flag, entry) {
|
|
14476
|
+
function v7Flag(command, flag, { placeholder, ...entry }) {
|
|
14467
14477
|
return {
|
|
14468
14478
|
from: command,
|
|
14469
14479
|
flag,
|
|
14470
14480
|
code: "CLI.V7_FLAG",
|
|
14471
|
-
summary: `\`--${flag
|
|
14472
|
-
...entry
|
|
14481
|
+
summary: `\`--${kebabCase(flag)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`,
|
|
14482
|
+
...entry,
|
|
14483
|
+
reason: withPrisma7Install(entry.reason, withPlaceholder(`${command} --${kebabCase(flag)}`, placeholder))
|
|
14473
14484
|
};
|
|
14474
14485
|
}
|
|
14475
14486
|
const INIT_SCHEMA_REASON = "`init` prepares this repository for Prisma: it writes prisma.config.ts, adds prisma as a dev dependency and installs the AI-agent skills. It sets up no database schema or client; `orm init` does that.";
|
|
@@ -14494,12 +14505,13 @@ const v7CommandFamily = defineCommandFamily({
|
|
|
14494
14505
|
reason: "No command starts an MCP (Model Context Protocol) server for AI tools."
|
|
14495
14506
|
}),
|
|
14496
14507
|
v7Command("complete", {
|
|
14508
|
+
placeholder: "<shell>",
|
|
14497
14509
|
docsUrl: CLI_DOCS_URL,
|
|
14498
14510
|
reason: "This CLI has no shell completion: no command prints or installs a completion script for your shell."
|
|
14499
14511
|
}),
|
|
14500
14512
|
v7Command("platform status", {
|
|
14501
14513
|
docsUrl: CLI_DOCS_URL,
|
|
14502
|
-
reason: "No command reports
|
|
14514
|
+
reason: "No command reports whether Prisma Data Platform services are up."
|
|
14503
14515
|
}),
|
|
14504
14516
|
v7Command("postgres link", {
|
|
14505
14517
|
replacement: ["{bin} project link", "{bin} postgres connection create <database>"],
|
|
@@ -14516,17 +14528,18 @@ const v7CommandFamily = defineCommandFamily({
|
|
|
14516
14528
|
help: "init",
|
|
14517
14529
|
reason: "`--skills=none` skips installing the AI-agent skills and records in prisma.config.ts that none are wanted, so later installs do not add them."
|
|
14518
14530
|
}),
|
|
14519
|
-
...
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
"url",
|
|
14525
|
-
|
|
14526
|
-
|
|
14531
|
+
...Object.entries({
|
|
14532
|
+
datasourceProvider: "<provider>",
|
|
14533
|
+
generatorProvider: "<provider>",
|
|
14534
|
+
previewFeature: "<feature>",
|
|
14535
|
+
output: "<path>",
|
|
14536
|
+
url: "<url>",
|
|
14537
|
+
withModel: void 0
|
|
14538
|
+
}).map(([flag, placeholder]) => v7Flag("init", flag, {
|
|
14527
14539
|
replacement: "{bin} orm init",
|
|
14528
14540
|
help: "orm init",
|
|
14529
|
-
reason: INIT_SCHEMA_REASON
|
|
14541
|
+
reason: INIT_SCHEMA_REASON,
|
|
14542
|
+
placeholder
|
|
14530
14543
|
}))
|
|
14531
14544
|
]
|
|
14532
14545
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/cli",
|
|
3
|
-
"version": "8.0.0-rc.33-dev.
|
|
3
|
+
"version": "8.0.0-rc.33-dev.187",
|
|
4
4
|
"description": "Command-line interface for the Prisma Developer Platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@prisma/composer": "0.38.0-dev.4",
|
|
57
57
|
"@prisma/credentials-store": "^7.8.0",
|
|
58
|
-
"@repo/cli-conformance": "8.0.0-rc.33-dev.
|
|
59
|
-
"@repo/cli-telemetry": "8.0.0-rc.33-dev.
|
|
60
|
-
"@repo/tsconfig": "8.0.0-rc.33-dev.
|
|
58
|
+
"@repo/cli-conformance": "8.0.0-rc.33-dev.187",
|
|
59
|
+
"@repo/cli-telemetry": "8.0.0-rc.33-dev.187",
|
|
60
|
+
"@repo/tsconfig": "8.0.0-rc.33-dev.187",
|
|
61
61
|
"@types/node": "^22.19.19",
|
|
62
62
|
"@types/cross-spawn": "^6.0.6",
|
|
63
63
|
"tsdown": "^0.21.10",
|