feat: 语法错误修复
This commit is contained in:
@@ -5,8 +5,8 @@ function cleanDirectory(dirPath) {
|
||||
const resolvedPath = path.resolve(dirPath)
|
||||
|
||||
const parentDir = path.basename(path.dirname(resolvedPath))
|
||||
if (parentDir !== 'packages') {
|
||||
console.error(`Error: Directory "${resolvedPath}" is not inside a "packages" folder`)
|
||||
if (parentDir !== 'out') {
|
||||
console.error(`Error: Directory "${resolvedPath}" is not inside a "out" folder`)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user