mirror of https://github.com/vuejs/vitepress
parent
7f9295261f
commit
17aaaf0180
@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"types": ["node", "vitest/global"],
|
||||
"paths": {
|
||||
"node/*": ["../src/node/*"],
|
||||
"client/*": ["../src/client/*"]
|
||||
}
|
||||
},
|
||||
"include": ["../src", "."]
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
import path from 'path'
|
||||
|
||||
export default {
|
||||
resolve: {
|
||||
alias: {
|
||||
node: path.resolve(__dirname, '../src/node'),
|
||||
client: path.resolve(__dirname, '../src/client')
|
||||
}
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
rootDir: __dirname,
|
||||
moduleNameMapper: {
|
||||
'^src/(.*)$': '<rootDir>/src/$1',
|
||||
'^client/(.*)$': '<rootDir>/src/client/$1',
|
||||
'^node/(.*)$': '<rootDir>/src/node/$1',
|
||||
'^shared/(.*)$': '<rootDir>/src/shared/$1',
|
||||
'^tests/(.*)$': '<rootDir>/__tests__/$1'
|
||||
},
|
||||
testMatch: ['<rootDir>/__tests__/**/*.spec.ts'],
|
||||
testPathIgnorePatterns: ['/node_modules/']
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,12 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es2019",
|
||||
"baseUrl": ".",
|
||||
"outDir": "../../dist/node",
|
||||
"module": "commonjs",
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"types": ["node"],
|
||||
"sourceMap": true
|
||||
},
|
||||
"include": [".", "../../types/shared.d.ts"]
|
||||
"include": ["."]
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "."
|
||||
"baseUrl": ".",
|
||||
"lib": ["ESNext", "DOM"]
|
||||
},
|
||||
"include": ["."]
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["ESNext"]
|
||||
},
|
||||
"include": ["../types/shared.d.ts"]
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"types": ["node", "jest"],
|
||||
"paths": {
|
||||
"src/*": ["src/*"],
|
||||
"client/*": ["src/client/*"],
|
||||
"node/*": ["src/node/*"],
|
||||
"shared/*": ["src/shared/*"],
|
||||
"tests/*": ["__tests__/*"],
|
||||
"/@shared/*": ["src/client/shared/*"],
|
||||
"vitepress": ["src/client/index.ts"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
"__tests__"
|
||||
]
|
||||
}
|
Loading…
Reference in new issue