From ff78cfdb16ef91d115cd5f73f5142c5419b2a52c Mon Sep 17 00:00:00 2001 From: its_Aryan Date: Wed, 25 Sep 2024 22:57:31 +0530 Subject: [PATCH 1/2] modified package.json to add only pnpm functionality --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index bfc7366f..4f7c7e1e 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ }, "scripts": { "dev": "turbo run dev", + "preinstall": "if [[ \"$npm_config_user_agent\" != *pnpm* ]]; then echo 'This project uses pnpm. Please run using pnpm.'; exit 1; fi", "dev:api": "turbo run dev --filter=api", "dev:web": "turbo run dev --filter=web", "dev:platform": "turbo run dev --filter=platform", From b9d1653e961ccf0379084cb2ef931e8f3fcbb0e4 Mon Sep 17 00:00:00 2001 From: itsaryan72 Date: Mon, 30 Sep 2024 15:16:06 +0530 Subject: [PATCH 2/2] modified existing preinstall script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index bfc7366f..0fe9a7b2 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,7 @@ ] }, "scripts": { + "preinstall": "node -e \"if (!process.env.npm_execpath || !process.env.npm_execpath.includes('pnpm')) { console.error('Error: Only pnpm is allowed. Please use pnpm instead.'); process.exit(1); }\"", "dev": "turbo run dev", "dev:api": "turbo run dev --filter=api", "dev:web": "turbo run dev --filter=web",