-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐳 chore(utils): 尝试实现基于 tsconfig.json 的配置实现的typescript文件部署,目前没有实现出来。先试…
…试tsup打包。
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
// 打包成js的配置 | ||
// https://segmentfault.com/a/1190000044599569 | ||
"extends": [ | ||
// "./tsconfig.json" | ||
], | ||
"compilerOptions": { | ||
// 项目的根目录 | ||
"rootDir": ".", | ||
// 项目基础目录 | ||
"baseUrl": "./src", | ||
// tsc 编译产物输出目录 | ||
"outDir": "dist", | ||
"target": "ES2015", | ||
"module": "commonjs", | ||
// 模块解析策略 | ||
// "moduleResolution": "ESNext", | ||
"composite": false, | ||
"declaration": true, | ||
"noEmit": false, | ||
"emitDeclarationOnly": false, | ||
"declarationMap": true, | ||
"allowJs": true, | ||
// "allowImportingTsExtensions": true | ||
}, | ||
} |