diff --git a/README.md b/README.md index 53bcfe3..4367cb8 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,13 @@ yarn install -D @alienfast/tsconfig *This config requires TypeScript 5 or later.* +## Available configs + +- `node` +- `nodenext` - extends `node` with changed `module` and `moduleResolution` +- `react` - for bundling +- `react-lib` - extends `react`, focused on library builds + ## Usage Example for a `node` package: @@ -17,13 +24,12 @@ Example for a `node` package: ```json { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@alienfast/tsconfig/node.json", + "extends": "@alienfast/tsconfig/node.json", "compilerOptions": { - "composite": true, "outDir": "dist", "rootDir": "src" }, - "include": ["src", "../../typings/**/*", "../../typings-local/**/*"], + "include": ["src", "typings"], "exclude": ["node_modules", "dist"], } ``` \ No newline at end of file diff --git a/nodenext.json b/nodenext.json new file mode 100644 index 0000000..8f5e885 --- /dev/null +++ b/nodenext.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + + "display": "NodeNext shared base.", + + "extends": "./node.json", + "compilerOptions": { + "moduleResolution": "nodenext", + "module": "NodeNext" + } +}