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

Set nodeLinker for Yarn to node-modules

parent 444ccd6b
No related branches found
Tags 6.1.2
No related merge requests found
Pipeline #165019 failed
Version 6.1.2 (2024-02-10)
=====================================================
* Explicitly set nodeLinker config to fix compatibility with Yarn 4.x
Version 6.1.1 (2024-02-09)
=====================================================
......
......@@ -36,6 +36,7 @@ class YarnAdapter(object):
def install(self, packages, *options):
"""Install packages from yarn"""
self.call_yarn(["init", "--yes"])
self.call_yarn(["config", "set", "nodeLinker", "node-modules"])
return self.call_yarn(['add'] + list(options) + list(packages))
def _accumulate_dependencies(self, data):
......
from setuptools import setup, find_packages
version = '6.1.1'
version = '6.1.2'
setup(
name='django-yarnpkg',
......
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