diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index 796bd43fb0..6df58349df 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -221,7 +221,7 @@ async function buildDistWorkspace(workspaceName: string, rootDir: string) { */ async function pinYarnVersion(dir: string) { const yarnRc = await fs.readFile(paths.resolveOwnRoot('.yarnrc.yml'), 'utf8'); - const yarnRcLines = yarnRc.split('\n'); + const yarnRcLines = yarnRc.split(/\r?\n/); const yarnPathLine = yarnRcLines.find(line => line.startsWith('yarnPath:')); if (!yarnPathLine) { throw new Error(`Unable to find 'yarnPath' in ${yarnRc}`);