Skip to content

Commit

Permalink
Merge pull request #10 from prisma/fix/esm-build
Browse files Browse the repository at this point in the history
fix: Fix esm, migrate to tsup
  • Loading branch information
SevInf authored Sep 6, 2023
2 parents ca7440e + 200e76f commit 07d99ad
Show file tree
Hide file tree
Showing 11 changed files with 282 additions and 103 deletions.
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@prisma/extension-read-replicas",
"version": "0.2.0",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.mjs",
"types": "types/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "types/index.d.ts",
"homepage": "https://github.com/prisma/extension-read-replicas",
"repository": {
"type": "git",
Expand All @@ -17,17 +17,17 @@
"exports": {
".": {
"require": {
"default": "./dist/cjs/index.js",
"types": "./types/cjs/index.d.ts"
"default": "./dist/index.js",
"types": "./types/index.d.ts"
},
"import": {
"default": "./dist/esm/index.mjs",
"types": "./types/mjs/index.d.ts"
"default": "./dist/index.mjs",
"types": "./types/index.d.mts"
}
}
},
"scripts": {
"build": "node -r esbuild-register scripts/build.ts",
"build": "tsup src/index.ts --format=cjs,esm --dts",
"demo": "node -r esbuild-register demo/index.ts",
"lint": "eslint . && prettier -c .",
"prepare": "husky install",
Expand All @@ -38,8 +38,11 @@
"keywords": [],
"author": "",
"license": "Apache-2.0",
"peerDependencies": {
"@prisma/client": "^5.2.0"
},
"devDependencies": {
"@prisma/client": "5.2.0-dev.72",
"@prisma/client": "5.2.0",
"@swc/core": "^1.3.73",
"@swc/jest": "^0.2.27",
"@types/debug": "^4.1.8",
Expand All @@ -57,10 +60,8 @@
"jest": "^29.6.2",
"lint-staged": "^13.2.3",
"prettier": "^3.0.0",
"prisma": "5.2.0-dev.72",
"prisma": "5.2.0",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
},
"dependencies": {
"debug": "^4.3.4"
}
}
Loading

0 comments on commit 07d99ad

Please sign in to comment.