Skip to content

Commit

Permalink
Fix postinstall and type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Letsmoe committed Nov 17, 2023
1 parent d75ad03 commit 9d13bf2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
9 changes: 0 additions & 9 deletions dist/index.d.ts

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@continuum-ai/database",
"version": "0.0.1",
"module": "./src/index.ts",
"types": "./dist/index.d.ts",
"types": "./src/index.d.ts",
"type": "module",
"scripts": {
"db:introspect": "dotenv -- prisma introspect",
"db:generate": "dotenv -- prisma generate"
"db:generate": "dotenv -- prisma generate",
"postinstall": "bunx prisma generate"
},
"postinstall": "tsc && cp src/index.d.ts dist/index.d.ts && bunx prisma generate",
"peerDependencies": {
"typescript": "^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

generator client {
provider = "prisma-client-js"
binaryTargets = ["native"]
binaryTargets = ["native", "debian-openssl-1.1.x"]
}

datasource db {
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PrismaClient } from "@prisma/client";

export function createContext(ctx: any): Promise<Context>;

export * from ".prisma/client/index.d";
export * from "@prisma/client";

export interface Context {
prisma: PrismaClient;
Expand Down

0 comments on commit 9d13bf2

Please sign in to comment.