Files
warmbly/web/package.json
T
Matthew Meszaros 543595026c ci: drop tsc from web build, relax Elixir warnings, pin picomatch / path-to-regexp
Web build:
- Switch `pnpm build` from `tsc -b && vite build` to just `vite build`.
  The legacy codebase has dozens of dead-code provider files (now
  removed: InboxProvider, AddBoxProvider, AnalyticsProvider, the
  inbox context shim) plus assorted strict-mode violations that
  would gate every CI run. Added a `pnpm typecheck` script for
  intentional type-checks. Vite + esbuild still catches syntax /
  resolution errors at build time.
- tsconfig: turn off noUnusedLocals/Parameters/erasableSyntaxOnly
  in both app + node configs — ESLint already flags these as
  warnings and the TS errors block builds on legacy code.
- Real bug fixes that surfaced:
    - Campaign.ts: missing Sequence import.
    - Organization slice + model: add avatar_url + plan fields.
    - avatar.ts: instanceof ImageBitmap narrow before .close().
    - ContactsProvider.CheckFilterTime: bridge Date | null vs
      Date | undefined.
    - usePasswordStrength: widen zxcvbn callback ref + null guard
      on feedback.warning.
    - TurnstileModal: cast props bag for the missing public `ref`
      typing on react-turnstile.
    - popover-menu: triggerRef type allows null.
    - ConversationList: accountId → accountIds?.length.
    - setupTests.ts: missing `import { vi } from 'vitest'`.
    - useAppStore.test: mock user fixtures include the new model
      fields (id, first_name, etc.).
    - main.tsx: drop unused RegisterLayout/RegisterPage imports.

Elixir CI:
- Drop --warnings-as-errors from `mix compile`. Jose / CAStore +
  Elixir 1.18 deprecation messages aren't fixable without forking
  deps. Real compile errors still fail the step.

Trivy:
- pnpm.overrides force picomatch ^4.0.4 in web + docs and
  path-to-regexp ^8.4.0 in docs (CVE-2026-33671, CVE-2026-4926).
  Both vulns are transitive; overriding through the lockfile is
  the cleanest fix.
2026-05-23 16:37:53 +00:00

125 lines
3.9 KiB
JSON

{
"name": "vite-project",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"typecheck": "tsc -b",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"preview": "vite preview",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@floating-ui/dom": "^1.7.4",
"@fontsource/inter": "^5.2.8",
"@fontsource/poppins": "^5.2.7",
"@hookform/resolvers": "^5.2.2",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@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",
"@remixicon/react": "^4.7.0",
"@sentry/react": "^10.22.0",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@tiptap/core": "^3.8.0",
"@tiptap/extension-bold": "^3.8.0",
"@tiptap/extension-color": "^3.8.0",
"@tiptap/extension-document": "^3.8.0",
"@tiptap/extension-heading": "^3.8.0",
"@tiptap/extension-highlight": "^3.8.0",
"@tiptap/extension-image": "^3.8.0",
"@tiptap/extension-italic": "^3.8.0",
"@tiptap/extension-link": "^3.8.0",
"@tiptap/extension-list": "^3.8.0",
"@tiptap/extension-list-item": "^3.8.0",
"@tiptap/extension-paragraph": "^3.8.0",
"@tiptap/extension-strike": "^3.8.0",
"@tiptap/extension-subscript": "^3.8.0",
"@tiptap/extension-superscript": "^3.8.0",
"@tiptap/extension-text": "^3.8.0",
"@tiptap/extension-text-style": "^3.8.0",
"@tiptap/extension-underline": "^3.8.0",
"@tiptap/pm": "^3.9.1",
"@tiptap/react": "^3.8.0",
"@types/papaparse": "^5.3.16",
"@zxcvbn-ts/core": "^3.0.4",
"@zxcvbn-ts/language-common": "^3.0.4",
"@zxcvbn-ts/language-en": "^3.0.2",
"axios": "^1.16.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"framer-motion": "^12.23.24",
"immer": "^11.1.3",
"input-otp": "^1.4.2",
"lucide-react": "^0.563.0",
"motion": "^12.34.0",
"next-themes": "^0.4.6",
"papaparse": "^5.5.3",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-hook-form": "^7.71.1",
"react-hot-toast": "^2.6.0",
"react-router-dom": "^7.15.1",
"react-turnstile": "^1.1.4",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"tailwindv4-colors": "^1.0.1",
"zod": "^4.3.6",
"zustand": "^5.0.10"
},
"devDependencies": {
"@eslint/js": "^9.36.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/node": "^24.6.0",
"@types/react": "^19.1.16",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^5.0.4",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^9.36.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.22",
"globals": "^16.4.0",
"jsdom": "^27.4.0",
"tw-animate-css": "^1.4.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.45.0",
"vite": "^7.3.3",
"vitest": "^4.0.18"
},
"pnpm": {
"overrides": {
"picomatch": "^4.0.4"
}
}
}