Skip to content

Commit a74ee91

Browse files
docs: document engineering principles
1 parent 4e5a138 commit a74ee91

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Welcome! We're excited you're interested in contributing. To ensure a smooth and
88
2. Improve ESM ↔ CommonJS interoperability as the ecosystem migrates to ESM
99
3. Support the [active LTS versions of Node.js](https://endoflife.date/nodejs)
1010

11+
## Engineering principles
12+
13+
- Improve the default behavior for everyone. Do not turn known bugs or backend limitations into user-facing opt-outs.
14+
- Fix behavior at the narrowest owning layer. Prefer improving or replacing an inadequate dependency over patching its output, injecting global shims, or detecting specific third-party libraries.
15+
- Keep tsx's public surface independent of its implementation. Add configuration or API only when it represents durable user intent with multiple valid outcomes, not an escape hatch for one backend.
16+
- Prefer complete, long-term solutions over workarounds. A mitigation may reduce impact, but it does not resolve the underlying issue.
17+
1118
## Issues & Discussions
1219

1320
> [!IMPORTANT]

0 commit comments

Comments
 (0)