@bungres/kit 1.0.0 → 1.1.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.
@@ -1,9 +1,24 @@
1
1
  import { type TableConfig } from "@bungres/orm";
2
- export interface SchemaEntry {
2
+ export interface TableSchemaEntry {
3
+ type: "table";
3
4
  exportName: string;
4
5
  config: TableConfig;
5
6
  table: any;
6
7
  filePath: string;
7
8
  }
9
+ export interface EnumSchemaEntry {
10
+ type: "enum";
11
+ exportName: string;
12
+ enumName: string;
13
+ enumValues: string[];
14
+ filePath: string;
15
+ }
16
+ export interface ViewSchemaEntry {
17
+ type: "view";
18
+ exportName: string;
19
+ config: any;
20
+ filePath: string;
21
+ }
22
+ export type SchemaEntry = TableSchemaEntry | EnumSchemaEntry | ViewSchemaEntry;
8
23
  export declare function loadSchemas(patterns: string | string[], cwd?: string): Promise<SchemaEntry[]>;
9
24
  //# sourceMappingURL=schema-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-loader.d.ts","sourceRoot":"","sources":["../src/schema-loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAMnE,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,GAAG,SAAgB,GAClB,OAAO,CAAC,WAAW,EAAE,CAAC,CAwBxB"}
1
+ {"version":3,"file":"schema-loader.d.ts","sourceRoot":"","sources":["../src/schema-loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAMnE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,eAAe,GAAG,eAAe,CAAC;AAE/E,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,GAAG,SAAgB,GAClB,OAAO,CAAC,WAAW,EAAE,CAAC,CAwCxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bungres/kit",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI toolkit for @bungres/orm — migrate, push, generate, pull",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,9 +15,10 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "exports": {
17
17
  ".": {
18
- "bun": "./src/index.ts",
18
+ "types": "./dist/index.d.ts",
19
19
  "import": "./dist/index.js",
20
- "types": "./dist/index.d.ts"
20
+ "require": "./dist/index.js",
21
+ "default": "./dist/index.js"
21
22
  }
22
23
  },
23
24
  "files": [