fix: update TypeScript configuration for correct root directory and test exclusion
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "rimraf ./dist && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
||||
"prepare": "pnpm build"
|
||||
"prepare": "pnpm build",
|
||||
"test": "vitest"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"rootDir": "./lib",
|
||||
},
|
||||
"exclude": [
|
||||
"tests/**/*",
|
||||
"*.test.ts",
|
||||
"vitest.config.ts",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
"lib/*"
|
||||
]
|
||||
},
|
||||
"plugins": [
|
||||
@@ -31,10 +31,12 @@
|
||||
"transform": "typescript-transform-paths",
|
||||
"afterDeclarations": true
|
||||
}
|
||||
],
|
||||
"typeRoots": [
|
||||
"lib/types"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
"tests/**/*",
|
||||
"lib/**/*",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { defineConfig } from 'vitest/config'
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'@': path.resolve(__dirname, './lib'),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user