@codefast/typescript-config 0.7.0 → 0.8.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 +12 -0
- package/README.md +9 -8
- package/base.json +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @codefast/typescript-config
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#746](https://github.com/codefastlabs/codefast/pull/746) [`3dc0808`](https://github.com/codefastlabs/codefast/commit/3dc0808674b23f8ec0f869600b2c44478d91ccda) Thanks [@thevuong](https://github.com/thevuong)! - chore(typescript-config): hoist noImplicitOverride and verbatimModuleSyntax into the base preset
|
|
8
|
+
|
|
9
|
+
Both flags were copy-pasted across five workspace tsconfigs and were absent from the shared preset. They now live in
|
|
10
|
+
`base.json`, so every workspace inherits them and the redundant per-package copies are removed. Enabling them repo-wide
|
|
11
|
+
was verified to produce zero new type errors. `exactOptionalPropertyTypes` is intentionally left per-package: turning it
|
|
12
|
+
on everywhere surfaces mostly-benign errors in the component/CLI packages, so it stays opt-in for the logic-heavy
|
|
13
|
+
packages that benefit from it.
|
|
14
|
+
|
|
3
15
|
## 0.7.0
|
|
4
16
|
|
|
5
17
|
## 0.6.2
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @codefast/typescript-config
|
|
2
2
|
|
|
3
|
-
Shared TypeScript configuration presets — one strict, bundler-first base
|
|
4
|
-
Next.js.
|
|
3
|
+
Shared TypeScript configuration presets — one strict, bundler-first base, focused variants for libraries, React, and
|
|
4
|
+
Next.js, and a build overlay that turns on `.d.ts` emit.
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/@codefast/typescript-config)
|
|
7
7
|
[](https://github.com/codefastlabs/codefast/blob/main/LICENSE)
|
|
@@ -69,12 +69,13 @@ Options you set locally always win, so overriding a preset value is a one-line c
|
|
|
69
69
|
|
|
70
70
|
## Presets
|
|
71
71
|
|
|
72
|
-
| Preset
|
|
73
|
-
|
|
|
74
|
-
| `base.json`
|
|
75
|
-
| `library.json`
|
|
76
|
-
| `react.json`
|
|
77
|
-
| `next.json`
|
|
72
|
+
| Preset | Extends | Purpose |
|
|
73
|
+
| -------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
+
| `base.json` | — | Strict, bundler-first baseline: ESNext target/module, DOM + ESNext libs, type-check only. |
|
|
75
|
+
| `library.json` | `base.json` | Headless packages: drops the DOM libs so reliance on browser globals is a type error. |
|
|
76
|
+
| `react.json` | `base.json` | React 17+ automatic JSX transform (`jsx: "react-jsx"`) — no `React` import needed. |
|
|
77
|
+
| `next.json` | `base.json` | Next.js apps: `jsx: "preserve"`, incremental builds, and the `next` TypeScript plugin. |
|
|
78
|
+
| `library-build.json` | (overlay) | Build-emit overrides layered over `library.json` in a build config: `noEmit: false`, `.d.ts` via `isolatedDeclarations`, plus declaration and source maps. |
|
|
78
79
|
|
|
79
80
|
## Notable compiler options
|
|
80
81
|
|
package/base.json
CHANGED
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
"moduleDetection": "force",
|
|
10
10
|
"moduleResolution": "bundler",
|
|
11
11
|
"noEmit": true,
|
|
12
|
+
"noImplicitOverride": true,
|
|
12
13
|
"noUncheckedIndexedAccess": true,
|
|
13
14
|
"resolveJsonModule": true,
|
|
14
15
|
"skipLibCheck": true,
|
|
15
16
|
"strict": true,
|
|
16
|
-
"target": "ESNext"
|
|
17
|
+
"target": "ESNext",
|
|
18
|
+
"verbatimModuleSyntax": true
|
|
17
19
|
},
|
|
18
20
|
"display": "Base configuration for monorepo packages"
|
|
19
21
|
}
|