fix: do not spam console when building playwright packages (#5436)

This commit is contained in:
Andrey Lushnikov 2021-02-12 00:41:33 -08:00 committed by GitHub
parent f2a31ad8c5
commit 2dfe1c75e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,12 +187,10 @@ if (!args.some(arg => arg === '--no-cleanup')) {
async function writeToPackage(fileName, content) {
const toPath = path.join(packagePath, fileName);
console.error(`- generating: //${path.relative(ROOT_PATH, toPath)}`);
await writeFileAsync(toPath, content);
}
async function copyToPackage(fromPath, toPath) {
console.error(`- copying: //${path.relative(ROOT_PATH, fromPath)} -> //${path.relative(ROOT_PATH, toPath)}`);
try {
fs.mkdirSync(path.dirname(toPath), { recursive: true });
} catch (e) {