Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference/error-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ The user typed a retired command path, or a retired flag on a surviving command,

### CLI.CONFIG_MISSING_MARKER

The evaluated `prisma.config.ts` default export carries no `$prismaConfig` version marker — most likely a Prisma 7 config, which uses the same filename — so the loader stops rather than misread it; the fix is to wrap the exported object in `definePrismaConfig`. Raised by the config loader for any command with a `needs.config` section. The file's absolute path is in `where.path`. Meta: none.
The evaluated `prisma.config.ts` default export carries no `$prismaConfig` version marker — most likely a Prisma 7 config, which uses the same filename — so the loader stops rather than misread it; the fix is to wrap the exported object in `definePrismaConfig`. A project that still uses Prisma ORM 6 or 7 cannot do that, because its own CLI reads the same file and rejects the wrapped one, so a second next action says to leave the file alone, write this CLI's config in a separate file in the same directory, and pass that file with `--config`; automatic discovery never collects a `prisma.config.ts` beside a file named that way, though it still collects one in a directory above it unless the named file sets `parent: false`. Raised by the config loader for any command with a `needs.config` section. The file's absolute path is in `where.path`. Meta: none.

### CLI.CONFIG_NOT_FOUND

Expand Down
2 changes: 1 addition & 1 deletion packages/cli-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/cli-engine",
"version": "0.10.4",
"version": "0.10.5",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
"description": "The execution engine of the unified Prisma CLI.",
"type": "module",
"exports": {
Expand Down
5 changes: 5 additions & 0 deletions packages/cli-engine/src/config-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ function missingMarkerDiagnostic(path: string): Diagnostic {
label:
"Migrate the file: wrap the exported object in definePrismaConfig from @prisma/cli-engine and export the result as the default export.",
},
{
kind: "user-choice",
label:
"Or, if this project still uses Prisma ORM 6 or 7 and the file belongs to that version's CLI, leave it as it is: write the config for this CLI in a separate file in the same directory and pass its path with --config.",
},
],
where: { path },
};
Expand Down
5 changes: 5 additions & 0 deletions packages/cli-engine/tests/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ describe("loadConfig", { timeout: 60_000 }, () => {
label:
"Migrate the file: wrap the exported object in definePrismaConfig from @prisma/cli-engine and export the result as the default export.",
},
{
kind: "user-choice",
label:
"Or, if this project still uses Prisma ORM 6 or 7 and the file belongs to that version's CLI, leave it as it is: write the config for this CLI in a separate file in the same directory and pass its path with --config.",
},
],
where: { path: join(FIXTURES, "unmarked", "prisma.config.ts") },
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"dependencies": {
"@manypkg/tools": "^2.1.2",
"@prisma/cli-engine": "workspace:0.10.4",
"@prisma/cli-engine": "workspace:0.10.5",
"@prisma/composer-cli": "0.40.0",
"@prisma/compute-sdk": "0.43.0",
"@prisma/management-api-sdk": "1.101.0",
Expand Down
23 changes: 22 additions & 1 deletion packages/cli/scripts/conformance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,28 @@ async function tarball(): Promise<readonly Finding[]> {
shellPackage: "@prisma/cli",
enginePackage: "@prisma/cli-engine",
familyPackages: ["@prisma/composer-cli", "@prisma/orm-toolchain"],
exceptions: [],
exceptions: [
{
familyPackage: "@prisma/composer-cli",
familyPin: "0.10.4",
shellPin: "0.10.5",
channel: "dev",
reason:
"engine 0.10.5 adds a next action to CLI.CONFIG_MISSING_MARKER; composer-cli still peers 0.10.4",
removeWhen:
"composer-cli releases peering 0.10.5 and the follow-up bump PR pins that release",
},
{
familyPackage: "@prisma/orm-toolchain",
familyPin: "0.10.4",
shellPin: "0.10.5",
channel: "dev",
reason:
"engine 0.10.5 adds a next action to CLI.CONFIG_MISSING_MARKER; orm-toolchain still peers 0.10.4",
removeWhen:
"orm-toolchain releases peering 0.10.5 and the follow-up bump PR pins that release",
},
],
channel: CHANNEL,
sandboxDir: join(WORK_DIR, "sandbox"),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"dependencies": {
"@manypkg/tools": "^2.1.2",
"@prisma/cli-engine": "workspace:0.10.4",
"@prisma/cli-engine": "workspace:0.10.5",
"@prisma/composer-cli": "0.40.0",
"@prisma/compute-sdk": "0.43.0",
"@prisma/management-api-sdk": "1.101.0",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading