@prisma/cli-engine 0.2.0 → 0.2.1
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.
|
@@ -6,6 +6,7 @@ import { randomUUID } from "node:crypto";
|
|
|
6
6
|
import { existsSync, mkdirSync, readFileSync, realpathSync, renameSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { dirname, join, resolve } from "node:path";
|
|
8
8
|
import { detect } from "package-manager-detector/detect";
|
|
9
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
9
10
|
import { createColors } from "colorette";
|
|
10
11
|
import stringWidth from "string-width";
|
|
11
12
|
import { Readable, Writable } from "node:stream";
|
|
@@ -1647,7 +1648,7 @@ const EVALUATE_ONE_FILE_ONLY = {
|
|
|
1647
1648
|
* exact path and must not answer with another.
|
|
1648
1649
|
*/
|
|
1649
1650
|
async function evaluateConfigFile(path) {
|
|
1650
|
-
const result = await (await import("c12")).loadConfig({
|
|
1651
|
+
const result = await (await import(pathToFileURL(realpathSync(fileURLToPath(import.meta.resolve("c12")))).href)).loadConfig({
|
|
1651
1652
|
name: "prisma",
|
|
1652
1653
|
configFile: path,
|
|
1653
1654
|
cwd: dirname(path),
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ok, r as notOk, t as CliStructuredError } from "./protocol-TtNVkeVS.js";
|
|
2
|
-
import { C as credentialWorkspaceMismatchError, E as noSessionForWorkspaceError, S as credentialRejectedError, T as emptyServiceTokenError, _ as readActiveAccessToken, a as loadConfig, b as credentialWorkspaceId, c as WORKSPACE_ID_ENV_VAR, d as userConfigPath, f as writeUserConfig, g as positional, h as flag, i as definePrismaConfig, l as PRESENTED, m as exitWithChildStatus, o as PRISMA_CONFIG_VERSION, p as resolveGating, r as defineConfig, s as SERVICE_TOKEN_ENV_VAR, t as buildEngine, u as readUserConfig, v as claimedExpiresAt, w as credentialsRequiredError, x as authServiceError, y as claimedIdentity } from "./engine-
|
|
2
|
+
import { C as credentialWorkspaceMismatchError, E as noSessionForWorkspaceError, S as credentialRejectedError, T as emptyServiceTokenError, _ as readActiveAccessToken, a as loadConfig, b as credentialWorkspaceId, c as WORKSPACE_ID_ENV_VAR, d as userConfigPath, f as writeUserConfig, g as positional, h as flag, i as definePrismaConfig, l as PRESENTED, m as exitWithChildStatus, o as PRISMA_CONFIG_VERSION, p as resolveGating, r as defineConfig, s as SERVICE_TOKEN_ENV_VAR, t as buildEngine, u as readUserConfig, v as claimedExpiresAt, w as credentialsRequiredError, x as authServiceError, y as claimedIdentity } from "./engine-DJYd4aGn.js";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
/**
|
|
5
5
|
* Shell-side construction. Group help is declared with the mount.
|
package/dist/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as credentialWorkspaceMismatchError, E as noSessionForWorkspaceError, _ as readActiveAccessToken, b as credentialWorkspaceId, t as buildEngine, v as claimedExpiresAt, w as credentialsRequiredError, y as claimedIdentity } from "./engine-
|
|
1
|
+
import { C as credentialWorkspaceMismatchError, E as noSessionForWorkspaceError, _ as readActiveAccessToken, b as credentialWorkspaceId, t as buildEngine, v as claimedExpiresAt, w as credentialsRequiredError, y as claimedIdentity } from "./engine-DJYd4aGn.js";
|
|
2
2
|
import { Buffer } from "node:buffer";
|
|
3
3
|
//#region src/in-memory-credential-manager.ts
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/cli-engine",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The execution engine of the unified Prisma CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"string-width": "^8.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@repo/cli-conformance": "8.0.0-rc.
|
|
53
|
-
"@repo/tsconfig": "8.0.0-rc.
|
|
52
|
+
"@repo/cli-conformance": "8.0.0-rc.9-dev.74",
|
|
53
|
+
"@repo/tsconfig": "8.0.0-rc.9-dev.74",
|
|
54
54
|
"@types/node": "^22.19.19",
|
|
55
55
|
"ci-info": "^4.3.1",
|
|
56
56
|
"tsdown": "^0.21.10",
|