@prisma-next/family-sql 0.1.0-dev.11 → 0.1.0-dev.12
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/exports/control.d.ts +78 -1
- package/dist/exports/control.js +94 -1
- package/dist/exports/control.js.map +1 -1
- package/package.json +18 -18
|
@@ -226,10 +226,87 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
226
226
|
}): SqlControlFamilyInstance;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
type AnyRecord = Readonly<Record<string, unknown>>;
|
|
230
|
+
type MigrationOperationClass = 'additive' | 'widening' | 'destructive';
|
|
231
|
+
interface MigrationPolicy {
|
|
232
|
+
readonly allowedOperationClasses: readonly MigrationOperationClass[];
|
|
233
|
+
}
|
|
234
|
+
interface MigrationPlanOperationStep {
|
|
235
|
+
readonly description: string;
|
|
236
|
+
readonly sql: string;
|
|
237
|
+
readonly meta?: AnyRecord;
|
|
238
|
+
}
|
|
239
|
+
interface MigrationPlanOperationTarget<TTargetDetails> {
|
|
240
|
+
readonly id: string;
|
|
241
|
+
readonly details?: TTargetDetails;
|
|
242
|
+
}
|
|
243
|
+
interface MigrationPlanOperation<TTargetDetails = Record<string, never>> {
|
|
244
|
+
readonly id: string;
|
|
245
|
+
readonly label: string;
|
|
246
|
+
readonly summary?: string;
|
|
247
|
+
readonly operationClass: MigrationOperationClass;
|
|
248
|
+
readonly target: MigrationPlanOperationTarget<TTargetDetails>;
|
|
249
|
+
readonly precheck: readonly MigrationPlanOperationStep[];
|
|
250
|
+
readonly execute: readonly MigrationPlanOperationStep[];
|
|
251
|
+
readonly postcheck: readonly MigrationPlanOperationStep[];
|
|
252
|
+
readonly meta?: AnyRecord;
|
|
253
|
+
}
|
|
254
|
+
interface MigrationPlanContractInfo {
|
|
255
|
+
readonly coreHash: string;
|
|
256
|
+
readonly profileHash?: string;
|
|
257
|
+
}
|
|
258
|
+
interface MigrationPlan<TTargetDetails = Record<string, never>> {
|
|
259
|
+
readonly targetId: string;
|
|
260
|
+
readonly policy: MigrationPolicy;
|
|
261
|
+
readonly contract: MigrationPlanContractInfo;
|
|
262
|
+
readonly operations: readonly MigrationPlanOperation<TTargetDetails>[];
|
|
263
|
+
readonly meta?: AnyRecord;
|
|
264
|
+
}
|
|
265
|
+
type PlannerConflictKind = 'typeMismatch' | 'nullabilityConflict' | 'indexIncompatible' | 'foreignKeyConflict' | 'missingButNonAdditive' | 'extensionMissing' | 'unsupportedOperation';
|
|
266
|
+
interface PlannerConflictLocation {
|
|
267
|
+
readonly table?: string;
|
|
268
|
+
readonly column?: string;
|
|
269
|
+
readonly index?: string;
|
|
270
|
+
readonly constraint?: string;
|
|
271
|
+
readonly extension?: string;
|
|
272
|
+
}
|
|
273
|
+
interface PlannerConflict {
|
|
274
|
+
readonly kind: PlannerConflictKind;
|
|
275
|
+
readonly summary: string;
|
|
276
|
+
readonly why?: string;
|
|
277
|
+
readonly location?: PlannerConflictLocation;
|
|
278
|
+
readonly meta?: AnyRecord;
|
|
279
|
+
}
|
|
280
|
+
interface PlannerSuccessResult<TTargetDetails> {
|
|
281
|
+
readonly kind: 'success';
|
|
282
|
+
readonly plan: MigrationPlan<TTargetDetails>;
|
|
283
|
+
}
|
|
284
|
+
interface PlannerFailureResult {
|
|
285
|
+
readonly kind: 'failure';
|
|
286
|
+
readonly conflicts: readonly PlannerConflict[];
|
|
287
|
+
}
|
|
288
|
+
type PlannerResult<TTargetDetails = Record<string, never>> = PlannerSuccessResult<TTargetDetails> | PlannerFailureResult;
|
|
289
|
+
interface CreateMigrationPlanOptions<TTargetDetails> {
|
|
290
|
+
readonly targetId: string;
|
|
291
|
+
readonly policy: MigrationPolicy;
|
|
292
|
+
readonly contract: MigrationPlanContractInfo;
|
|
293
|
+
readonly operations: readonly MigrationPlanOperation<TTargetDetails>[];
|
|
294
|
+
readonly meta?: AnyRecord;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare function createMigrationPlan<TTargetDetails = Record<string, never>>(options: CreateMigrationPlanOptions<TTargetDetails>): MigrationPlan<TTargetDetails>;
|
|
298
|
+
declare function plannerSuccess<TTargetDetails>(plan: MigrationPlan<TTargetDetails>): PlannerSuccessResult<TTargetDetails>;
|
|
299
|
+
declare function plannerFailure(conflicts: readonly PlannerConflict[]): PlannerFailureResult;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Policy used by `db init`: additive-only operations, no widening/destructive steps.
|
|
303
|
+
*/
|
|
304
|
+
declare const INIT_ADDITIVE_POLICY: MigrationPolicy;
|
|
305
|
+
|
|
229
306
|
/**
|
|
230
307
|
* SQL family descriptor for control plane (CLI/config).
|
|
231
308
|
* Provides the SQL family hook and conversion helpers.
|
|
232
309
|
*/
|
|
233
310
|
declare const _default: SqlFamilyDescriptor;
|
|
234
311
|
|
|
235
|
-
export { _default as default };
|
|
312
|
+
export { type CreateMigrationPlanOptions, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationPlan, type MigrationPlanContractInfo, type MigrationPlanOperation, type MigrationPlanOperationStep, type MigrationPlanOperationTarget, type MigrationPolicy, type PlannerConflict, type PlannerConflictKind, type PlannerConflictLocation, type PlannerFailureResult, type PlannerResult, type PlannerSuccessResult, createMigrationPlan, _default as default, plannerFailure, plannerSuccess };
|
package/dist/exports/control.js
CHANGED
|
@@ -24,9 +24,102 @@ var SqlFamilyDescriptor = class {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
// src/core/migrations/plan-helpers.ts
|
|
28
|
+
var readOnlyEmptyObject = Object.freeze({});
|
|
29
|
+
function cloneRecord(value) {
|
|
30
|
+
if (value === readOnlyEmptyObject) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
return Object.freeze({ ...value });
|
|
34
|
+
}
|
|
35
|
+
function freezeSteps(steps) {
|
|
36
|
+
if (steps.length === 0) {
|
|
37
|
+
return Object.freeze([]);
|
|
38
|
+
}
|
|
39
|
+
return Object.freeze(
|
|
40
|
+
steps.map(
|
|
41
|
+
(step) => Object.freeze({
|
|
42
|
+
description: step.description,
|
|
43
|
+
sql: step.sql,
|
|
44
|
+
...step.meta ? { meta: cloneRecord(step.meta) } : {}
|
|
45
|
+
})
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function freezeTargetDetails(target) {
|
|
50
|
+
return Object.freeze({
|
|
51
|
+
id: target.id,
|
|
52
|
+
...target.details ? { details: target.details } : {}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function freezeOperation(operation) {
|
|
56
|
+
return Object.freeze({
|
|
57
|
+
id: operation.id,
|
|
58
|
+
label: operation.label,
|
|
59
|
+
...operation.summary ? { summary: operation.summary } : {},
|
|
60
|
+
operationClass: operation.operationClass,
|
|
61
|
+
target: freezeTargetDetails(operation.target),
|
|
62
|
+
precheck: freezeSteps(operation.precheck),
|
|
63
|
+
execute: freezeSteps(operation.execute),
|
|
64
|
+
postcheck: freezeSteps(operation.postcheck),
|
|
65
|
+
...operation.meta ? { meta: cloneRecord(operation.meta) } : {}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function freezeOperations(operations) {
|
|
69
|
+
if (operations.length === 0) {
|
|
70
|
+
return Object.freeze([]);
|
|
71
|
+
}
|
|
72
|
+
return Object.freeze(operations.map((operation) => freezeOperation(operation)));
|
|
73
|
+
}
|
|
74
|
+
function normalizePolicy(policy) {
|
|
75
|
+
return Object.freeze({
|
|
76
|
+
allowedOperationClasses: Object.freeze([...policy.allowedOperationClasses])
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function createMigrationPlan(options) {
|
|
80
|
+
return Object.freeze({
|
|
81
|
+
targetId: options.targetId,
|
|
82
|
+
policy: normalizePolicy(options.policy),
|
|
83
|
+
contract: Object.freeze({ ...options.contract }),
|
|
84
|
+
operations: freezeOperations(options.operations),
|
|
85
|
+
...options.meta ? { meta: cloneRecord(options.meta) } : {}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function plannerSuccess(plan) {
|
|
89
|
+
return Object.freeze({
|
|
90
|
+
kind: "success",
|
|
91
|
+
plan
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function plannerFailure(conflicts) {
|
|
95
|
+
return Object.freeze({
|
|
96
|
+
kind: "failure",
|
|
97
|
+
conflicts: Object.freeze(
|
|
98
|
+
conflicts.map(
|
|
99
|
+
(conflict) => Object.freeze({
|
|
100
|
+
kind: conflict.kind,
|
|
101
|
+
summary: conflict.summary,
|
|
102
|
+
...conflict.why ? { why: conflict.why } : {},
|
|
103
|
+
...conflict.location ? { location: Object.freeze({ ...conflict.location }) } : {},
|
|
104
|
+
...conflict.meta ? { meta: cloneRecord(conflict.meta) } : {}
|
|
105
|
+
})
|
|
106
|
+
)
|
|
107
|
+
)
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// src/core/migrations/policies.ts
|
|
112
|
+
var INIT_ADDITIVE_POLICY = Object.freeze({
|
|
113
|
+
allowedOperationClasses: Object.freeze(["additive"])
|
|
114
|
+
});
|
|
115
|
+
|
|
27
116
|
// src/exports/control.ts
|
|
28
117
|
var control_default = new SqlFamilyDescriptor();
|
|
29
118
|
export {
|
|
30
|
-
|
|
119
|
+
INIT_ADDITIVE_POLICY,
|
|
120
|
+
createMigrationPlan,
|
|
121
|
+
control_default as default,
|
|
122
|
+
plannerFailure,
|
|
123
|
+
plannerSuccess
|
|
31
124
|
};
|
|
32
125
|
//# sourceMappingURL=control.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/descriptor.ts","../../src/exports/control.ts"],"sourcesContent":["import type { ExtensionPackManifest } from '@prisma-next/contract/pack-manifest-types';\nimport type {\n ControlAdapterDescriptor,\n ControlDriverDescriptor,\n ControlExtensionDescriptor,\n ControlFamilyDescriptor,\n ControlTargetDescriptor,\n} from '@prisma-next/core-control-plane/types';\nimport { sqlTargetFamilyHook } from '@prisma-next/sql-contract-emitter';\nimport { createSqlFamilyInstance, type SqlControlFamilyInstance } from './instance';\n\n/**\n * SQL family manifest.\n */\nconst sqlFamilyManifest: ExtensionPackManifest = {\n id: 'sql',\n version: '0.0.1',\n};\n\n/**\n * SQL family descriptor implementation.\n * Provides the SQL family hook and factory method.\n */\nexport class SqlFamilyDescriptor\n implements ControlFamilyDescriptor<'sql', SqlControlFamilyInstance>\n{\n readonly kind = 'family' as const;\n readonly id = 'sql';\n readonly familyId = 'sql' as const;\n readonly manifest = sqlFamilyManifest;\n readonly hook = sqlTargetFamilyHook;\n\n create<TTargetId extends string>(options: {\n readonly target: ControlTargetDescriptor<'sql', TTargetId>;\n readonly adapter: ControlAdapterDescriptor<'sql', TTargetId>;\n readonly driver: ControlDriverDescriptor<'sql', TTargetId>;\n readonly extensions: readonly ControlExtensionDescriptor<'sql', TTargetId>[];\n }): SqlControlFamilyInstance {\n return createSqlFamilyInstance({\n target: options.target,\n adapter: options.adapter,\n extensions: options.extensions,\n });\n }\n}\n","import { SqlFamilyDescriptor } from '../core/descriptor';\n\n/**\n * SQL family descriptor for control plane (CLI/config).\n * Provides the SQL family hook and conversion helpers.\n */\nexport default new SqlFamilyDescriptor();\n"],"mappings":";;;;;;AAQA,SAAS,2BAA2B;AAMpC,IAAM,oBAA2C;AAAA,EAC/C,IAAI;AAAA,EACJ,SAAS;AACX;AAMO,IAAM,sBAAN,MAEP;AAAA,EACW,OAAO;AAAA,EACP,KAAK;AAAA,EACL,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EAEhB,OAAiC,SAKJ;AAC3B,WAAO,wBAAwB;AAAA,MAC7B,QAAQ,QAAQ;AAAA,MAChB,SAAS,QAAQ;AAAA,MACjB,YAAY,QAAQ;AAAA,IACtB,CAAC;AAAA,EACH;AACF;;;
|
|
1
|
+
{"version":3,"sources":["../../src/core/descriptor.ts","../../src/core/migrations/plan-helpers.ts","../../src/core/migrations/policies.ts","../../src/exports/control.ts"],"sourcesContent":["import type { ExtensionPackManifest } from '@prisma-next/contract/pack-manifest-types';\nimport type {\n ControlAdapterDescriptor,\n ControlDriverDescriptor,\n ControlExtensionDescriptor,\n ControlFamilyDescriptor,\n ControlTargetDescriptor,\n} from '@prisma-next/core-control-plane/types';\nimport { sqlTargetFamilyHook } from '@prisma-next/sql-contract-emitter';\nimport { createSqlFamilyInstance, type SqlControlFamilyInstance } from './instance';\n\n/**\n * SQL family manifest.\n */\nconst sqlFamilyManifest: ExtensionPackManifest = {\n id: 'sql',\n version: '0.0.1',\n};\n\n/**\n * SQL family descriptor implementation.\n * Provides the SQL family hook and factory method.\n */\nexport class SqlFamilyDescriptor\n implements ControlFamilyDescriptor<'sql', SqlControlFamilyInstance>\n{\n readonly kind = 'family' as const;\n readonly id = 'sql';\n readonly familyId = 'sql' as const;\n readonly manifest = sqlFamilyManifest;\n readonly hook = sqlTargetFamilyHook;\n\n create<TTargetId extends string>(options: {\n readonly target: ControlTargetDescriptor<'sql', TTargetId>;\n readonly adapter: ControlAdapterDescriptor<'sql', TTargetId>;\n readonly driver: ControlDriverDescriptor<'sql', TTargetId>;\n readonly extensions: readonly ControlExtensionDescriptor<'sql', TTargetId>[];\n }): SqlControlFamilyInstance {\n return createSqlFamilyInstance({\n target: options.target,\n adapter: options.adapter,\n extensions: options.extensions,\n });\n }\n}\n","import type {\n AnyRecord,\n CreateMigrationPlanOptions,\n MigrationPlan,\n MigrationPlanOperation,\n MigrationPlanOperationStep,\n MigrationPlanOperationTarget,\n MigrationPolicy,\n PlannerConflict,\n PlannerFailureResult,\n PlannerSuccessResult,\n} from './types';\n\nconst readOnlyEmptyObject: Record<string, never> = Object.freeze({});\n\nfunction cloneRecord<T extends AnyRecord>(value: T): T {\n if (value === readOnlyEmptyObject) {\n return value;\n }\n return Object.freeze({ ...value }) as T;\n}\n\nfunction freezeSteps(\n steps: readonly MigrationPlanOperationStep[],\n): readonly MigrationPlanOperationStep[] {\n if (steps.length === 0) {\n return Object.freeze([]);\n }\n return Object.freeze(\n steps.map((step) =>\n Object.freeze({\n description: step.description,\n sql: step.sql,\n ...(step.meta ? { meta: cloneRecord(step.meta) } : {}),\n }),\n ),\n );\n}\n\nfunction freezeTargetDetails<TTargetDetails>(\n target: MigrationPlanOperationTarget<TTargetDetails>,\n): MigrationPlanOperationTarget<TTargetDetails> {\n return Object.freeze({\n id: target.id,\n ...(target.details ? { details: target.details } : {}),\n });\n}\n\nfunction freezeOperation<TTargetDetails>(\n operation: MigrationPlanOperation<TTargetDetails>,\n): MigrationPlanOperation<TTargetDetails> {\n return Object.freeze({\n id: operation.id,\n label: operation.label,\n ...(operation.summary ? { summary: operation.summary } : {}),\n operationClass: operation.operationClass,\n target: freezeTargetDetails(operation.target),\n precheck: freezeSteps(operation.precheck),\n execute: freezeSteps(operation.execute),\n postcheck: freezeSteps(operation.postcheck),\n ...(operation.meta ? { meta: cloneRecord(operation.meta) } : {}),\n });\n}\n\nfunction freezeOperations<TTargetDetails>(\n operations: readonly MigrationPlanOperation<TTargetDetails>[],\n): readonly MigrationPlanOperation<TTargetDetails>[] {\n if (operations.length === 0) {\n return Object.freeze([]);\n }\n return Object.freeze(operations.map((operation) => freezeOperation(operation)));\n}\n\nfunction normalizePolicy(policy: MigrationPolicy): MigrationPolicy {\n return Object.freeze({\n allowedOperationClasses: Object.freeze([...policy.allowedOperationClasses]),\n });\n}\n\nexport function createMigrationPlan<TTargetDetails = Record<string, never>>(\n options: CreateMigrationPlanOptions<TTargetDetails>,\n): MigrationPlan<TTargetDetails> {\n return Object.freeze({\n targetId: options.targetId,\n policy: normalizePolicy(options.policy),\n contract: Object.freeze({ ...options.contract }),\n operations: freezeOperations(options.operations),\n ...(options.meta ? { meta: cloneRecord(options.meta) } : {}),\n });\n}\n\nexport function plannerSuccess<TTargetDetails>(\n plan: MigrationPlan<TTargetDetails>,\n): PlannerSuccessResult<TTargetDetails> {\n return Object.freeze({\n kind: 'success',\n plan,\n });\n}\n\nexport function plannerFailure(conflicts: readonly PlannerConflict[]): PlannerFailureResult {\n return Object.freeze({\n kind: 'failure' as const,\n conflicts: Object.freeze(\n conflicts.map((conflict) =>\n Object.freeze({\n kind: conflict.kind,\n summary: conflict.summary,\n ...(conflict.why ? { why: conflict.why } : {}),\n ...(conflict.location ? { location: Object.freeze({ ...conflict.location }) } : {}),\n ...(conflict.meta ? { meta: cloneRecord(conflict.meta) } : {}),\n }),\n ),\n ),\n });\n}\n","import type { MigrationPolicy } from './types';\n\n/**\n * Policy used by `db init`: additive-only operations, no widening/destructive steps.\n */\nexport const INIT_ADDITIVE_POLICY: MigrationPolicy = Object.freeze({\n allowedOperationClasses: Object.freeze(['additive'] as const),\n});\n","import { SqlFamilyDescriptor } from '../core/descriptor';\n\nexport {\n createMigrationPlan,\n plannerFailure,\n plannerSuccess,\n} from '../core/migrations/plan-helpers';\nexport { INIT_ADDITIVE_POLICY } from '../core/migrations/policies';\nexport type {\n CreateMigrationPlanOptions,\n MigrationOperationClass,\n MigrationPlan,\n MigrationPlanContractInfo,\n MigrationPlanOperation,\n MigrationPlanOperationStep,\n MigrationPlanOperationTarget,\n MigrationPolicy,\n PlannerConflict,\n PlannerConflictKind,\n PlannerConflictLocation,\n PlannerFailureResult,\n PlannerResult,\n PlannerSuccessResult,\n} from '../core/migrations/types';\n\n/**\n * SQL family descriptor for control plane (CLI/config).\n * Provides the SQL family hook and conversion helpers.\n */\nexport default new SqlFamilyDescriptor();\n"],"mappings":";;;;;;AAQA,SAAS,2BAA2B;AAMpC,IAAM,oBAA2C;AAAA,EAC/C,IAAI;AAAA,EACJ,SAAS;AACX;AAMO,IAAM,sBAAN,MAEP;AAAA,EACW,OAAO;AAAA,EACP,KAAK;AAAA,EACL,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EAEhB,OAAiC,SAKJ;AAC3B,WAAO,wBAAwB;AAAA,MAC7B,QAAQ,QAAQ;AAAA,MAChB,SAAS,QAAQ;AAAA,MACjB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ACjE,yBAAyB,OAAO,OAAO,CAAC,UAAU,CAAU;AAC9D,CAAC;;;ACsBD,IAAO,kBAAQ,IAAI,oBAAoB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/family-sql",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "SQL family descriptor for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.0.0",
|
|
9
|
-
"@prisma-next/cli": "0.1.0-dev.
|
|
10
|
-
"@prisma-next/contract": "0.1.0-dev.
|
|
11
|
-
"@prisma-next/
|
|
12
|
-
"@prisma-next/
|
|
13
|
-
"@prisma-next/
|
|
14
|
-
"@prisma-next/
|
|
15
|
-
"@prisma-next/sql-contract
|
|
16
|
-
"@prisma-next/sql-
|
|
17
|
-
"@prisma-next/sql-
|
|
18
|
-
"@prisma-next/sql-
|
|
19
|
-
"@prisma-next/sql-
|
|
20
|
-
"@prisma-next/
|
|
21
|
-
"@prisma-next/
|
|
9
|
+
"@prisma-next/cli": "0.1.0-dev.12",
|
|
10
|
+
"@prisma-next/contract": "0.1.0-dev.12",
|
|
11
|
+
"@prisma-next/operations": "0.1.0-dev.12",
|
|
12
|
+
"@prisma-next/runtime-executor": "0.1.0-dev.12",
|
|
13
|
+
"@prisma-next/sql-contract-emitter": "0.1.0-dev.12",
|
|
14
|
+
"@prisma-next/sql-contract-ts": "0.1.0-dev.12",
|
|
15
|
+
"@prisma-next/sql-contract": "0.1.0-dev.12",
|
|
16
|
+
"@prisma-next/sql-operations": "0.1.0-dev.12",
|
|
17
|
+
"@prisma-next/sql-relational-core": "0.1.0-dev.12",
|
|
18
|
+
"@prisma-next/sql-runtime": "0.1.0-dev.12",
|
|
19
|
+
"@prisma-next/sql-schema-ir": "0.1.0-dev.12",
|
|
20
|
+
"@prisma-next/core-control-plane": "0.1.0-dev.12",
|
|
21
|
+
"@prisma-next/core-execution-plane": "0.1.0-dev.12"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tsup": "^8.3.0",
|
|
25
25
|
"typescript": "^5.9.3",
|
|
26
26
|
"vite-tsconfig-paths": "^5.1.4",
|
|
27
27
|
"vitest": "^2.1.1",
|
|
28
|
-
"@prisma-next/driver-postgres": "0.1.0-dev.
|
|
29
|
-
"@prisma-next/target-postgres": "0.1.0-dev.
|
|
28
|
+
"@prisma-next/driver-postgres": "0.1.0-dev.12",
|
|
29
|
+
"@prisma-next/target-postgres": "0.1.0-dev.12",
|
|
30
30
|
"@prisma-next/test-utils": "0.0.1"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsup --config tsup.config.ts",
|
|
59
|
-
"test": "vitest run
|
|
60
|
-
"test:coverage": "vitest run --coverage
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:coverage": "vitest run --coverage",
|
|
61
61
|
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
62
62
|
"lint": "biome check . --config-path ../../../../biome.json --error-on-warnings",
|
|
63
63
|
"lint:fix": "biome check --write . --config-path ../../../biome.json",
|