From 0473020555440f2109e29e03238436d78b8975e0 Mon Sep 17 00:00:00 2001 From: Isuru Maldeniya Date: Tue, 4 Oct 2022 16:00:33 +0530 Subject: [PATCH] update prisma-ast version in blitz generator package (#3882) Co-authored-by: Isuru Maldeniya Co-authored-by: beerose --- .changeset/blue-flowers-peel.md | 5 +++++ packages/generator/package.json | 2 +- pnpm-lock.yaml | 18 ++++++++++++++---- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .changeset/blue-flowers-peel.md diff --git a/.changeset/blue-flowers-peel.md b/.changeset/blue-flowers-peel.md new file mode 100644 index 0000000000..47c0a8eb28 --- /dev/null +++ b/.changeset/blue-flowers-peel.md @@ -0,0 +1,5 @@ +--- +"@blitzjs/generator": patch +--- + +Update prisma-ast dependency to prevent Blitz generator from failing when Prisma keywords are used as model names diff --git a/packages/generator/package.json b/packages/generator/package.json index 83e3ebf52d..bf9bd08e91 100644 --- a/packages/generator/package.json +++ b/packages/generator/package.json @@ -24,7 +24,7 @@ "@babel/plugin-transform-typescript": "7.12.1", "@babel/preset-env": "7.12.10", "@babel/types": "7.12.10", - "@mrleebo/prisma-ast": "0.2.6", + "@mrleebo/prisma-ast": "0.4.1", "chalk": "^4.1.0", "console-table-printer": "2.10.0", "cross-spawn": "7.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76527df6f5..0213b951f1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1038,7 +1038,7 @@ importers: "@babel/types": 7.12.10 "@blitzjs/config": 2.0.0-beta.4 "@juanm04/cpx": 2.0.1 - "@mrleebo/prisma-ast": 0.2.6 + "@mrleebo/prisma-ast": 0.4.1 "@types/babel__core": 7.1.19 "@types/diff": 5.0.2 "@types/fs-extra": 9.0.13 @@ -1083,7 +1083,7 @@ importers: "@babel/plugin-transform-typescript": 7.12.1_ps3yxa7qdojvlda5ukda3zlwie "@babel/preset-env": 7.12.10_ps3yxa7qdojvlda5ukda3zlwie "@babel/types": 7.12.10 - "@mrleebo/prisma-ast": 0.2.6 + "@mrleebo/prisma-ast": 0.4.1 chalk: 4.1.2 console-table-printer: 2.10.0 cross-spawn: 7.0.3 @@ -4431,6 +4431,16 @@ packages: chevrotain: 9.1.0 dev: false + /@mrleebo/prisma-ast/0.4.1: + resolution: + { + integrity: sha512-vk1JBunTocQ8xaVqjgVnDVZ63d8Vm/HpOrFXATsKZI5ufC6ZG7FmRtWwyljLXHzW9C/pLp3kJAKc24oSPOYXgw==, + } + engines: {node: ">=12"} + dependencies: + chevrotain: 9.1.0 + dev: false + /@mrmlnc/readdir-enhanced/2.2.1: resolution: { @@ -12595,7 +12605,7 @@ packages: pretty-format: 27.5.1 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.7.0_typescript@4.6.3 + ts-node: 10.7.0_fxg3r7oju3tntkxsvleuiot4fa transitivePeerDependencies: - bufferutil - canvas @@ -18136,7 +18146,6 @@ packages: typescript: 4.6.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - dev: false /ts-node/10.7.0_typescript@4.6.3: resolution: @@ -18169,6 +18178,7 @@ packages: typescript: 4.6.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 + dev: false /ts-node/10.9.1_kakyiqi62sfonxvjmz3ft5vt7y: resolution: