7 Commits
Author SHA1 Message Date
Maciej Lisiewski 7062229090 chore(js): switch the workspaces from npm to pnpm
pnpm 12.15.0 (native executable) installs every JS workspace from one
pnpm-lock.yaml, imported from package-lock.json with the same resolved
versions. website/, the WhatsApp bridge and the photon sidecar stay separate
npm projects.

Configuration moves from .npmrc and the root manifest into
pnpm-workspace.yaml: the 14-day minimumReleaseAge and its excludes,
overrides, allowBuilds (the old allowScripts set, with strictDepBuilds
failing any unlisted build script), engineStrict, sideEffectsCache: false
(in-place rebuilds must not write into the store) and
verifyDepsBeforeRun: false (a `pnpm run` never installs).

The pnpm version is pinned in pm/lock.json and in root devEngines.
pmOnFail: ignore keeps that pin out of pnpm-lock.yaml: a leading pin
document makes osv-scanner read zero packages. scripts/build/node-deps.mjs
enforces the exact version instead, and every lock reader refuses a
multi-document lock. A root preinstall refuses `npm install`; devEngines
onFail is warn so npx (MCP servers, the tsc linter) keeps working inside
the checkout.

User-machine installs run --frozen-lockfile --trust-lockfile (release age is
checked when locking, in CI, not per user). node-deps removes npm-era
node_modules trees before the first pnpm install. Nix builds the store with
fetchPnpmDeps and a hash file that CI checks.
2026-11-06 04:08:24 +01:00
Teknium 7adb97f22a chore(hooks): web lint hook no longer grabs website/ files
lefthook's `root: web/` is a string-prefix filter, so `website/sidebars.ts`
matched it, was rewritten to `.site/sidebars.ts`, and eslint aborted the
commit ("No files matching the pattern"). Every docs PR that registers a
page in the sidebar hit it. Anchoring the glob to `web/**` keeps web/
files linted and leaves website/ alone.
2026-10-11 04:41:20 -07:00
Maciej Lisiewski 0035c85145 fix: add tsx to linted extensions 2026-10-10 23:58:48 +02:00
Maciej Lisiewski f8b76dd69b ci: add js linting to pre commit hook 2026-10-10 23:58:48 +02:00
Maciej Lisiewski 038dd659b7 ci: limit python cyclomatic complexity to pre-commit hook 2026-10-10 16:37:15 +02:00
Maciej Lisiewski d68bb0c9ae ci: make ruff strict the default 2026-10-10 15:20:14 +02:00
Maciej Lisiewski f6258f6cfb ci: add lefthook git hook manager to dev dependencies 2026-10-08 17:22:24 +02:00