chore: 添加types文件夹支持(以#号做为路径简写)

This commit is contained in:
悠静萝莉 2022-06-22 19:10:19 +08:00
parent 2216de7a51
commit ffb9e0743b
No known key found for this signature in database
GPG Key ID: 4EDF1CA1CEA8EBCC
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
exec < /dev/tty && npx git-cz --hook || true
#exec < /dev/tty && npx git-cz --hook || true

View File

@ -11,9 +11,10 @@
"noEmit": true,
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
"@/*": ["src/*"],
"#/*": ["types/*"]
}
},
"include": ["**/*.ts", "src/**/*.d.ts", "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"include": ["**/*.ts", "src/**/*.d.ts","types/**/*.d.ts", "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"compileOnSave": false
}

View File

@ -16,6 +16,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'#': path.resolve(__dirname, './types'),
},
},