build: enhance fix deps output

This commit is contained in:
EnixCoda 2024-07-08 22:39:57 +08:00
parent 6fe3135ae8
commit bbf830f695

View file

@ -26,7 +26,7 @@ exports.fixDep = async function fixDep(targetFilePath, pairs) {
const filePath = path.resolve(nodeModulesPath, targetFilePath)
const source = await fs.readFile(filePath, 'utf-8')
if (source.includes(MODIFIED_MARK)) {
console.log(`${filePath} has been fixed, skipping.`)
console.log(`${filePath.replace(process.cwd(), '.')} has been fixed, skipping.`)
return
}
console.log(`Fixing ${targetFilePath}`)