mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
fc48863ecf
commit
ec80f51fa5
1 changed files with 12 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue