Skip to content

Commit c7209db

Browse files
committed
docs: note how TypeScript configs load with cosmiconfig 10
cosmiconfig 10 no longer uses the `typescript` package. It loads `.ts` configs through Node.js's type stripping, which only handles erasable syntax. Assisted-by: Claude Opus 5.5 <[email protected]>
1 parent fb2594b commit c7209db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/configuration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use `--config-file <path>` to load a specific file instead of searching.
1212
Configuration files can be either:
1313

1414
- **JavaScript** (`.js`, `.mjs`, `.cjs`)
15-
- **TypeScript** (`.ts`, when `typescript` is installed in the project)
15+
- **TypeScript** (`.ts`, loaded through Node.js type stripping, so only erasable syntax such as type annotations works)
1616
- **JSON** (`.json`)
1717
- **YAML** (`.yaml`, `.yml`, or an extensionless rc file)
1818

0 commit comments

Comments
 (0)