feat: tsconfig 설정 개선 및 경로 추가

This commit is contained in:
2025-12-28 12:37:49 +00:00
parent fa22562bb1
commit 4cab4d55c5
15 changed files with 104 additions and 9 deletions
+1
View File
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "../..",
"outDir": "dist",
"rootDir": "src",
"composite": true
+1
View File
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "../..",
"outDir": "dist",
"rootDir": "src",
"composite": true
+2 -1
View File
@@ -12,7 +12,7 @@
}
},
"scripts": {
"build": "tsc -p tsconfig.json",
"build": "tsc -b tsconfig.build.json",
"dev": "node -e \"console.log('dev not configured')\"",
"lint": "node -e \"console.log('lint not configured')\"",
"test": "vitest run --config vitest.config.ts"
@@ -21,6 +21,7 @@
"@sammo-ts/common": "workspace:*"
},
"devDependencies": {
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^4.0.16"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"paths": {}
},
"references": [
{ "path": "../common" }
]
}
+1
View File
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "../..",
"outDir": "dist",
"rootDir": "src",
"composite": true,
+6 -5
View File
@@ -1,13 +1,14 @@
import path from 'node:path';
import { defineConfig } from 'vitest/config';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
resolve: {
alias: {
'@sammo-ts/common': path.resolve(__dirname, '../common/src/index.ts'),
},
},
plugins: [
tsconfigPaths({
projects: [path.resolve(__dirname, '../../tsconfig.base.json')],
}),
],
test: {
environment: 'node',
globals: true,