Skip to content
hapijsPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

@hapi/tsconfig

Shared TypeScript compiler options for hapi modules.

Usage

Install it next to TypeScript:

pnpm add -D @hapi/tsconfig typescript

Then extend it from the project's tsconfig.json:

{
    "extends": "@hapi/tsconfig"
}

Only compilerOptions are worth sharing this way, include, exclude, outDir and other paths resolve relative to the file declaring them, so they stay in the project's own tsconfig.json, along with any option it needs to override:

{
    "extends": "@hapi/tsconfig",
    "compilerOptions": {
        "types": ["node"]
    },
    "include": ["src", "test"]
}

The config only type-checks (noEmit), builds are left to the project's bundler.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages