chore: clean up unused npm dependencies (#7417)

Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
This commit is contained in:
Matti Nannt
2026-03-05 11:48:13 +01:00
committed by GitHub
parent f3e02fa466
commit f0a0cf531a
7 changed files with 100 additions and 479 deletions
-5
View File
@@ -10,9 +10,6 @@
"build-storybook": "storybook build",
"clean": "rimraf .turbo node_modules dist storybook-static"
},
"dependencies": {
"@formbricks/survey-ui": "workspace:*"
},
"devDependencies": {
"@chromatic-com/storybook": "^5.0.1",
"@storybook/addon-a11y": "10.2.14",
@@ -23,10 +20,8 @@
"@tailwindcss/vite": "4.2.1",
"@typescript-eslint/parser": "8.56.1",
"@vitejs/plugin-react": "5.1.4",
"esbuild": "0.27.3",
"eslint-plugin-react-refresh": "0.4.26",
"eslint-plugin-storybook": "10.2.14",
"prop-types": "15.8.1",
"storybook": "10.2.14",
"vite": "7.3.1",
"@storybook/addon-docs": "10.2.14"
-16
View File
@@ -19,9 +19,6 @@
"i18n:generate": "npx lingo.dev@latest run && npx lingo.dev@latest lockfile --force"
},
"dependencies": {
"@aws-sdk/client-s3": "3.1000.0",
"@aws-sdk/s3-presigned-post": "3.1000.0",
"@aws-sdk/s3-request-presigner": "3.1000.0",
"@boxyhq/saml-jackson": "1.52.2",
"@dnd-kit/core": "6.3.1",
"@dnd-kit/modifiers": "9.0.0",
@@ -57,7 +54,6 @@
"@paralleldrive/cuid2": "2.3.1",
"@prisma/client": "6.19.2",
"@prisma/instrumentation": "6.19.2",
"@radix-ui/react-accordion": "1.2.12",
"@radix-ui/react-checkbox": "1.3.3",
"@radix-ui/react-collapsible": "1.1.12",
"@radix-ui/react-dialog": "1.1.15",
@@ -71,8 +67,6 @@
"@radix-ui/react-slot": "1.2.4",
"@radix-ui/react-switch": "1.2.6",
"@radix-ui/react-tabs": "1.1.13",
"@radix-ui/react-toggle": "1.1.10",
"@radix-ui/react-toggle-group": "1.1.11",
"@radix-ui/react-tooltip": "1.2.8",
"@sentry/nextjs": "10.41.0",
"@t3-oss/env-nextjs": "0.13.10",
@@ -80,8 +74,6 @@
"@tailwindcss/typography": "0.5.19",
"@tanstack/react-table": "8.21.3",
"@ungap/structured-clone": "1.3.0",
"@vercel/functions": "2.2.13",
"@vercel/og": "0.10.0",
"bcryptjs": "3.0.3",
"boring-avatars": "2.0.4",
"class-variance-authority": "0.7.1",
@@ -103,7 +95,6 @@
"lodash": "4.17.23",
"lucide-react": "0.576.0",
"markdown-it": "14.1.1",
"mime-types": "3.0.2",
"next": "16.1.6",
"next-auth": "4.24.13",
"next-safe-action": "7.10.8",
@@ -125,12 +116,10 @@
"react-i18next": "15.7.4",
"react-turnstile": "1.1.5",
"react-use": "17.6.0",
"redis": "4.7.1",
"sanitize-html": "2.17.1",
"server-only": "0.0.1",
"sharp": "0.34.5",
"stripe": "16.12.0",
"superjson": "2.2.6",
"tailwind-merge": "3.5.0",
"tailwindcss": "3.4.19",
"ua-parser-js": "2.0.9",
@@ -145,26 +134,21 @@
"@formbricks/eslint-config": "workspace:*",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@types/bcryptjs": "2.4.6",
"@types/heic-convert": "2.1.0",
"@types/jsonwebtoken": "9.0.10",
"@types/lodash": "4.17.24",
"@types/markdown-it": "14.1.2",
"@types/mime-types": "2.1.4",
"@types/nodemailer": "7.0.11",
"@types/papaparse": "5.5.2",
"@types/qrcode": "1.5.6",
"@types/sanitize-html": "2.16.0",
"@types/testing-library__react": "10.2.0",
"@types/ungap__structured-clone": "1.2.0",
"@vitest/coverage-v8": "3.2.4",
"autoprefixer": "10.4.27",
"cross-env": "10.1.0",
"dotenv": "16.6.1",
"esbuild": "0.27.3",
"postcss": "8.5.8",
"resize-observer-polyfill": "1.5.1",
"ts-node": "10.9.2",
"vite": "6.4.1",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.2.4",
+23 -13
View File
@@ -1,29 +1,39 @@
#!/bin/sh
set -eu
# Build-time fallbacks used only when Docker secrets are unavailable (for example
# in forked PR validations where repository secrets are not exposed).
DEFAULT_DATABASE_URL="postgresql://test:test@localhost:5432/formbricks"
DEFAULT_ENCRYPTION_KEY="0123456789abcdef0123456789abcdef"
DEFAULT_REDIS_URL="redis://localhost:6379"
if [ -f "/run/secrets/database_url" ]; then
IFS= read -r DATABASE_URL < /run/secrets/database_url || true
DATABASE_URL=${DATABASE_URL%$'\n'}
export DATABASE_URL
else
echo "DATABASE_URL secret not found. Build will fail because it is required by the application."
fi
if [ -z "${DATABASE_URL:-}" ]; then
DATABASE_URL="${DEFAULT_DATABASE_URL}"
echo "⚠️ DATABASE_URL secret not found or empty. Using build-time fallback value."
fi
export DATABASE_URL
if [ -f "/run/secrets/encryption_key" ]; then
IFS= read -r ENCRYPTION_KEY < /run/secrets/encryption_key || true
ENCRYPTION_KEY=${ENCRYPTION_KEY%$'\n'}
export ENCRYPTION_KEY
else
echo "ENCRYPTION_KEY secret not found. Build will fail because it is required by the application."
fi
if [ -z "${ENCRYPTION_KEY:-}" ]; then
ENCRYPTION_KEY="${DEFAULT_ENCRYPTION_KEY}"
echo "⚠️ ENCRYPTION_KEY secret not found or empty. Using build-time fallback value."
fi
export ENCRYPTION_KEY
if [ -f "/run/secrets/redis_url" ]; then
IFS= read -r REDIS_URL < /run/secrets/redis_url || true
REDIS_URL=${REDIS_URL%$'\n'}
export REDIS_URL
else
echo "REDIS_URL secret not found. Build will fail because it is required by the application."
fi
if [ -z "${REDIS_URL:-}" ]; then
REDIS_URL="${DEFAULT_REDIS_URL}"
echo "⚠️ REDIS_URL secret not found or empty. Using build-time fallback value."
fi
export REDIS_URL
if [ -f "/run/secrets/sentry_auth_token" ]; then
# Only upload sourcemaps on amd64 platform to avoid duplicate uploads
@@ -51,4 +61,4 @@ echo " REDIS_URL: $([ -n "${REDIS_URL:-}" ] && printf '[SET]' || printf '[NOT S
echo " SENTRY_AUTH_TOKEN: $([ -n "${SENTRY_AUTH_TOKEN:-}" ] && printf '[SET]' || printf '[NOT SET]')"
echo " TARGETARCH: $([ -n "${TARGETARCH:-}" ] && printf '%s' "${TARGETARCH}" || printf '[NOT SET]')"
exec "$@"
exec "$@"
+1 -4
View File
@@ -46,16 +46,13 @@
},
"dependencies": {
"react": "19.2.4",
"react-dom": "19.2.4",
"next": "16.1.6"
"react-dom": "19.2.4"
},
"devDependencies": {
"@azure/identity": "4.13.0",
"@azure/playwright": "1.1.2",
"@formbricks/eslint-config": "workspace:*",
"@playwright/test": "1.58.2",
"eslint": "8.57.1",
"glob": "^11.1.0",
"husky": "9.1.7",
"lint-staged": "16.3.1",
"rimraf": "6.1.3",
-2
View File
@@ -58,12 +58,10 @@
"devDependencies": {
"@formbricks/config-typescript": "workspace:*",
"@formbricks/eslint-config": "workspace:*",
"@types/bcryptjs": "2.4.6",
"dotenv-cli": "8.0.0",
"glob": "11.1.0",
"prisma": "6.19.2",
"prisma-json-types-generator": "3.6.2",
"ts-node": "10.9.2",
"tsx": "4.21.0",
"vite": "6.4.1",
"vite-plugin-dts": "4.5.4"
-1
View File
@@ -44,7 +44,6 @@
"author": "Formbricks <hola@formbricks.com>",
"devDependencies": {
"@formbricks/config-typescript": "workspace:*",
"@trivago/prettier-plugin-sort-imports": "5.2.2",
"@formbricks/eslint-config": "workspace:*",
"@vitest/coverage-v8": "3.2.4",
"terser": "5.46.0",
+76 -438
View File
File diff suppressed because it is too large Load Diff