Skip to content

Commit

Permalink
Merge pull request #18 from rainstormy/spdiswal/revise-configurations
Browse files Browse the repository at this point in the history
Revise configurations
  • Loading branch information
spdiswal authored Oct 26, 2024
2 parents e3cf92e + 01f0332 commit 1a2aa60
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ extend `@rainstormy/presets-typescript/base` to enable type-checking in general.
In addition to this, you can extend some of the following configurations to
refine the TypeScript settings for your project:

| Configuration | Description |
|----------------------------------------------|----------------------------------------------|
| `@rainstormy/presets-typescript/es2023` | Targets web browser and full-stack projects. |
| `@rainstormy/presets-typescript/es2023-node` | Targets server-side Node.js projects. |
| `@rainstormy/presets-typescript/dts+js` | Generates `js` and `d.ts` files. |
| `@rainstormy/presets-typescript/dts` | Generates `d.ts` files only. |
| Configuration | Description |
|----------------------------------------------|-----------------------------------------------------------|
| `@rainstormy/presets-typescript/es2023` | Targets browser apps, full-stack apps, and npm libraries. |
| `@rainstormy/presets-typescript/es2023-node` | Targets Node.js apps. |
| `@rainstormy/presets-typescript/dts+js` | Generates `js` and `d.ts` files. |
| `@rainstormy/presets-typescript/dts` | Generates `d.ts` files only. |

You can override the predefined settings by specifying the desired options like
`compilerOptions` and `include` as usual.
Expand All @@ -41,20 +41,20 @@ For example:

```json
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": [
"@rainstormy/presets-typescript/base",
"@rainstormy/presets-typescript/es2023",
"@rainstormy/presets-typescript/dts+js"
],
"compilerOptions": {
"baseUrl": "./",
"incremental": true,
"noEmitOnError": false,
"outDir": "dist",
"sourceMap": true
},
"include": ["./src/**/*.ts", "./*.config.js", "./*.config.ts"]
"$schema": "https://json.schemastore.org/tsconfig",
"extends": [
"@rainstormy/presets-typescript/base",
"@rainstormy/presets-typescript/es2023",
"@rainstormy/presets-typescript/dts+js"
],
"compilerOptions": {
"baseUrl": "./",
"incremental": true,
"noEmitOnError": false,
"outDir": "dist",
"sourceMap": true
},
"include": ["./src/**/*.ts", "./*.config.js", "./*.config.ts"]
}
```

Expand Down
5 changes: 4 additions & 1 deletion src/base.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
"isolatedModules": true,
"noEmit": true,
"noEmitOnError": true,
"noUncheckedSideEffectImports": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUncheckedSideEffectImports": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": false,
Expand Down

0 comments on commit 1a2aa60

Please sign in to comment.