fix: ts路径
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-06-19 16:41:12
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-06-21 10:23:39
|
||||
* @FilePath: \tianheng-design\bin\dts.ts
|
||||
* @LastEditTime: 2023-07-21 16:21:00
|
||||
* @FilePath: \vue3\bin\dts.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
@ -35,7 +35,7 @@ async function writeDTS(sourceFiles: SourceFile[]) {
|
||||
continue
|
||||
}
|
||||
|
||||
const newPath = filePath.replace(packageRoot, esRoot)
|
||||
const newPath = filePath.replace(packageRoot, esRoot).replace('index.vue.d.ts', 'index.mjs.d.ts')
|
||||
|
||||
await mkdir(dirname(newPath), { recursive: true })
|
||||
await writeFile(newPath, outputFile.getText(), 'utf8')
|
||||
|
Reference in New Issue
Block a user