verification
Verification
Do each step in order; do not skip a step unless all previous are passing except in debug mode. Run from repo root; use -w for a single package. After changes outside debug mode, restart from step 1.
-
npm run compile— references/compile.md (TS4023: ts4023-effect-errors, TS1261: ts1261-filename-casing) -
npm run lint— fix new errors/warnings (defer in debug mode — see Debug mode) -
Effect code:
node_modules/.bin/effect-language-service diagnostics --project tsconfig.json(or--file <path>) — fix reported issues;read_lintsdoes not surface Effect LS. Call the local bin directly, never barenpx(the unscoped registry name is a typosquat). If the bin is missing (fresh clone / prunednode_modules), note it and runnpm install— do not skip silently or fall back tonpx. -
npm run test- See references/unit-tests.md -
npm run bundleto ensure bundles still build -
If working in packages that define
test:web/test:desktop(e.g.packages/apex-ls): run from rootnpm run test:web -w <package-name> -- --retries 0/npm run test:desktop -w <package-name> -- --retries 0as needed. Skip if your changes are not in those packages. -
node_modules/.bin/knip- check for dead code related to your changes (local bin, notnpx). If the bin is missing, note it and runnpm install— do not skip silently or fall back tonpx.
- Fix ALL unused exports - if knip shows unused exports, remove them immediately unless they're used for tests. Exception for ts4023 reasons
- Don't leave any exports that are only used within the same file
- check for dupes
npm run check:dupesand then look injscpd-report(and parser-ast report if usingcheck:dupes:parser-ast) to make sure none of your changes are flagged.