Try to fix pnpm error on Dev Package Tests (#12774)

* Remove `-y` from `pnpm init`

* Change
This commit is contained in:
Sosuke Suzuki authored and GitHub committed 2022-05-01 11:49:15 +09:00
1 parent 9348049311
commit fe6820e815
2 files changed
+6 -1

No files matched your search

+5 -1
View File
@@ -51,7 +51,11 @@ module.exports = (packageDir) => {
fs.copyFileSync(file, packed);
fs.unlinkSync(file);
execaSync(client, ["init", "-y"], { cwd: tmpDir });
if (client === "pnpm") {
execaSync(client, ["init"], { cwd: tmpDir });
} else {
execaSync(client, ["init", "-y"], { cwd: tmpDir });
}
let installArguments = [];
switch (client) {