脚本管理忽略符号文件

This commit is contained in:
whyour
2023-12-23 00:28:31 +08:00
parent 62168979e3
commit 2713942a68
2 changed files with 41 additions and 29 deletions
+8 -1
View File
@@ -34,7 +34,14 @@ export default (app: Router) => {
const logger: Logger = Container.get('logger');
try {
let result = [];
const blacklist = ['node_modules', '.git', '.pnpm'];
const blacklist = [
'node_modules',
'.git',
'.pnpm',
'pnpm-lock.yaml',
'yarn.lock',
'package-lock.json',
];
if (req.query.path) {
const targetPath = path.join(
config.scriptPath,