mirror of https://github.com/vuejs/vitepress
parent
e682675f96
commit
df97d96909
@ -1,4 +1,6 @@
|
||||
/dist
|
||||
/node_modules
|
||||
/src/client/shared
|
||||
/src/node/shared
|
||||
*.log
|
||||
.DS_Store
|
||||
|
@ -0,0 +1,7 @@
|
||||
const fs = require('fs-extra')
|
||||
const glob = require('globby')
|
||||
|
||||
glob.sync('src/shared/**/*.ts').forEach((file) => {
|
||||
fs.copy(file, file.replace(/^src\//, 'src/node/'))
|
||||
fs.copy(file, file.replace(/^src\//, 'src/client/'))
|
||||
})
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist",
|
||||
"baseUrl": ".",
|
||||
"outDir": "../../dist/node",
|
||||
"module": "commonjs",
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"sourceMap": true
|
||||
"sourceMap": true,
|
||||
"paths": {
|
||||
"/@types/*": ["../../types/*"]
|
||||
}
|
||||
},
|
||||
"include": [".", "../shared", "../../types/shared.d.ts"]
|
||||
"include": [
|
||||
".",
|
||||
"../../types/shared.d.ts"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in new issue