0.0.1 • Published 1 year ago
@flixlix/config-ts-next v0.0.1
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
@flixlix/config-ts-nextand its peers dependencies:pnpm add -w @flixlix/config-ts-next typescript react react-dom @types/node @types/react @types/react-domAdd typescript configuration file
// apps/foo/tsconfig.json { "extends": "@flixlix/config-ts-next", "compilerOptions": { "baseUrl": "src", "rootDir": "src" }, "include": ["next-env.d.ts", "src"] }Turn on
nextexternalDir 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!
License
0.0.1
1 year ago