Skip to content

Commit

Permalink
fix: tsconfig cwd differing from microbundle's cwd (#941)
Browse files Browse the repository at this point in the history
* fix: 'tsconfig.json' search should start in the set cwd

* docs: Adding changeset
  • Loading branch information
rschristian committed Apr 20, 2022
1 parent c4532cc commit 1d0e305
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-chicken-end.md
@@ -0,0 +1,5 @@
---
'microbundle': patch
---

Ensures TS plugin will begin its search for a 'tsconfig.json' in the set cwd
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -522,6 +522,7 @@ function createConfig(options, entry, format, writeMeta) {
},
(useTypescript || emitDeclaration) &&
typescript({
cwd: options.cwd,
typescript: require(resolveFrom.silent(
options.cwd,
'typescript',
Expand Down

0 comments on commit 1d0e305

Please sign in to comment.