Skip to content

Commit 1d0e305

Browse files
authored
fix: tsconfig cwd differing from microbundle's cwd (#941)
* fix: 'tsconfig.json' search should start in the set cwd * docs: Adding changeset
1 parent c4532cc commit 1d0e305

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/clever-chicken-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'microbundle': patch
3+
---
4+
5+
Ensures TS plugin will begin its search for a 'tsconfig.json' in the set cwd

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ function createConfig(options, entry, format, writeMeta) {
522522
},
523523
(useTypescript || emitDeclaration) &&
524524
typescript({
525+
cwd: options.cwd,
525526
typescript: require(resolveFrom.silent(
526527
options.cwd,
527528
'typescript',

0 commit comments

Comments
 (0)