mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 20:02:54 +02:00
fix: make Docusaurus PnP strict mode compatible (#6047)
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
This commit is contained in:
parent
68b75bf855
commit
e07ebadf6c
65 changed files with 304 additions and 269 deletions
8
.github/workflows/tests-e2e.yml
vendored
8
.github/workflows/tests-e2e.yml
vendored
|
@ -72,17 +72,17 @@ jobs:
|
|||
KEEP_CONTAINER: true
|
||||
- name: Install test-website project with Yarn Berry and nodeLinker = ${{ matrix.nodeLinker }}
|
||||
run: |
|
||||
# we have to switch to berry first before setting the version we want
|
||||
yarn set version berry
|
||||
# temporary using canary for #5342
|
||||
yarn set version canary
|
||||
|
||||
yarn config set nodeLinker ${{ matrix.nodeLinker }}
|
||||
yarn config set pnpMode loose
|
||||
yarn config set npmRegistryServer http://localhost:4873
|
||||
yarn config set unsafeHttpWhitelist --json '["localhost"]'
|
||||
yarn config set enableGlobalCache true
|
||||
|
||||
# Patch package so that peer deps are provided. This has been fixed in terser by making acorn a direct dependency
|
||||
# TODO watch out for the next terser release. Commit: https://github.com/terser/terser/commit/05b23eeb682d732484ad51b19bf528258fd5dc2a
|
||||
yarn config set packageExtensions --json '{"terser-webpack-plugin@*": {"dependencies": {"acorn": "^8.6.0"}}, "html-minifier-terser@*": {"dependencies": {"acorn": "^8.6.0"}}}'
|
||||
|
||||
yarn install
|
||||
working-directory: ../test-website
|
||||
env:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue