update build-ts

This commit is contained in:
Harvey Zack committed 2022-12-31 21:40:57 +08:00
1 parent 054ee3f3f6
commit 1df2bd1def
1 file changed
+2 -2
+2 -2
View File
@@ -3,8 +3,8 @@ import path from 'path';
import glob from 'glob';
const reg = /^import.*;$/gim;
const types = glob.sync(path.join(process.cwd(), 'packages/artplayer/types/*'));
const output = path.join(path.join(process.cwd(), `docs/assets/ts/artplayer.d.ts`));
const types = glob.sync('packages/artplayer/types/*');
const output = path.join('docs/assets/ts/artplayer.d.ts');
let code = '';
for (let index = 0; index < types.length; index++) {