feat: 完善一波代码 & 支持win(待测试验证)

This commit is contained in:
volare
2022-12-04 17:53:43 +08:00
parent 93a79f482f
commit 84d749a54d
10 changed files with 164 additions and 30 deletions

8
bin/utils/dir.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
import path from 'path';
import { fileURLToPath } from 'url';
export const npmDirectory = path.join(
path.dirname(fileURLToPath(import.meta.url)),
'..'
);