@hearthforge/typescript-config
v0.1.2
Published
Shared TypeScript configs for HearthForge workspaces
Maintainers
Readme
@hearthforge/typescript-config
The tsconfig bases every HearthForge workspace and game plugin extends. All of them are strict, target ES2022 and turn on noUncheckedIndexedAccess, so a plugin type-checks under the same rules as core. It is configuration only — four JSON files, no code.
Install
pnpm add -D @hearthforge/typescript-config typescriptUsage
{
"extends": "@hearthforge/typescript-config/library.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src"]
}| file | for |
|---|---|
| base.json | the shared strict base the others extend (noEmit, bundler resolution) |
| library.json | a CommonJS library — packages and game plugins |
| react.json | React code (jsx: react-jsx, DOM libs, bundler resolution) |
| nestjs.json | a NestJS service (CommonJS, decorator metadata, emits) |
Peer dependencies
None declared; bring your own typescript (the configs are written for TypeScript 5).
Versioning
Pre-1.0: a minor release may tighten a compiler option in a way that fails code which compiled before; a patch never does. Maintenance lines publish from release/X.Y branches under the release-X.Y npm dist-tag and never move latest — see Maintenance releases.
License
Apache-2.0.
Links
- Repository: hearthforge/hearthforge-sdk
- Contributing: CLA.md (required for every contribution)
- HearthForge core: hearthforge/hearthforge
