Mercurial > libervia-web
diff libervia/server/tasks/implicit/task_js_modules.py @ 1273:10748aa888a9
tasks (js_modules, sass): check for `yarnpkg` before `yarn`, as it is the name used in Debian
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 26 May 2020 12:33:09 +0200 |
parents | 0b269d4a46a3 |
children | 2f6dac783c8e |
line wrap: on
line diff
--- a/libervia/server/tasks/implicit/task_js_modules.py Mon May 25 15:51:07 2020 +0200 +++ b/libervia/server/tasks/implicit/task_js_modules.py Tue May 26 12:33:09 2020 +0200 @@ -25,10 +25,7 @@ with package_path.open('w') as f: json.dump(package, f) - try: - cmd = self.findCommand('yarn') - except exceptions.NotFound: - cmd = self.findCommand('npm') + cmd = self.findCommand('yarnpkg', 'yarn', 'npm') await self.runCommand(cmd, 'install', path=str(self.build_path)) try: