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:
- bin/yarn
# no idea why yarn provides a shortcut of yarnpkg but it errors in mac
# - scripts/bin/yarnpkg
- bin/yarnpkg
dependencies:
@ -16,15 +14,20 @@ dependencies:
build:
dependencies:
npmjs.com: '*'
script: |
npm install . --global --prefix={{prefix}} --install-links
classic.yarnpkg.com: ^1 # works and prevents bootstrapping issues
script:
- yarn install
- yarn build:cli
mkdir {{prefix}}/bin
cd {{prefix}}/bin
- run: |
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:
script: |
yarn --version