Skip to content

Commit

Permalink
chore: update dependencies and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Nov 29, 2024
1 parent 957892b commit 145f723
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 55 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma-json-types-generator",
"version": "3.1.1",
"version": "3.2.0",
"description": "Changes JsonValues to your custom typescript type",
"keywords": ["prisma", "prisma2", "generator", "json"],
"homepage": "https://arthur.run/prisma-json-types-generator",
Expand Down Expand Up @@ -28,25 +28,24 @@
"test": "sh ./scripts/test.sh"
},
"dependencies": {
"@prisma/generator-helper": "5.22.0",
"@prisma/generator-helper": "6.0.0",
"tslib": "2.8.1"
},
"devDependencies": {
"@arthurfiorette/biomejs-config": "^1.0.5",
"@arthurfiorette/biomejs-config": "^1.0.6",
"@biomejs/biome": "1.9.4",
"@prisma/client": "5.22.0",
"@types/node": "22.9.3",
"prettier": "3.3.3",
"prisma": "^5.20.0",
"source-map-support": "^0.5.21",
"tsd": "^0.31.2",
"@prisma/client": "6.0.0",
"@types/node": "22.10.1",
"prettier": "3.4.1",
"source-map-support": "0.5.21",
"tsd": "0.31.2",
"typescript": "5.7.2"
},
"peerDependencies": {
"prisma": "^5.20",
"typescript": "^5.6.2"
"prisma": "^5.20||^6.0",
"typescript": "^5.7.2"
},
"packageManager": "pnpm@9.11.0",
"packageManager": "pnpm@9.14.4",
"engines": {
"node": ">=14.0"
}
Expand Down
75 changes: 40 additions & 35 deletions pnpm-lock.yaml

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

4 changes: 0 additions & 4 deletions src/helpers/find-signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ export function findNewSignature(

// removes skip from the search
if (hasSkip !== -1) {
console.log({
hasSkip,
signature,model,PRISMA_SKIP
})
signature = (
signature.slice(0, hasSkip) + signature.slice(hasSkip + PRISMA_SKIP.length)
).trim();
Expand Down
2 changes: 1 addition & 1 deletion src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const PRISMA_NAMESPACE_NAME = 'Prisma';
export const NAMESPACE_PATH = path.resolve(__dirname, '../../assets/namespace.d.ts');

/** https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types/null-and-undefined#strict-undefined-checks-preview-feature */
export const PRISMA_SKIP = '| $Types.Skip'
export const PRISMA_SKIP = '| $Types.Skip';
4 changes: 1 addition & 3 deletions test/types/skip.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ expectAssignable<Prisma.XOR<Prisma.ModelCreateInput, Prisma.ModelUncheckedCreate
list: [3]
});

expectNotAssignable<
Prisma.XOR<Prisma.ModelCreateInput, Prisma.ModelUncheckedCreateInput>
>({
expectNotAssignable<Prisma.XOR<Prisma.ModelCreateInput, Prisma.ModelUncheckedCreateInput>>({
simple: 1,
list: [3]
});
Expand Down

0 comments on commit 145f723

Please sign in to comment.