From 58475b9d09abc2eab80483cf7282cb4f2a3aaa65 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 13 Sep 2024 15:51:52 +0200 Subject: [PATCH] fix(ci): add workaround for Parcel not working with Yarn PnP (#6447) ## What's the problem this PR addresses? It seems like the issue (https://github.com/parcel-bundler/parcel/issues/9114) is stuck on Parcel's side with no interest of it being fixed. ## How did you fix it? While this is not ideal, that leaves us with two choices: add a workaround and continue testing Parcel, or remove E2E tests for Parcel altogether. I chose the former. ## Checklist - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). - [x] I have set the packages that need to be released for my changes to be effective. - [x] I will check that all automated PR checks pass before the PR gets reviewed. --- .github/workflows/e2e-parcel-workflow.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/e2e-parcel-workflow.yml b/.github/workflows/e2e-parcel-workflow.yml index cd880644c560..409b8eaec0a3 100644 --- a/.github/workflows/e2e-parcel-workflow.yml +++ b/.github/workflows/e2e-parcel-workflow.yml @@ -29,6 +29,13 @@ jobs: yarn init -p yarn add -D parcel@nightly lodash @babel/core + # See https://github.com/parcel-bundler/parcel/issues/9114 + + echo "packageExtensions: + \"@parcel/fs@*\": + dependencies: + \"@parcel/core\": '*'" > .yarnrc.yml + # JavaScript echo "import _ from 'lodash';function printHello() { console.log(_.join(['Hello', 'JS'], ' '))}; printHello();" | tee index.js