Skip to content

Commit

Permalink
chore: use npm instead of yarn in global install test
Browse files Browse the repository at this point in the history
yarn@1 is resolving incorrectly
Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/string-width/index.js from /node_modules/cliui/build/index.cjs not supported.
similar to nrwl/nx#17229
  • Loading branch information
Kelly Selden committed Jul 8, 2023
1 parent b0d9f45 commit 64c39c3
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 2,621 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ jobs:

- name: simulate global install
run: |
yarn install --production
# yarn@1 is resolving incorrectly
# Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/string-width/index.js from /node_modules/cliui/build/index.cjs not supported.
# yarn install --production
npm ci
yarn link
working-directory: fixtures/global-install

Expand Down
259 changes: 259 additions & 0 deletions fixtures/global-install/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion fixtures/global-install/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
"@faltest/cli": "file:../../packages/cli",
"@faltest/lifecycle": "file:../../packages/lifecycle"
},
"resolutions": {
"devDependencies": {
"@faltest/browser": "file:../../packages/browser",
"@faltest/mocha": "file:../../packages/mocha",
"@faltest/remote": "file:../../packages/remote",
"@faltest/utils": "file:../../packages/utils"
},
"overrides": {
"@faltest/browser": "file:../../packages/browser",
"@faltest/mocha": "file:../../packages/mocha",
"@faltest/remote": "file:../../packages/remote",
Expand Down
Loading

0 comments on commit 64c39c3

Please sign in to comment.