diff --git a/.github/workflows/dev-package-test.yml b/.github/workflows/dev-package-test.yml index b3941fe37..52c72dc8a 100644 --- a/.github/workflows/dev-package-test.yml +++ b/.github/workflows/dev-package-test.yml @@ -10,6 +10,7 @@ on: - "yarn.lock" # This workflow file - ".github/workflows/dev-package-test.yml" + - "tests/config/install-prettier.js" jobs: test: diff --git a/tests/config/install-prettier.js b/tests/config/install-prettier.js index eb6dbd45b..534080af3 100644 --- a/tests/config/install-prettier.js +++ b/tests/config/install-prettier.js @@ -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) {