add base url list
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user