MT#55813 MT#55391 Use bundled yarn

yarnpkg is no longer available in Debian/bookworm, while we already
Build-Depend on nodejs >= 18 (also for Debian/bullseye), so instead lets
ship a bundled yarnpkg, like we do also in e.g. ngcp-rest-api.

Related to git commit 4b03168df1

Change-Id: I5098f2f188a36eb72e0f01b49da7472f2c53b83f
pull/17/head
Michael Prokop 3 years ago
parent 3cdcf007c5
commit bd8a150825

File diff suppressed because one or more lines are too long

1
debian/control vendored

@ -8,7 +8,6 @@ Build-Depends:
debhelper-compat (= 13),
nodejs (>= 18),
python3,
yarnpkg,
Package: ngcp-csc-ui
Architecture: all

@ -0,0 +1,8 @@
/*
The file .yarn/releases/yarn-1.22.19.js is a copy of
https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js
Its source code is available at
https://github.com/yarnpkg/yarn/archive/refs/tags/v1.22.19.tar.gz
(and a copy of this is available at https://deb.sipwise.com/files/yarn_v1.22.19.tar.gz )
*/

3
debian/rules vendored

@ -8,8 +8,7 @@ export NODE_PATH=/usr/lib/nodejs:/usr/share/nodejs
# webpack 4.x compatibility, remove it when @quasar/app is upgraded and it uses webpack 5.x
export NODE_OPTIONS=--openssl-legacy-provider
# if yarnpkg is available use it, otherwise fall back to yarn
YARN_BIN := $(shell which yarnpkg || echo yarn)
YARN_BIN := ".yarn/releases/yarn-1.22.19.js"
%:
dh "$@"

Loading…
Cancel
Save