mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
build: build transmission-web with npm instead of yarn (#4637)
This commit is contained in:
+4
-5
@@ -77,12 +77,11 @@ fi
|
||||
|
||||
# format JS
|
||||
cd "${root}/web" || exit 1
|
||||
yarn_args='--silent --no-progress --non-interactive'
|
||||
yarn_lint_args="$([ -n "$fix" ] && echo 'lint:fix' || echo 'lint')"
|
||||
if ! yarn $yarn_args install; then
|
||||
[ -n "$fix" ] || echo 'JS code could not be checked -- "yarn install" failed'
|
||||
npm_lint_args="$([ -n "$fix" ] && echo 'lint:fix' || echo 'lint')"
|
||||
if ! npm install &>/dev/null; then
|
||||
[ -n "$fix" ] || echo 'JS code could not be checked -- "npm install" failed'
|
||||
exitcode=1
|
||||
elif ! yarn $yarn_args $yarn_lint_args; then
|
||||
elif ! npm run $npm_lint_args &>/dev/null; then
|
||||
[ -n "$fix" ] || echo 'JS code needs formatting'
|
||||
exitcode=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user