From 98fe696a06e4c10492e660139b41de6522c93b3d Mon Sep 17 00:00:00 2001 From: Sonu Sharma Date: Wed, 16 Sep 2026 18:56:23 +0530 Subject: [PATCH] chore: ignore non-npm lockfiles and set packageManager configuration --- .gitignore | 7 +++++++ CONTRIBUTING.md | 2 +- demo/package.json | 1 + package-lock.json | 2 +- package.json | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3aaba98..199e3c1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,10 @@ node_modules .history dist /coverage + +# Foreign lockfiles +bun.lock +bun.lockb +pnpm-lock.yaml +yarn.lock + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 532b3a2..36a4378 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Prerequisites -[Node.js](https://nodejs.org/) >= v20 must be installed. CI tests on Node 20, 22 and 24. +[Node.js](https://nodejs.org/) >= v20 and `npm` are required. CI tests on Node 20, 22 and 24 using `npm`. Other package managers (such as Bun, pnpm, or Yarn) are not supported to prevent lockfile drift. ## Installation diff --git a/demo/package.json b/demo/package.json index d6cdbbd..53e7d0d 100644 --- a/demo/package.json +++ b/demo/package.json @@ -3,6 +3,7 @@ "private": true, "version": "0.0.0", "type": "module", + "packageManager": "npm@10.8.2", "scripts": { "dev": "vite", "typecheck": "tsc --noEmit", diff --git a/package-lock.json b/package-lock.json index 602a0a0..8d4d914 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "vitest": "4.1.10" }, "engines": { - "node": ">=18" + "node": ">=20" }, "peerDependencies": { "react": ">=18" diff --git a/package.json b/package.json index 0f93437..08117c7 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "engines": { "node": ">=20" }, + "packageManager": "npm@10.8.2", "publishConfig": { "access": "public" },