@prisma/orm-toolchain 8.0.0-rc.3 → 8.0.0-rc.3-dev.2
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-telemetry.mjs +1 -1
- package/dist/cli.mjs +6 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__migration-cli.mjs +3 -3
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/config-loader.d.mts +1 -1
- package/dist/config-loader.mjs +1 -1
- package/dist/{exports-8ZUN43ve.mjs → exports-DLDFkjNv.mjs} +2 -2
- package/dist/{exports-8ZUN43ve.mjs.map → exports-DLDFkjNv.mjs.map} +1 -1
- package/dist/{exports-BZaG8_w_.mjs → exports-UjssmDwy.mjs} +16 -2
- package/dist/exports-UjssmDwy.mjs.map +1 -0
- package/dist/{index-DRs7L6N0.d.mts → index-BRjNSwL-.d.mts} +1 -10
- package/dist/index-BRjNSwL-.d.mts.map +1 -0
- package/dist/{migration-hspPIEeV.mjs → migration-BB4LDjuS.mjs} +2 -2
- package/dist/{migration-hspPIEeV.mjs.map → migration-BB4LDjuS.mjs.map} +1 -1
- package/dist/migration-tools.mjs +1 -1
- package/dist/migration-tools__migration.mjs +1 -1
- package/dist/{ref-h6InR6dO-rGfl18Jv.mjs → ref-BdSSbD2i-7HxlZIdl.mjs} +3 -3
- package/dist/{ref-h6InR6dO-rGfl18Jv.mjs.map → ref-BdSSbD2i-7HxlZIdl.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +2 -2
- package/package.json +12 -12
- package/dist/exports-BZaG8_w_.mjs.map +0 -1
- package/dist/index-DRs7L6N0.d.mts.map +0 -1
package/dist/cli-telemetry.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
1
2
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
2
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
3
4
|
import { dirname, join } from "pathe";
|
|
4
5
|
import { randomUUID } from "node:crypto";
|
|
5
|
-
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { homedir } from "node:os";
|
|
7
7
|
import { fork } from "node:child_process";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
package/dist/cli.mjs
CHANGED
|
@@ -2,10 +2,11 @@ import { r as getEmittedArtifactPaths } from "./exports-BCLg4CiV-05kuwcb0.mjs";
|
|
|
2
2
|
import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
3
3
|
import { c as spaceMigrationDirectory } from "./verify-contract-spaces-DhJTb0zM-B62maCfE.mjs";
|
|
4
4
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-CNFBPAT1.mjs";
|
|
5
|
-
import { $ as loadContractRawSafely, A as errorMigrationPlanningFailed, At as statusForMigrationHash, C as errorDestructiveChanges, Ct as resolveRefAdvancementFields, D as errorLegendHumanOnly, Dt as runMigrationCheck, E as errorHashMismatch, F as errorTargetMigrationNotSupported, H as executeMigrateShowPlan, I as errorTargetMismatch, J as executeRefSetCommand, K as executeRefDeleteCommand, L as errorUnexpected, M as errorPathUnreachable, Mt as toDeclaredExtensionsFromRaw, N as errorRunnerFailed, O as errorMarkerMissing, Ot as runMigrationList, P as errorRuntime, Q as loadAggregateIntegrityViolations, R as executeContractEmit, S as errorDatabaseConnectionRequired, St as resolveMigrationRef, T as errorFileNotFound, Tt as runCommandAction, U as executeMigrationNewCommand, W as executeMigrationPlanCommand, X as hasMigrationPath, Y as findPackageByDirPath, Z as listRefsByContractHash, _ as enumerateCheckSpaces, _t as requireLiveDatabase, at as maskConnectionUrl, b as errorContractArgConflict, bt as resolveContractRefToSnapshot, ct as readContractEnvelope, d as closeQuietly, dt as refuseContractSpaceIntegrity, et as loadContractSpaceAggregateForCli, gt as refuseUnknownInvariants, ht as refusePackageCorruptionOnAggregate, i as appliedHashesFromLedger, j as errorNoMigrations, jt as targetSupportsMigrations, k as errorMigrationPackageNotFound, kt as sanitizeErrorMessage, l as checkSingleTarget, lt as readContractIR, m as deriveStatusEdgeAnnotations, mt as refuseMissingInvariantPath, n as advanceRefSafely, nt as mapCaughtMigrationError, o as buildMigrationSpaceGraphEntries, ot as migrationSpaceListEntriesFromAggregate, p as createControlClient, pt as refuseMarkerOutsideGraph, q as executeRefListCommand, rt as mapContractAtError, s as buildReadAggregate, st as originHashForStatus, t as CliStructuredError$1$1, tt as looksLikePath, u as chooseAction, ut as readMigrationRefs, v as errorConfigValidation$1, vt as resolveAppTargetPath, w as errorDriverRequired, x as errorContractValidationFailed, y as errorConsentPlanMismatch, yt as resolveContractRef$1 } from "./ref-
|
|
5
|
+
import { $ as loadContractRawSafely, A as errorMigrationPlanningFailed, At as statusForMigrationHash, C as errorDestructiveChanges, Ct as resolveRefAdvancementFields, D as errorLegendHumanOnly, Dt as runMigrationCheck, E as errorHashMismatch, F as errorTargetMigrationNotSupported, H as executeMigrateShowPlan, I as errorTargetMismatch, J as executeRefSetCommand, K as executeRefDeleteCommand, L as errorUnexpected, M as errorPathUnreachable, Mt as toDeclaredExtensionsFromRaw, N as errorRunnerFailed, O as errorMarkerMissing, Ot as runMigrationList, P as errorRuntime, Q as loadAggregateIntegrityViolations, R as executeContractEmit, S as errorDatabaseConnectionRequired, St as resolveMigrationRef, T as errorFileNotFound, Tt as runCommandAction, U as executeMigrationNewCommand, W as executeMigrationPlanCommand, X as hasMigrationPath, Y as findPackageByDirPath, Z as listRefsByContractHash, _ as enumerateCheckSpaces, _t as requireLiveDatabase, at as maskConnectionUrl, b as errorContractArgConflict, bt as resolveContractRefToSnapshot, ct as readContractEnvelope, d as closeQuietly, dt as refuseContractSpaceIntegrity, et as loadContractSpaceAggregateForCli, gt as refuseUnknownInvariants, ht as refusePackageCorruptionOnAggregate, i as appliedHashesFromLedger, j as errorNoMigrations, jt as targetSupportsMigrations, k as errorMigrationPackageNotFound, kt as sanitizeErrorMessage, l as checkSingleTarget, lt as readContractIR, m as deriveStatusEdgeAnnotations, mt as refuseMissingInvariantPath, n as advanceRefSafely, nt as mapCaughtMigrationError, o as buildMigrationSpaceGraphEntries, ot as migrationSpaceListEntriesFromAggregate, p as createControlClient, pt as refuseMarkerOutsideGraph, q as executeRefListCommand, rt as mapContractAtError, s as buildReadAggregate, st as originHashForStatus, t as CliStructuredError$1$1, tt as looksLikePath, u as chooseAction, ut as readMigrationRefs, v as errorConfigValidation$1, vt as resolveAppTargetPath, w as errorDriverRequired, x as errorContractValidationFailed, y as errorConsentPlanMismatch, yt as resolveContractRef$1 } from "./ref-BdSSbD2i-7HxlZIdl.mjs";
|
|
6
6
|
import { n as buildNextSteps, t as InitOutputSchema } from "./output-CovTDY14-CUoAqLML.mjs";
|
|
7
|
-
import { r as loadConfig } from "./exports-
|
|
7
|
+
import { r as loadConfig } from "./exports-UjssmDwy.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
|
+
import { existsSync, mkdirSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
9
10
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
10
11
|
import { DOCS_BASE, docsUrlFor, isStructuredError, isStructuredErrorCode } from "@prisma/orm-framework/utils/structured-error";
|
|
11
12
|
import { keepInternalSpecifiers } from "@prisma/orm-framework/components/emission";
|
|
@@ -17,7 +18,6 @@ import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
|
17
18
|
import { basename, dirname, extname, isAbsolute, join, normalize, relative, resolve } from "pathe";
|
|
18
19
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
19
20
|
import { type } from "arktype";
|
|
20
|
-
import { existsSync, mkdirSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { defineCommand, defineCommandFamily, defineConfigSection, defineServerCommand, flag, positional } from "@prisma/cli-engine";
|
|
22
22
|
import { CliStructuredError as CliStructuredError$1, notOk as notOk$1, ok as ok$1 } from "@prisma/cli-engine/protocol";
|
|
23
23
|
import { collectConfigIssues } from "@prisma/orm-framework/config/config-validation";
|
|
@@ -32,8 +32,8 @@ import stringWidth from "string-width";
|
|
|
32
32
|
import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
|
|
33
33
|
import { pathToFileURL } from "node:url";
|
|
34
34
|
import { build } from "esbuild";
|
|
35
|
-
//#region ../../../1-framework/3-tooling/cli/dist/load-config-
|
|
36
|
-
var version = "8.0.0-rc.3";
|
|
35
|
+
//#region ../../../1-framework/3-tooling/cli/dist/load-config-BoN3oCUb.mjs
|
|
36
|
+
var version = "8.0.0-rc.3-dev.2";
|
|
37
37
|
const MISSING_CONFIG_ACTION = {
|
|
38
38
|
kind: "run-command",
|
|
39
39
|
label: "Create a config file",
|
|
@@ -5100,7 +5100,7 @@ const lspCommand = defineServerCommand({
|
|
|
5100
5100
|
} },
|
|
5101
5101
|
handler: async (args, io) => {
|
|
5102
5102
|
const exitCode = await withoutClientProcessIdInArgv(async () => {
|
|
5103
|
-
const { startServer } = await import("./exports-
|
|
5103
|
+
const { startServer } = await import("./exports-DLDFkjNv.mjs");
|
|
5104
5104
|
return startServer({
|
|
5105
5105
|
stdin: io.stdin,
|
|
5106
5106
|
stdout: io.stdout,
|