@muravjev/configs-ts-next
v0.1.3
Published
Shared typescript config for app (ts + next) packages
Downloads
3
Maintainers
Readme
Shared typescript configuration
The purpose of the typescript is to add strong typing to javascript
.
This configuration targets app next packages.
Contents
Setup
Add workspace reference to
@muravjev/configs-ts-next
and its peers dependencies:pnpm add -w @muravjev/configs-ts-next typescript react react-dom @types/node @types/react @types/react-dom
Add typescript configuration file
// apps/foo/tsconfig.json { "extends": "@muravjev/configs-ts-next", "compilerOptions": { "baseUrl": "src", "rootDir": "src" }, "include": ["next-env.d.ts", "src"] }
Turn on
next
externalDir experimental function:// apps/foo/next.config.js { ... "experimental": { "externalDir": true //< for workspaces } ... }
Donation
If you found this project helpful, consider
buying me a coffee, donate by paypal or just leave a star⭐
Thanks for your support, it is much appreciated!