Skip to content

Commit

Permalink
CJS support (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjkb authored Aug 28, 2023
1 parent c4a90d6 commit 0e5f8a6
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-falcons-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"prisma-extension-bark": minor
---

CJS support
1 change: 1 addition & 0 deletions packages/prisma-extension-bark/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.env
.env.*
!.env.example
dist
19 changes: 13 additions & 6 deletions packages/prisma-extension-bark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,44 @@
"description": "A materialized path extension for Prisma",
"license": "MIT",
"bugs": {
"url": "https://github.com/adamjkb/bark/issues"
"url": "https://github.com/adamjkb/bark/issues"
},
"homepage": "https://prisma-extension-bark.gitbook.io/",
"repository": {
"type": "git",
"type": "git",
"url": "https://github.com/adamjkb/bark",
"directory": "packages/prisma-extension-bark"
},
"author": {
"name": "Adam Jakab",
"name": "Adam Jakab",
"url": "https://adamjkb.com"
},
"keywords": [
"prisma",
"prisma",
"prisma-client",
"prisma-extension",
"materialized-path"
],
"type": "module",
"module": "src/index.js",
"main": "dist/index.cjs",
"files": [
"src",
"types"
"types",
"dist"
],
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./src/index.js"
"import": "./src/index.js",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "esbuild ./src/index.js --bundle --format=cjs --outfile=dist/index.cjs --platform=node --external:@prisma/client",
"prepublishOnly": "pnpm build",
"test": "vitest",
"prisma:generate": "pnpx prisma generate --schema=./test/setup/schema.prisma",
"lint:fix": "eslint --ignore-path .gitignore . --fix",
Expand All @@ -45,6 +51,7 @@
"@prisma/client": ">=5.0.0"
},
"devDependencies": {
"esbuild": "^0.19.2",
"eslint": "^8.45.0",
"prisma": "^5.0.0",
"typescript": "^5.1.6",
Expand Down
Loading

0 comments on commit 0e5f8a6

Please sign in to comment.