@vibeorm/generator 2.1.1 → 2.2.0
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/emit-dts.d.ts.map +1 -1
- package/dist/emit-module.d.ts +11 -0
- package/dist/emit-module.d.ts.map +1 -0
- package/dist/generate.d.ts +3 -1
- package/dist/generate.d.ts.map +1 -1
- package/dist/index.js +203 -135
- package/dist/index.js.map +10 -9
- package/dist/schema-view.d.ts.map +1 -1
- package/dist/type-names.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/emit-dts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-dts.d.ts","sourceRoot":"","sources":["../src/emit-dts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAyC,MAAM,iBAAiB,CAAC;AAGpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAgD,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"emit-dts.d.ts","sourceRoot":"","sources":["../src/emit-dts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAyC,MAAM,iBAAiB,CAAC;AAGpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAgD,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAgXjG;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,MAAM,CAejE;AAgyDD,2DAA2D;AAC3D,wBAAgB,OAAO,CAAC,MAAM,EAAE;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;CAC7C,GAAG,MAAM,CAoGT"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DatabaseModuleOptions } from "@vibeorm/schema";
|
|
2
|
+
import type { SchemaView } from "./schema-view.ts";
|
|
3
|
+
/** Emit a separate package entry using the ordinary generated delegate declarations. */
|
|
4
|
+
export declare function emitDatabaseModule(params: {
|
|
5
|
+
view: SchemaView;
|
|
6
|
+
module: DatabaseModuleOptions;
|
|
7
|
+
}): readonly {
|
|
8
|
+
name: string;
|
|
9
|
+
content: string;
|
|
10
|
+
}[];
|
|
11
|
+
//# sourceMappingURL=emit-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emit-module.d.ts","sourceRoot":"","sources":["../src/emit-module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA0B,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA6BnD,wFAAwF;AACxF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,qBAAqB,CAAA;CAAE,GAAG,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,CAiB5I"}
|
package/dist/generate.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* extensions are sorted by name, object keys are serialized sorted, and every
|
|
8
8
|
* emitter iterates deterministically.
|
|
9
9
|
*/
|
|
10
|
-
import type { ComputedConfig, SchemaIR, VibeExtension } from "@vibeorm/schema";
|
|
10
|
+
import type { DatabaseModuleOptions, ComputedConfig, SchemaIR, VibeExtension } from "@vibeorm/schema";
|
|
11
11
|
/** What `generateClient` wrote. */
|
|
12
12
|
export type GenerateResult = {
|
|
13
13
|
/** Paths of the written files (outDir-joined, in emission order). */
|
|
@@ -21,6 +21,8 @@ export type GenerateResult = {
|
|
|
21
21
|
export declare function generateClient(params: {
|
|
22
22
|
schema: SchemaIR;
|
|
23
23
|
outDir: string;
|
|
24
|
+
/** Optional package-owned module entry, in addition to the ordinary client. */
|
|
25
|
+
module?: DatabaseModuleOptions;
|
|
24
26
|
/** Configured extension instances — their surfaces bake into the client (D9). */
|
|
25
27
|
extensions?: readonly VibeExtension[];
|
|
26
28
|
/** Computed-field config — types bake into the .d.ts, the manifest into index.js. */
|
package/dist/generate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAyB,QAAQ,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAM7H,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG;IAC3B,qEAAqE;IACrE,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAOF;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,iFAAiF;IACjF,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACtC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,GAAG,OAAO,CAAC,cAAc,CAAC,CA6B1B"}
|