@codefast/typescript-config 0.3.16-canary.2 → 0.3.16-canary.3
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 +8 -0
- package/README.md +17 -15
- package/base.json +1 -0
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @codefast/typescript-config
|
|
2
2
|
|
|
3
|
+
## 0.3.16-canary.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2a82188`](https://github.com/codefastlabs/codefast/commit/2a82188264c204b0b519b3324402ae962594d29b) Thanks [@thevuong](https://github.com/thevuong)! - feat(dev): enable source condition for zero-rebuild HMR in apps/docs
|
|
8
|
+
|
|
9
|
+
- [`f5a7a76`](https://github.com/codefastlabs/codefast/commit/f5a7a7607958030562d2051223e3ab39a4e551d7) Thanks [@thevuong](https://github.com/thevuong)! - Ship LICENSE in the published tarball, declare a TypeScript peer dependency, and enable `forceConsistentCasingInFileNames` in the base preset.
|
|
10
|
+
|
|
3
11
|
## 0.3.16-canary.2
|
|
4
12
|
|
|
5
13
|
## 0.3.16-canary.1
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Design goals:
|
|
|
44
44
|
|
|
45
45
|
## Requirements
|
|
46
46
|
|
|
47
|
-
- TypeScript **>= 5.0** — `moduleResolution: "bundler"` requires TS 5.0
|
|
47
|
+
- TypeScript **>= 5.0** — `moduleResolution: "bundler"` requires TS 5.0+ (declared as a `peerDependency`)
|
|
48
48
|
|
|
49
49
|
No runtime dependency is added to your application — the package is pure JSON.
|
|
50
50
|
|
|
@@ -91,6 +91,7 @@ Sets the strict, modern baseline used by every other preset.
|
|
|
91
91
|
"compilerOptions": {
|
|
92
92
|
"allowJs": true,
|
|
93
93
|
"esModuleInterop": true,
|
|
94
|
+
"forceConsistentCasingInFileNames": true,
|
|
94
95
|
"isolatedModules": true,
|
|
95
96
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
96
97
|
"module": "ESNext",
|
|
@@ -106,20 +107,21 @@ Sets the strict, modern baseline used by every other preset.
|
|
|
106
107
|
}
|
|
107
108
|
```
|
|
108
109
|
|
|
109
|
-
| Option
|
|
110
|
-
|
|
|
111
|
-
| `strict`
|
|
112
|
-
| `noUncheckedIndexedAccess`
|
|
113
|
-
| `target`
|
|
114
|
-
| `module` / `moduleResolution`
|
|
115
|
-
| `moduleDetection`
|
|
116
|
-
| `isolatedModules`
|
|
117
|
-
| `lib`
|
|
118
|
-
| `noEmit`
|
|
119
|
-
| `allowJs`
|
|
120
|
-
| `resolveJsonModule`
|
|
121
|
-
| `esModuleInterop`
|
|
122
|
-
| `
|
|
110
|
+
| Option | Value | Why |
|
|
111
|
+
| ---------------------------------- | --------------------------- | ----------------------------------------------------------------------------------------- |
|
|
112
|
+
| `strict` | `true` | Turns on the full strict family (`strictNullChecks`, `noImplicitAny`, etc.). |
|
|
113
|
+
| `noUncheckedIndexedAccess` | `true` | `arr[i]` and `obj[key]` are typed `T \| undefined` — forces explicit handling. |
|
|
114
|
+
| `target` | `ESNext` | Compile to the newest JavaScript; the bundler / runtime downlevels if needed. |
|
|
115
|
+
| `module` / `moduleResolution` | `ESNext` / `bundler` | Native ESM output with bundler-style `exports`/`imports` resolution. |
|
|
116
|
+
| `moduleDetection` | `force` | Treats every file as a module — no accidental global script files. |
|
|
117
|
+
| `isolatedModules` | `true` | Each file must be transpilable in isolation (required by esbuild, swc, Vite, Babel). |
|
|
118
|
+
| `lib` | `DOM, DOM.Iterable, ESNext` | Browser globals + the current ECMAScript surface. |
|
|
119
|
+
| `noEmit` | `true` | Type-checking only — emit is handled by tsdown / tsc-on-the-side / bundler. |
|
|
120
|
+
| `allowJs` | `true` | Permits mixed `.js`/`.ts` codebases. |
|
|
121
|
+
| `resolveJsonModule` | `true` | `import data from "./file.json"` works out of the box. |
|
|
122
|
+
| `esModuleInterop` | `true` | Interop with CommonJS default imports. |
|
|
123
|
+
| `forceConsistentCasingInFileNames` | `true` | Catches import-path casing mismatches across macOS / Linux CI. |
|
|
124
|
+
| `skipLibCheck` | `true` | Skips type-checking of declaration files — faster, and sidesteps noisy third-party types. |
|
|
123
125
|
|
|
124
126
|
### library.json
|
|
125
127
|
|
package/base.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/typescript-config",
|
|
3
|
-
"version": "0.3.16-canary.
|
|
3
|
+
"version": "0.3.16-canary.3",
|
|
4
4
|
"description": "Shared TypeScript configuration for the monorepo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser",
|
|
@@ -39,7 +39,10 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"typescript": ">=5.0.0"
|
|
44
|
+
},
|
|
42
45
|
"engines": {
|
|
43
|
-
"node": ">=
|
|
46
|
+
"node": ">=24.0.0"
|
|
44
47
|
}
|
|
45
48
|
}
|