build(projects): update deps

This commit is contained in:
Soybean
2023-01-15 11:10:00 +08:00
parent 0c12665fda
commit f71812d622
5 changed files with 223 additions and 348 deletions

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env zx
import { $ } from 'zx';
$`pnpm rimraf node_modules dist pnpm-lock.yaml`;

View File

@@ -1,21 +0,0 @@
import { createWriteStream } from 'fs';
import { zip } from 'compressing';
/**
* 压缩目录或者文件
* @param paths 目录或者文件的路径
* @param destinationName 压缩产物的名称
*/
function zipDirsOrFile(paths: string[], destinationName = 'dist.zip') {
const stream = new zip.Stream();
paths.forEach(path => {
stream.addEntry(path);
});
const destination = createWriteStream(destinationName);
stream.pipe(destination);
}
zipDirsOrFile(['dist']);

View File

@@ -1,6 +0,0 @@
import { $ } from 'zx';
$`rm -rf .husky`;
$`git config core.hooksPath .git/hooks/`;
$`rm -rf .git/hooks`;
$`pnpm simple-git-hooks`;