From c1569c0879efdc427bcbbed11010ef53fe79020c Mon Sep 17 00:00:00 2001 From: AyrisAI Date: Fri, 21 Aug 2026 12:11:26 +0300 Subject: [PATCH] chore: migrate monorepo configuration strictly to pnpm v11, clean up npm leftovers and update workspace config --- .gitignore | 8 ++++++++ .npmrc | 3 +++ package.json | 11 +++-------- pnpm-workspace.yaml | 7 ++++++- 4 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 .npmrc diff --git a/.gitignore b/.gitignore index b0cfbfd..a9d6bc4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,10 @@ build/ .expo/ .turbo/ *.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* *.tsbuildinfo .env .env.local @@ -15,3 +19,7 @@ supabase/.temp/ coverage/ *.ipa *.apk + +# Lockfile protections (monorepo strictly uses pnpm-lock.yaml) +package-lock.json +yarn.lock diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..1d2dff6 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +auto-install-peers=true +strict-peer-dependencies=false +enable-pre-post-scripts=true diff --git a/package.json b/package.json index 0372273..fdf0a93 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "private": true, "version": "0.0.1", "type": "module", + "packageManager": "pnpm@11.22.0", "engines": { "node": ">=20" }, @@ -12,13 +13,7 @@ "dev:mobile": "pnpm --filter @menulio/mobile start", "build": "pnpm -r build", "lint": "pnpm -r lint", - "typecheck": "pnpm -r typecheck" - }, - "pnpm": { - "onlyBuiltDependencies": [ - "@swc/core", - "esbuild", - "sharp" - ] + "typecheck": "pnpm -r typecheck", + "clean": "rm -rf node_modules apps/*/node_modules packages/*/node_modules apps/*/.next apps/*/.expo apps/*/dist" } } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4036e2f..7e337a0 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,7 +1,12 @@ packages: - "apps/*" - "packages/*" + allowBuilds: - core-js: set this to true or false esbuild: true sharp: true + +onlyBuiltDependencies: + - "@swc/core" + - "esbuild" + - "sharp"