From ad1e9e60c56a1627228f016b9d44a24434249ce3 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 4 Feb 2023 16:08:25 +0800 Subject: [PATCH] +yarnpkg.com (#169) * +yarnpkg.com * get tgz from gh * fix version * fix mac issue * test libatomic1 install * test linux * fix path * this is working for me, atm. testing. --------- Co-authored-by: neil Co-authored-by: Jacob Heider --- projects/yarnpkg.com/package.json | 6 ++++++ projects/yarnpkg.com/package.yml | 32 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 projects/yarnpkg.com/package.json create mode 100644 projects/yarnpkg.com/package.yml diff --git a/projects/yarnpkg.com/package.json b/projects/yarnpkg.com/package.json new file mode 100644 index 00000000..6217c5bc --- /dev/null +++ b/projects/yarnpkg.com/package.json @@ -0,0 +1,6 @@ +{ + "name": "yarnpkg.com", + "version": "1.0.0", + "main": "index.js", + "license": "MIT" +} diff --git a/projects/yarnpkg.com/package.yml b/projects/yarnpkg.com/package.yml new file mode 100644 index 00000000..b55382e1 --- /dev/null +++ b/projects/yarnpkg.com/package.yml @@ -0,0 +1,32 @@ +distributable: + url: https://github.com/yarnpkg/berry/archive/refs/tags/@yarnpkg/cli/{{version}}.tar.gz + strip-components: 1 + +versions: + github: yarnpkg/berry + +provides: + - bin/yarn + # no idea why yarn provides a shortcut of yarnpkg but it errors in mac + # - scripts/bin/yarnpkg + - bin/yarnpkg + +dependencies: + nodejs.org: '>=18.3' + +build: + dependencies: + npmjs.com: '*' + script: | + npm install . --global --prefix={{prefix}} + + mkdir {{prefix}}/bin + cd {{prefix}}/bin + + ln -s ../lib/node_modules/@yarnpkg/monorepo/scripts/bin/yarn . + ln -s yarn yarnpkg +test: + script: | + yarn --version + yarnpkg --version + yarn add jquery \ No newline at end of file