Skip to content

Commit 50e16b6

Browse files
committed
fix package.json and type export
1 parent 09b22fc commit 50e16b6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/runtime/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"default": "./model-meta.js"
7575
},
7676
"./models": {
77-
"types": "./models.d.ts"
77+
"types": "./models.d.ts",
78+
"default": "./models.js"
7879
},
7980
"./zod-utils": {
8081
"types": "./zod-utils.d.ts",

packages/runtime/res/models.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type * from '.zenstack/models';
1+
export * from '.zenstack/models';

packages/schema/src/plugins/enhancer/enhance/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class EnhancerGenerator {
122122
// reexport PrismaClient types (original or fixed)
123123
const modelsDts = this.project.createSourceFile(
124124
path.join(this.outDir, 'models.d.ts'),
125-
`export type * from '${resultPrismaTypeImport}';`,
125+
`export * from '${resultPrismaTypeImport}';`,
126126
{ overwrite: true }
127127
);
128128
await modelsDts.save();

0 commit comments

Comments
 (0)