Skip to content

Commit 58147c3

Browse files
committed
fix: don't needlessly read tsconfig
1 parent abf40ba commit 58147c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.changeset/gold-pens-find.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@repo/tools': patch
3+
---
4+
5+
fix: don't needlessly read tsconfig

packages/tools/src/cmd/build.cmd.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ buildCmd
133133
const { ts } = tsHelpers
134134
z.string().array().min(1).decode(entryPoints)
135135

136-
const tsconfig = ts.readConfigFile('./tsconfig.json', ts.sys.readFile)
137-
if (tsconfig.error) {
138-
throw new Error(`failed to read tsconfig: ${inspect(tsconfig)}`)
139-
}
140-
141136
const tsCompOpts = {
142137
...tsHelpers.getTSConfig(),
143138
declaration: true,

0 commit comments

Comments
 (0)