| description |
Build, lint, formatting, and TypeScript rules |
npm run build # Required before testing — compiles lib/ to lib-es5/
npm run start # Watch mode with auto-rebuild
npm run lint # Check both ESLint + Prettier
npm run fix # Auto-fix all issues
npm run lint:code # ESLint only
npm run lint:style # Prettier only
- Always run
npm run lint before committing. Fix all issues — never push dirty code.
- Console statements are disallowed in production code but allowed in test files.
- Strict mode enabled. Target: ES2022. Module system: CommonJS.
- Edit
lib/*.ts only — never edit lib-es5/*.js directly.
- Requires Node.js >= 22.0.0.
- Keep runtime dependencies minimal — they affect all packaged apps.
- Use exact or caret ranges.
pkg-fetch provides pre-compiled Node.js binaries.