@codefast/typescript-config 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @codefast/typescript-config
2
2
 
3
+ ## 0.6.0
4
+
3
5
  ## 0.5.0
4
6
 
5
7
  ### Minor Changes
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # @codefast/typescript-config
2
2
 
3
- Shared TypeScript configuration presets — one strict, bundler-first base plus focused variants for libraries, React, and Next.js.
3
+ Shared TypeScript configuration presets — one strict, bundler-first base plus focused variants for libraries, React, and
4
+ Next.js.
4
5
 
5
- [![npm version](https://img.shields.io/npm/v/@codefast/typescript-config)](https://www.npmjs.com/package/@codefast/typescript-config) [![license](https://img.shields.io/npm/l/@codefast/typescript-config)](https://github.com/codefastlabs/codefast/blob/main/LICENSE)
6
+ [![npm version](https://img.shields.io/npm/v/@codefast/typescript-config)](https://www.npmjs.com/package/@codefast/typescript-config)
7
+ [![license](https://img.shields.io/npm/l/@codefast/typescript-config)](https://github.com/codefastlabs/codefast/blob/main/LICENSE)
6
8
 
7
9
  ## Installation
8
10
 
@@ -10,11 +12,13 @@ Shared TypeScript configuration presets — one strict, bundler-first base plus
10
12
  pnpm add -D @codefast/typescript-config
11
13
  ```
12
14
 
13
- TypeScript >= 5.0 is a peer dependency (`moduleResolution: "bundler"` requires it). The package ships plain JSON — it adds no runtime code.
15
+ TypeScript >= 5.0 is a peer dependency (`moduleResolution: "bundler"` requires it). The package ships plain JSON — it
16
+ adds no runtime code.
14
17
 
15
18
  ## Usage
16
19
 
17
- Extend the preset that matches your project in `tsconfig.json`. Keep the `.json` extension — the package export map only exposes the full file names.
20
+ Extend the preset that matches your project in `tsconfig.json`. Keep the `.json` extension — the package export map only
21
+ exposes the full file names.
18
22
 
19
23
  A generic TypeScript project:
20
24
 
@@ -78,9 +82,11 @@ All strictness comes from `base.json`, so every preset inherits it:
78
82
 
79
83
  - `strict` — the full strict family (`strictNullChecks`, `noImplicitAny`, and friends).
80
84
  - `noUncheckedIndexedAccess` — indexed access is typed `T | undefined`, forcing explicit handling.
81
- - `isolatedModules` + `moduleDetection: "force"` — every file is a module and must transpile in isolation, as bundlers require.
85
+ - `isolatedModules` + `moduleDetection: "force"` — every file is a module and must transpile in isolation, as bundlers
86
+ require.
82
87
  - `module: "ESNext"` + `moduleResolution: "bundler"` — modern ESM with bundler-style `exports`/`imports` resolution.
83
- - `noEmit` — presets type-check only; emitting is your bundler's job (override in a build config if `tsc` emits for you).
88
+ - `noEmit` — presets type-check only; emitting is your bundler's job (override in a build config if `tsc` emits for
89
+ you).
84
90
  - `forceConsistentCasingInFileNames` — catches import-path casing mismatches before they break case-sensitive CI.
85
91
 
86
92
  ## License
package/base.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "compilerOptions": {
4
- "allowJs": true,
5
4
  "esModuleInterop": true,
6
5
  "forceConsistentCasingInFileNames": true,
7
6
  "isolatedModules": true,
@@ -4,6 +4,7 @@
4
4
  "compilerOptions": {
5
5
  "noEmit": false,
6
6
  "declaration": true,
7
+ "isolatedDeclarations": true,
7
8
  "declarationMap": true,
8
9
  "sourceMap": true,
9
10
  "types": ["node"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/typescript-config",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Shared TypeScript configuration for the monorepo",
5
5
  "keywords": [
6
6
  "browser",