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