trilium/scripts
Elian Doran ae798be4ea
chore(scripts): typecheck the maintenance scripts
The scripts project is referenced from the root solution, so `pnpm typecheck`
was building it on every run — over an empty program. `include` resolves against
the directory holding the tsconfig, but its globs were written as if they were
relative to the repository root, so `scripts/*.ts` looked for
scripts/scripts/*.ts and matched nothing. Nothing under scripts/ has been
typechecked for as long as the file has looked like this.

Widened to the whole tree, .mts included, which also covers translation/ and
repo-migration/. That found one bug: on anything other than NixOS,
`isNixOS() && getNixLdLibraryPath()` is `false` rather than `undefined`, and
Node stringifies it instead of dropping it — so `pnpm desktop:start` launched
Electron with LD_LIBRARY_PATH=false.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 20:53:11 +03:00
..
icon-packs feat(icon-pack-builder): integrate boxicons 3 with brands 2025-12-28 22:53:03 +02:00
icons feat(mobile/ios): add trilium icon 2026-04-22 14:43:10 +03:00
repo-migration chore(scripts): add proper typechecking 2025-12-08 14:13:18 +02:00
translation chore(scripts): improve messages for translation check script 2026-02-06 19:38:24 +02:00
analyze-perf.ts perf(dev): give each dev server its own Vite dep cache 2026-08-10 18:05:32 +03:00
build-portable-better-sqlite3.sh build(ci): rebuild better-sqlite3 against an older glibc for Linux releases 2026-07-25 17:59:19 +03:00
build-utils.ts Merge remote-tracking branch 'origin/main' into renovate/pdfjs-dist-6.x 2026-07-25 23:04:17 +03:00
check-version-consistency.ts fix(ci): sanity check does not account for version prefix 2026-03-01 17:43:41 +02:00
electron-run-prod.mts fix(desktop): make start-prod launch Electron correctly on NixOS 2026-07-18 13:29:30 +03:00
electron-start.mts chore(scripts): typecheck the maintenance scripts 2026-08-19 20:53:11 +03:00
filter-tsc-output.mts build: name the native compiler @typescript/native, and record why the compat package is unusable 2026-08-09 18:10:36 +03:00
release-notes-body.mts ci(release): pin release note images to the tag being published 2026-08-19 20:47:01 +03:00
release-notes-body.spec.ts ci(release): pin release note images to the tag being published 2026-08-19 20:47:01 +03:00
tsconfig.json chore(scripts): typecheck the maintenance scripts 2026-08-19 20:53:11 +03:00
update-build-info.ts fix(scripts): update build info no longer updating 2026-04-07 16:00:44 +03:00
update-contributors.ts contributor list: update script name, change a comment 2026-04-19 18:33:35 +03:00
update-flake-electron.spec.ts ci(nix): sync the flake's Electron pin automatically 2026-08-08 15:55:22 +03:00
update-flake-electron.ts ci(nix): sync the flake's Electron pin automatically 2026-08-08 15:55:22 +03:00
update-nightly-version.ts refactor(standalone): rename project from client-standalone 2026-05-16 08:57:55 +03:00
update-version.ts refactor(standalone): rename project from client-standalone 2026-05-16 08:57:55 +03:00
utils.mts fix(desktop): make start-prod launch Electron correctly on NixOS 2026-07-18 13:29:30 +03:00
vitest.config.ts ci(nix): sync the flake's Electron pin automatically 2026-08-08 15:55:22 +03:00
wipe-node-modules.mts chore(scripts): add a way to wipe node modules 2026-03-26 11:27:46 +02:00