Skip to content

Commit 046be9d

Browse files
committed
build: use correct rootDir
1 parent 6f78768 commit 046be9d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"scripts": {
2222
"gen:bot-api": "bun run scripts/gen-bot-api.ts",
23-
"typecheck": "tsc --build --noEmit",
24-
"build": "tsc --build",
23+
"typecheck": "tsc --build --noEmit tsconfig.json",
24+
"build": "tsc --project tsconfig.lib.json",
2525
"deps": "taze --write --interactive --include-locked minor",
2626
"lint": "eslint .",
2727
"lint:fix": "eslint . --fix",

tsconfig.dev.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"target": "esnext",
55
"lib": ["ESNext"],
66
"moduleDetection": "force",
7-
"rootDir": ".",
87
"module": "esnext",
98
"moduleResolution": "bundler",
109
"typeRoots": ["node_modules/@types"],

tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"target": "es2022",
55
"lib": ["ES2022"],
66
"moduleDetection": "force",
7-
"rootDir": ".",
7+
"rootDir": "./src",
88
"module": "node20",
99
"moduleResolution": "node16",
1010
"typeRoots": ["node_modules/@types"],

0 commit comments

Comments
 (0)