diff --git a/.changeset/lucky-bottles-breathe.md b/.changeset/lucky-bottles-breathe.md new file mode 100644 index 0000000000..2e22249957 --- /dev/null +++ b/.changeset/lucky-bottles-breathe.md @@ -0,0 +1,5 @@ +--- +"blitz": patch +--- + +Update prisma-ast dependency to prevent Blitz generator from failing when Prisma keywords are used as model names diff --git a/packages/blitz/package.json b/packages/blitz/package.json index 8e15eb917d..a8604c953a 100644 --- a/packages/blitz/package.json +++ b/packages/blitz/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@blitzjs/generator": "2.1.2", - "@mrleebo/prisma-ast": "0.2.6", + "@mrleebo/prisma-ast": "0.4.1", "@types/global-agent": "2.1.1", "arg": "5.0.1", "ast-types": "0.14.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 55425a3270..7b358fd8bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1304,8 +1304,8 @@ importers: specifier: 2.1.2 version: link:../generator "@mrleebo/prisma-ast": - specifier: 0.2.6 - version: 0.2.6 + specifier: 0.4.1 + version: 0.4.1 "@types/global-agent": specifier: 2.1.1 version: 2.1.1 @@ -6049,16 +6049,6 @@ packages: read-yaml-file: 1.1.0 dev: false - /@mrleebo/prisma-ast@0.2.6: - resolution: - { - integrity: sha512-Df0gAGmws3sxNMmLviTarBL9znf84QVlVhlx4EPgArrnaVBy8tNQZAI9aSTJHzH0JGj9BVGa0Qz1g3hPt12Kxw==, - } - engines: {node: ">=10"} - dependencies: - chevrotain: 9.1.0 - dev: false - /@mrleebo/prisma-ast@0.4.1: resolution: {