add base url list

This commit is contained in:
2025-02-21 00:47:36 +08:00
parent ce84ab4902
commit 5a691bc350
3 changed files with 86 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ async function collectFileInfo(filePath: string, baseDir = '.'): Promise<any[]>
// 解析 .npmignore 文件
async function loadNpmIgnore(cwd: string): Promise<ignore.Ignore> {
const npmIgnorePath = path.join(cwd, '.npmignore');
const ig = ignore.default();
const ig = ignore();
try {
const content = fs.readFileSync(npmIgnorePath, 'utf-8');