update: 优化部署

This commit is contained in:
2025-06-18 22:42:39 +08:00
parent c021beb576
commit b239dae9e3
5 changed files with 32 additions and 7 deletions

View File

@@ -91,7 +91,7 @@ const command = new Command('deploy')
if (stat.isDirectory()) {
isDirectory = true;
const gPath = path.join(directory, '**/*');
const files = await glob(gPath, { cwd: pwd, ignore: ['node_modules/**/*'], onlyFiles: true, dot });
const files = await glob(gPath, { cwd: pwd, ignore: ['node_modules/**/*', '.git/**/*', '.DS_Store'], onlyFiles: true, dot });
_relativeFiles = files.map((file) => path.relative(directory, file));
} else if (stat.isFile()) {
const filename = path.basename(directory);