Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: pin pnpm version in package.json and enforce via preinstall (#11303)

Ashwin Bhatkal7bc6ce75519b
diff --git a/frontend/.npmrc b/frontend/.npmrc
index 5e20479998..fd369c6b0b 100644
--- a/frontend/.npmrc
+++ b/frontend/.npmrc
@@ -1,4 +1,5 @@
registry = 'https://registry.npmjs.org/'
+engine-strict=true
public-hoist-pattern[]=@commitlint*
public-hoist-pattern[]=commitlint
\ No newline at end of file
diff --git a/frontend/package.json b/frontend/package.json
index 95f0b89172..8d6e24623d 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -4,6 +4,7 @@
"description": "",
"type": "module",
"scripts": {
+ "preinstall": "npx only-allow pnpm",
"i18n:generate-hash": "node ./i18-generate-hash.cjs",
"dev": "vite",
"build": "vite build",
@@ -26,7 +27,8 @@
"generate:api": "orval --config ./orval.config.ts && sh scripts/post-types-generation.sh"
},
"engines": {
- "node": ">=22.0.0"
+ "node": ">=22.0.0",
+ "pnpm": ">=10.0.0 <11.0.0"
},
"author": "",
"license": "ISC",
diff --git a/tests/e2e/.npmrc b/tests/e2e/.npmrc
new file mode 100644
index 0000000000..b6f27f1359
--- /dev/null
+++ b/tests/e2e/.npmrc
@@ -0,0 +1 @@
+engine-strict=true
diff --git a/tests/e2e/package.json b/tests/e2e/package.json
index 7b13813197..82324e7a2f 100644
--- a/tests/e2e/package.json
+++ b/tests/e2e/package.json
@@ -4,6 +4,7 @@
"description": "E2E tests for SigNoz frontend with Playwright",
"main": "index.js",
"scripts": {
+ "preinstall": "npx only-allow pnpm",
"test": "playwright test",
"test:staging": "SIGNOZ_E2E_BASE_URL=https://app.us.staging.signoz.cloud playwright test",
"test:ui": "playwright test --ui",
@@ -41,6 +42,7 @@
"typescript": "^5.0.0"
},
"engines": {
- "node": ">=18.0.0"
+ "node": ">=18.0.0",
+ "pnpm": ">=10.0.0 <11.0.0"
}
}