The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: migrate repo to pnpm v11 (#48033)
Ivan Vasilov24ce0ba5f876
diff --git a/.npmrc b/.npmrcindex 19c081e2d4f..41583e36ca8 100644--- a/.npmrc+++ b/.npmrc@@ -1,3 +1 @@-engine-strict=true-update-notifier=false@jsr:registry=https://npm.jsr.iodiff --git a/apps/design-system/package.json b/apps/design-system/package.jsonindex 9636c6b1dd6..d1ffddf6503 100644--- a/apps/design-system/package.json+++ b/apps/design-system/package.json@@ -13,7 +13,7 @@"start": "next start","lint": "eslint .","content:build": "contentlayer2 build",- "clean": "rimraf node_modules .next .turbo",+ "clean": "rimraf .next .turbo tsconfig.tsbuildinfo","typecheck": "contentlayer2 build && tsc --noEmit -p tsconfig.json"},"dependencies": {diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 704b3a23ccc..87f158579da 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -13,7 +13,7 @@"build:markdown": "pnpm build:guides-markdown && pnpm build:reference-markdown","build:gz-archive": "tsx ./internals/generate-gz-archive.ts","build:sitemap": "tsx ./internals/generate-sitemap.ts",- "clean": "rimraf .next .turbo node_modules features/docs/generated examples __generated__",+ "clean": "rimraf .next .turbo features/docs/generated examples __generated__ tsconfig.tsbuildinfo","codegen:examples": "shx cp -r ../../examples ./examples","codegen:graphql": "tsx --conditions=react-server ./scripts/graphqlSchema.ts && graphql-codegen --config codegen.ts","codegen:references:new:ensure": "(test -f spec/reference/javascript/v2/supabase.json || (cd spec && make download.tsdoc.v2)) && (test -f spec/reference/server/v1/server.json || (cd spec && make download.server.v1))",diff --git a/apps/learn/package.json b/apps/learn/package.jsonindex f2159e418c1..c857297c491 100644--- a/apps/learn/package.json+++ b/apps/learn/package.json@@ -12,7 +12,7 @@"lint": "eslint .","lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml","content:build": "contentlayer2 build",- "clean": "rimraf node_modules .next .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .next .turbo tsconfig.tsbuildinfo","typecheck": "contentlayer2 build && tsc --noEmit"},"dependencies": {diff --git a/apps/lite-studio/package.json b/apps/lite-studio/package.jsonindex b6ebf0e791d..a149499c259 100644--- a/apps/lite-studio/package.json+++ b/apps/lite-studio/package.json@@ -7,7 +7,7 @@"dev": "react-router dev","start": "react-router-serve ./build/server/index.js","typecheck": "react-router typegen && tsc",- "clean": "rimraf node_modules tsconfig.tsbuildinfo build .react-router .turbo"+ "clean": "rimraf build .react-router .turbo tsconfig.tsbuildinfo"},"dependencies": {"@react-router/fs-routes": "^7.17.0",diff --git a/apps/studio/Dockerfile b/apps/studio/Dockerfileindex a657a432137..237b543b41c 100644--- a/apps/studio/Dockerfile+++ b/apps/studio/Dockerfile@@ -23,7 +23,7 @@ RUN apt-get update -qq && \rm -rf /var/lib/apt/lists/* && \update-ca-certificates-RUN npm install -g [email protected]+RUN npm install -g [email protected]WORKDIR /appdiff --git a/apps/studio/package.json b/apps/studio/package.jsonindex 72da599deba..837e9b4280d 100644--- a/apps/studio/package.json+++ b/apps/studio/package.json@@ -19,7 +19,7 @@"start:tanstack": "node scripts/serve.js","lint": "eslint .","lint:ratchet": "tsx scripts/ratchet-eslint-rules.ts --rules-file scripts/ratchet-rules.json",- "clean": "rimraf node_modules tsconfig.tsbuildinfo .next .turbo",+ "clean": "rimraf .next .turbo tsconfig.tsbuildinfo","test": "vitest --run --coverage","test:watch": "vitest watch","test:ui": "vitest --ui",diff --git a/apps/ui-library/package.json b/apps/ui-library/package.jsonindex 844cd637bb4..dfbcb6c3de8 100644--- a/apps/ui-library/package.json+++ b/apps/ui-library/package.json@@ -14,7 +14,7 @@"lint": "eslint .","lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml","content:build": "contentlayer2 build",- "clean": "rimraf node_modules .next .turbo",+ "clean": "rimraf .next .turbo tsconfig.tsbuildinfo","typecheck": "contentlayer2 build && tsc --noEmit -p tsconfig.json"},"dependencies": {diff --git a/apps/www/package.json b/apps/www/package.jsonindex aa164943424..b1e2deea0f6 100644--- a/apps/www/package.json+++ b/apps/www/package.json@@ -11,7 +11,7 @@"export": "next export","start": "next start","lint": "eslint .",- "clean": "rimraf node_modules",+ "clean": "rimraf .next .turbo tsconfig.tsbuildinfo","pretypecheck": "next typegen","typecheck": "pnpm run content:build:core && tsc --noEmit","content:build:core": "node scripts/generateStaticContent.mjs && node scripts/generateMdContent.mjs",diff --git a/blocks/vue/package.json b/blocks/vue/package.jsonindex 8ff4abe17cc..39fd1c19c31 100644--- a/blocks/vue/package.json+++ b/blocks/vue/package.json@@ -6,7 +6,7 @@"exports": "./index.ts","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules .next .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .next .turbo tsconfig.tsbuildinfo","typecheck": "tsc --noEmit"},"dependencies": {diff --git a/package.json b/package.jsonindex 6993678bcd0..e76e4c7dd3c 100644--- a/package.json+++ b/package.json@@ -12,7 +12,7 @@"build:studio:docker": "docker build . -f apps/studio/Dockerfile --target production -t supabase-studio:local --build-arg NEXT_PUBLIC_STUDIO_AUTH_MODE=supabase --no-cache","build:design-system": "turbo run build --filter=design-system","build:docs": "turbo run build --filter=docs",- "clean": "turbo run clean --parallel && rimraf -G node_modules/{*,.bin,.modules.yaml} .turbo/cache",+ "clean": "turbo run clean --parallel && rimraf -G .turbo/cache && pnpm purge","dev": "turbo run dev --parallel","dev:studio": "turbo run dev --filter=studio --parallel","dev:studio-local": "pnpm setup:cli && NODE_ENV=test MODE=test pnpm --prefix ./apps/studio dev",@@ -65,8 +65,8 @@"url": "git+https://github.com/supabase/supabase.git"},"engines": {- "pnpm": "10.24",- "node": ">=22"+ "pnpm": "11.13",+ "node": ">=22.13"},"keywords": ["postgres",@@ -76,5 +76,5 @@"database","auth"],- "packageManager": "[email protected]"+ "packageManager": "[email protected]"}diff --git a/packages/ai-commands/package.json b/packages/ai-commands/package.jsonindex 68b2181eacc..c1de0dd0ef3 100644--- a/packages/ai-commands/package.json+++ b/packages/ai-commands/package.json@@ -7,7 +7,7 @@"sideEffects": false,"scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","typecheck": "tsc --noEmit","test": "vitest"},diff --git a/packages/api-types/package.json b/packages/api-types/package.jsonindex 666602c98a7..d975cab4de8 100644--- a/packages/api-types/package.json+++ b/packages/api-types/package.json@@ -6,7 +6,7 @@"types": "./index.ts","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","codegen": "openapi-typescript --redocly ./redocly.yaml --alphabetize --default-non-nullable=false && prettier --cache --write types/*.d.ts"},"author": "",diff --git a/packages/build-icons/package.json b/packages/build-icons/package.jsonindex 7a789e0a0c1..099a3a9cf67 100644--- a/packages/build-icons/package.json+++ b/packages/build-icons/package.json@@ -10,7 +10,7 @@},"scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules"+ "clean": "rimraf .turbo tsconfig.tsbuildinfo"},"engines": {"node": ">= 16"diff --git a/packages/common/package.json b/packages/common/package.jsonindex 1fd27ba5f8d..bc9c7ebd64d 100644--- a/packages/common/package.json+++ b/packages/common/package.json@@ -7,7 +7,7 @@"license": "MIT","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","gen:types": "supabase gen types typescript --local >| ./database-types.ts","typecheck": "tsc --noEmit"},diff --git a/packages/config/package.json b/packages/config/package.jsonindex 324105ef29b..df687c8ea9b 100644--- a/packages/config/package.json+++ b/packages/config/package.json@@ -5,7 +5,7 @@"license": "MIT","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules"+ "clean": "rimraf .turbo tsconfig.tsbuildinfo"},"dependencies": {"@tailwindcss/forms": "^0.5.11",diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.jsonindex 7d32a3ee694..1879dfe449f 100644--- a/packages/dev-tools/package.json+++ b/packages/dev-tools/package.json@@ -11,7 +11,7 @@},"scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo dist",+ "clean": "rimraf .turbo dist tsconfig.tsbuildinfo","test": "vitest run","test:watch": "vitest","typecheck": "tsc --noEmit"diff --git a/packages/eslint-config-supabase/package.json b/packages/eslint-config-supabase/package.jsonindex 878e68ca8e1..54b36915b7b 100644--- a/packages/eslint-config-supabase/package.json+++ b/packages/eslint-config-supabase/package.json@@ -5,7 +5,7 @@"license": "MIT","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules"+ "clean": "rimraf .turbo tsconfig.tsbuildinfo"},"devDependencies": {"@eslint/eslintrc": "^3.0.0",diff --git a/packages/generator/package.json b/packages/generator/package.jsonindex bf33b2438e0..cb3e56a7e71 100644--- a/packages/generator/package.json+++ b/packages/generator/package.json@@ -6,7 +6,7 @@"license": "MIT","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","tsdoc:dereference:functions:v1": "tsx ./tsdoc.ts --input ../../apps/docs/spec/enrichments/tsdoc_v1/functions.json --output ../../apps/docs/spec/enrichments/tsdoc_v1/functions_dereferenced.json","tsdoc:dereference:gotrue:v1": "tsx ./tsdoc.ts --input ../../apps/docs/spec/enrichments/tsdoc_v1/gotrue.json --output ../../apps/docs/spec/enrichments/tsdoc_v1/gotrue_dereferenced.json","tsdoc:dereference:postgrest:v1": "tsx ./tsdoc.ts --input ../../apps/docs/spec/enrichments/tsdoc_v1/postgrest.json --output ../../apps/docs/spec/enrichments/tsdoc_v1/postgrest_dereferenced.json",diff --git a/packages/icons/package.json b/packages/icons/package.jsonindex dc5bc56c5cf..2161e0f4df5 100644--- a/packages/icons/package.json+++ b/packages/icons/package.json@@ -4,7 +4,7 @@"scripts": {"preinstall": "npx only-allow pnpm","build:icons": "build-icons --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --iconFileExtension=.ts --exportFileName=index.ts",- "clean": "rimraf node_modules .turbo"+ "clean": "rimraf .turbo tsconfig.tsbuildinfo"},"dependencies": {"@typescript/native": "catalog:",diff --git a/packages/marketing/package.json b/packages/marketing/package.jsonindex f9274b2f2e3..f87045fe20c 100644--- a/packages/marketing/package.json+++ b/packages/marketing/package.json@@ -10,7 +10,7 @@},"scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules"+ "clean": "rimraf .turbo tsconfig.tsbuildinfo"},"dependencies": {"@types/react": "catalog:",diff --git a/packages/pg-meta/package.json b/packages/pg-meta/package.jsonindex 94f2cc95947..bc9f010499e 100644--- a/packages/pg-meta/package.json+++ b/packages/pg-meta/package.json@@ -7,7 +7,7 @@"repository": "supabase/supabase","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","test": "test/run-tests.sh vitest run --coverage","test:update": "test/run-tests.sh vitest run --update","lint": "tsc --noEmit",diff --git a/packages/shared-data/package.json b/packages/shared-data/package.jsonindex 9625ffecd62..bc39f076600 100644--- a/packages/shared-data/package.json+++ b/packages/shared-data/package.json@@ -6,7 +6,7 @@"types": "./index.ts","scripts": {"preinstall": "npx only-allow pnpm",- "clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","typecheck": "tsc --noEmit"},"devDependencies": {diff --git a/packages/ui-patterns/package.json b/packages/ui-patterns/package.jsonindex c9dd3e0956a..a0df1ca5102 100644--- a/packages/ui-patterns/package.json+++ b/packages/ui-patterns/package.json@@ -8,7 +8,7 @@"preinstall": "npx only-allow pnpm","test": "vitest","test:coverage": "vitest --run --coverage",- "clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","typecheck": "tsc --noEmit","gen:exports": "tsx ./scripts/update-exports.ts"},diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex a724528e4fc..b9fb78d53c2 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -9,7 +9,7 @@"preinstall": "npx only-allow pnpm","typecheck": "tsc --noEmit","generate-tailwind-classes": "tsx ./scripts/generate-tailwind-classes.ts",- "clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",+ "clean": "rimraf .turbo tsconfig.tsbuildinfo","test": "vitest","test:ci": "vitest --run --coverage","test:report": "open coverage/lcov-report/index.html"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 28c11dee308..1fc7165af4e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -129,9 +129,7 @@ overrides:webpack: ^5.104.1patchedDependencies:- react-data-grid:- hash: 803f02d6cede565990ab9675326b93195b98bcc6477a4811715405892c257488- path: patches/react-data-grid.patch+ react-data-grid: 803f02d6cede565990ab9675326b93195b98bcc6477a4811715405892c257488importers:diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 17cbf3f5abb..ea5c77a993e 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -5,6 +5,10 @@ packages:- e2e/*blockExoticSubdeps: true+engineStrict: true+updateNotifier: false+# Doesn't work because of Typescript issues with peer dependencies, see https://github.com/pnpm/pnpm/issues/9739+enableGlobalVirtualStore: falsecatalog:'@monaco-editor/react': ^4.7.0@@ -49,17 +53,19 @@ catalog:vitest: ^4.1.4zod: 3.25.76-ignoredBuiltDependencies:- - '@parcel/watcher'- - '@sentry/cli'- - contentlayer2- - core-js- - es5-ext- - esbuild- - libpg-query- - msw- - protobufjs- - sharp+allowBuilds:+ '@parcel/watcher': false+ '@sentry/cli': false+ contentlayer2: false+ core-js: false+ es5-ext: false+ esbuild: false+ libpg-query: false+ msw: false+ node-pty: true+ protobufjs: false+ sharp: false+ supabase: trueminimumReleaseAge: 4320@@ -74,10 +80,6 @@ minimumReleaseAgeExclude:# The following are excluded to fix vulnerablities.- react-use-onlyBuiltDependencies:- - node-pty- - supabase-overrides:'@ardatan/relay-compiler>immutable': ^3.8.3'monaco-editor': 'catalog:'diff --git a/turbo.jsonc b/turbo.jsoncindex cbc370c99da..838e626b869 100644--- a/turbo.jsonc+++ b/turbo.jsonc@@ -13,6 +13,7 @@"clean": {"outputs": [],"cache": false,+ "outputLogs": "errors-only",},"dev": {"cache": false,