Skip to content

Commit

Permalink
feat: Change Mongo SDK to use Prisma (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister authored Jun 11, 2023
1 parent 5883032 commit 6749da9
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 229 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
.DS_Store
dist/*
dist/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.iml
.github
2 changes: 2 additions & 0 deletions bin/database-url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../dist/cjs/src/cmd-database-url.js');
221 changes: 58 additions & 163 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"bugs": {
"url": "https://github.com/kapetacom/sdk-nodejs-nosql-mongodb/issues"
},
"bin": {
"kap-mongodb-url": "./bin/database-url"
},
"scripts": {
"clean": "rm -rf ./dist",
"build:esm": "tsc --module esnext --outDir ./dist/esm && echo '{\"type\":\"module\"}' > ./dist/esm/package.json",
Expand Down Expand Up @@ -70,16 +73,17 @@
]
},
"dependencies": {
"mongodb": "5.6.0"
"@prisma/client": "^4.15.0",
"prisma": "^4.15.0"
},
"peerDependencies": {
"@kapeta/sdk-config": "<2"
},
"devDependencies": {
"@kapeta/sdk-config": "<2",
"@types/mongodb": "4.0.7",
"@kapeta/eslint-config": "^0.6.0",
"@kapeta/prettier-config": "^0.6.0",
"@kapeta/sdk-config": "<2",
"@types/node": "^20.3.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.8"
Expand Down
Loading

0 comments on commit 6749da9

Please sign in to comment.