Skip to content

Commit fc5e394

Browse files
authored
chore: make sure init installs prisma v4 (#580)
1 parent d65307b commit fc5e394

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/schema/src/cli/cli-util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export async function initProject(
5959
}
6060
}
6161

62-
ensurePackage('prisma', true, packageManager, 'latest', projectPath);
63-
ensurePackage('@prisma/client', false, packageManager, 'latest', projectPath);
62+
ensurePackage('prisma', true, packageManager, '^4.0.0', projectPath);
63+
ensurePackage('@prisma/client', false, packageManager, '^4.0.0', projectPath);
6464

6565
tag = tag ?? getVersion();
6666
installPackage('zenstack', true, packageManager, tag, projectPath);

tests/integration/tests/cli/plugins.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('CLI Plugins Tests', () => {
7373
'swr',
7474
'@tanstack/react-query',
7575
'@trpc/server',
76-
'@prisma/client',
76+
'@prisma/client@^4.0.0',
7777
`${path.join(__dirname, '../../../../.build/zenstackhq-language-' + ver + '.tgz')}`,
7878
`${path.join(__dirname, '../../../../.build/zenstackhq-sdk-' + ver + '.tgz')}`,
7979
`${path.join(__dirname, '../../../../.build/zenstackhq-runtime-' + ver + '.tgz')}`,
@@ -83,7 +83,7 @@ describe('CLI Plugins Tests', () => {
8383
const devDepPkgs = [
8484
'typescript',
8585
'@types/react',
86-
'prisma',
86+
'prisma@^4.0.0',
8787
`${path.join(__dirname, '../../../../.build/zenstack-' + ver + '.tgz')}`,
8888
`${path.join(__dirname, '../../../../.build/zenstackhq-tanstack-query-' + ver + '.tgz')}`,
8989
`${path.join(__dirname, '../../../../.build/zenstackhq-swr-' + ver + '.tgz')}`,

0 commit comments

Comments
 (0)