Skip to content

Commit

Permalink
ci: fix weird test creation test issue with yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufkandemir committed Mar 12, 2024
1 parent c70d912 commit 5fcaa12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion create-quasar/scripts/create-test-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ type CreateProjectOptions = {

export async function createProject({ scriptType, appEngine, packageManager }: CreateProjectOptions) {
// To bypass Corepack enforcing what's specified in the closest package.json file that has the 'packageManager' field
process.env.COREPACK_ENABLE_STRICT = '0';
// It also helps with a random weird issue that says:
// `This project's package.json defines "packageManager": "yarn@pnpm@8.15.4". However the current global version of Yarn is 1.22.21.`
process.env.COREPACK_ENABLE_PROJECT_SPEC = '0';
// To alter the behavior to run correctly within this script
process.env.CREATE_TEST_PROJECT_OVERRIDE = 'true';

Expand Down

0 comments on commit 5fcaa12

Please sign in to comment.