Skip to content

Commit

Permalink
yarn/update-deps-and-audit (#11)
Browse files Browse the repository at this point in the history
* yarn/update-deps-and-audit

* node/v19.x

* node/added-engine-and-supported-versions
  • Loading branch information
Nicolae-Rares Ailincai authored Feb 23, 2023
1 parent acccfde commit c0287b6
Show file tree
Hide file tree
Showing 6 changed files with 902 additions and 589 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x, 19.x]

steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ A CLI that adds @map and @@map based on a json
- The prisma schema is formatted by the `@prisma/internals` after generation
- The cli does not modify the current schema and generates a new one with the information from the current one

### Node Versions

| Version | Supported |
| -------- | --------- |
| ^14.15.0 ||
| 15.x ||
| ^16.10.0 ||
| 17.x ||
| 18.x ||
| 19.x ||

### Getting Started

If the prisma schema is often pulled you can use the cli like
Expand Down
35 changes: 21 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "prisma-mapper",
"version": "1.3.1",
"version": "1.3.2",
"description": "A CLI that adds @Map, @@Map, @updatedAt based on a json or camel case for the prisma schema",
"main": "bin/index.js",
"preferGlobal": true,
"bin": {
"prisma-mapper": "bin/commands.js"
},
"engines": {
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
},
"types": "bin",
"files": [
"bin/*"
Expand Down Expand Up @@ -38,26 +41,30 @@
"test": "jest"
},
"dependencies": {
"@prisma/internals": "^4.6.1",
"@prisma/internals": "^4.10.1",
"colors": "^1.4.0",
"commander": "^9.4.1",
"commander": "^10.0.0",
"inquirer": "^9.1.4"
},
"resolutions": {
"undici": "^5.19.1",
"json5": "^1.0.2"
},
"devDependencies": {
"@types/inquirer": "^9.0.3",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"eslint": "^8.28.0",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.1",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"eslint": "^8.34.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.5.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-security": "^1.5.0",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"eslint-plugin-security": "^1.7.1",
"jest": "^29.4.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "4.9.3"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion src/__tests__/expected.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
generator client {
provider = "mock"
previewFeatures = ["interactiveTransactions"]
previewFeatures = ["metrics"]
binaryTargets = [env("mock"), "mock"]
engineType = "mock"
output = env("mock")
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/mock.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
generator client {
provider = "mock"
previewFeatures = ["interactiveTransactions"]
previewFeatures = ["metrics"]
binaryTargets = [env("mock"), "mock"]
engineType = "mock"
output = env("mock")
Expand Down
Loading

0 comments on commit c0287b6

Please sign in to comment.