Skip to content

Commit 5f565f4

Browse files
committed
Fix: Wrong CWD for tsconfig
1 parent dc83155 commit 5f565f4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/techor/src/commands/build.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export default async function build() {
6767
if (tsconfigFile === true) {
6868
tsconfig = getTsconfig('.')?.config
6969
} else {
70-
tsconfig = getTsconfig(tsconfigFile)?.config
70+
tsconfig = getTsconfig('.', tsconfigFile)?.config
71+
console.log(tsconfig)
7172
if (!tsconfig) {
7273
tsconfig = getTsconfig('.')?.config
7374
}

packages/techor/tests/target-es5/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"extends": "../../../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "dist",
6-
"target": "ES5"
5+
"outDir": "dist"
76
},
87
"include": [
98
"src/**/*"

packages/techor/tests/target-es5/tsconfig.prod.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"extends": "../../../../tsconfig.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "dist"
5+
"outDir": "dist",
6+
"target": "ES5"
67
},
78
"include": [
89
"src/**/*"

0 commit comments

Comments
 (0)