fix: do not spam console when building playwright packages (#5436)
This commit is contained in:
parent
f2a31ad8c5
commit
2dfe1c75e1
|
|
@ -187,12 +187,10 @@ if (!args.some(arg => arg === '--no-cleanup')) {
|
||||||
|
|
||||||
async function writeToPackage(fileName, content) {
|
async function writeToPackage(fileName, content) {
|
||||||
const toPath = path.join(packagePath, fileName);
|
const toPath = path.join(packagePath, fileName);
|
||||||
console.error(`- generating: //${path.relative(ROOT_PATH, toPath)}`);
|
|
||||||
await writeFileAsync(toPath, content);
|
await writeFileAsync(toPath, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function copyToPackage(fromPath, toPath) {
|
async function copyToPackage(fromPath, toPath) {
|
||||||
console.error(`- copying: //${path.relative(ROOT_PATH, fromPath)} -> //${path.relative(ROOT_PATH, toPath)}`);
|
|
||||||
try {
|
try {
|
||||||
fs.mkdirSync(path.dirname(toPath), { recursive: true });
|
fs.mkdirSync(path.dirname(toPath), { recursive: true });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue