fix(yarn)

closes #3156
closes #3761
closes #3885
closes #4062
This commit is contained in:
Jacob Heider 2023-11-14 15:07:57 -05:00
parent fc48863ecf
commit ec80f51fa5
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -7,8 +7,6 @@ versions:
provides: provides:
- bin/yarn - bin/yarn
# no idea why yarn provides a shortcut of yarnpkg but it errors in mac
# - scripts/bin/yarnpkg
- bin/yarnpkg - bin/yarnpkg
dependencies: dependencies:
@ -16,15 +14,20 @@ dependencies:
build: build:
dependencies: dependencies:
npmjs.com: '*' classic.yarnpkg.com: ^1 # works and prevents bootstrapping issues
script: | script:
npm install . --global --prefix={{prefix}} --install-links - yarn install
- yarn build:cli
mkdir {{prefix}}/bin - run: |
cd {{prefix}}/bin chmod +x yarn.js
mkdir -p {{prefix}}/bin
cp yarn.js {{prefix}}/bin/yarn
working-directory: packages/yarnpkg-cli/bundles
- run: ln -s yarn yarnpkg
working-directory: ${{prefix}}/bin
ln -s ../lib/node_modules/@yarnpkg/monorepo/scripts/bin/yarn .
ln -s yarn yarnpkg
test: test:
script: | script: |
yarn --version yarn --version