diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6088610bd3ec48598c345aab8f4c2b6c3940648f..6baeefe63fac4d89685bbac8f108af17f4b0edc7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,8 @@ +Version 6.1.1 (2024-02-09) +===================================================== + +* Fix compatibility with Yarn 4.x + Version 6.1.0 (2023-02-19) ===================================================== diff --git a/django_yarnpkg/yarn.py b/django_yarnpkg/yarn.py index c252dc03a23cf5c3fd85a78f426c191d244e6d68..f87af02acd7b7d5b8020c6120cdf369c6933c44a 100644 --- a/django_yarnpkg/yarn.py +++ b/django_yarnpkg/yarn.py @@ -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):