Skip to content

build(tsconfig): only load node and jest as implicit type libraries - #717

Merged
Quorafind merged 1 commit into
masterfrom
fix/tsconfig-implicit-types
Nov 28, 2026
Merged

Quorafind merged 1 commit into
masterfrom
fix/tsconfig-implicit-types

Conversation

@Quorafind

Copy link
Copy Markdown
Member

Obsidian's automated review of 10.1.0 reported a Build verification warning: npm run build failed in a clean environment with TS2688: Cannot find type definition file for 'parse-path'.

A fresh pnpm install hoists @types/parse-path, a deprecated empty stub that release-it pulls in through its git-url-parse dependencies. TypeScript then loads every node_modules/@types package as an implicit type library, so tsc fails. This sets "types": ["node", "jest"], the only implicit type libraries the code needs.

Reproduced with a stub @types/parse-path: tsc fails on master and passes with this change.

A clean pnpm install hoists the deprecated @types/parse-path stub (pulled in by release-it). TypeScript loads every @types package implicitly, so tsc failed with TS2688 in Obsidian's build verification. List the implicit type libraries the project uses.
@Quorafind
Quorafind merged commit 7396d0f into master Nov 28, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant