@guestcraft/tsconfig
Shared TypeScript presets. Every package extends one of them, so that the sources of a package type-check the same way when another package imports them (ADR 0003).
| Preset | Use |
|---|---|
base.json |
Code without Node.js globals, such as @guestcraft/core. Strict, ESM, erasable syntax only, .ts relative imports, no emit. |
node.json |
Code that runs on Node.js: adds the node types. |
react.json |
Code for browsers with React, such as @guestcraft/ui: adds the DOM library and the JSX transform of React. |
next.json |
The Next.js app, apps/web: the React preset with a bundler’s module resolution. |
expo.json |
The Expo app, apps/mobile: React Native resolved as Metro resolves, with the web platform types Expo declares. |
{ "extends": "@guestcraft/tsconfig/node.json", "include": ["src", "test", "*.config.ts"] }