Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
knaus94 committed Jan 14, 2024
1 parent fa349f6 commit 6495df0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 21 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knaus94/prisma-extension-cache-manager",
"version": "0.0.1",
"version": "1.0.1",
"repository": {
"type": "git",
"url": "https://github.com/knaus94/prisma-extension-cache-manager.git"
Expand Down Expand Up @@ -37,15 +37,13 @@
"README.md"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"build": "tsc -p tsconfig.build.json",
"format": "prettier --write .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@types/node": "^20.10.6",
"prettier": "^3.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default ({ cache }: PrismaRedisCacheConfig) => {
return Prisma.defineExtension({
name: "prisma-extension-cache-manager",
client: {
cache: { store: cache },
$cache: cache,
},
model: {
$allModels: {} as ModelExtension,
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"dist",
"**/*spec.ts"
],
"files": [
"src/index.ts"
]
}
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"moduleResolution": "Node",
"noImplicitReturns": true,
"noUnusedLocals": true,
"declaration": true,
"noUnusedParameters": true,
"outDir": "./dist",
"paths": {
"~/*": ["./src/*"]
},
Expand Down
16 changes: 0 additions & 16 deletions tsup.config.ts

This file was deleted.

0 comments on commit 6495df0

Please sign in to comment.