Skip to content
Snippets Groups Projects
Verified Commit 699246f4 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Init Yarn with a package.json before installing

Necessary to make django-yarnpkg it compatible with Yarn 4.x
parent 97d947af
No related branches found
No related tags found
1 merge request!10Resolve "Install broken with newer Yarn versions (at least 4.x)"
Pipeline #164894 failed
Version 6.1.1 (2024-02-09)
=====================================================
* Fix compatibility with Yarn 4.x
Version 6.1.0 (2023-02-19)
=====================================================
......
......@@ -35,6 +35,7 @@ class YarnAdapter(object):
def install(self, packages, *options):
"""Install packages from yarn"""
self.call_yarn(["init", "--yes"])
return self.call_yarn(['add'] + list(options) + list(packages))
def _accumulate_dependencies(self, data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment