Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-yarnpkg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
django-yarnpkg
Commits
699246f4
Verified
Commit
699246f4
authored
1 year ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
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
!10
Resolve "Install broken with newer Yarn versions (at least 4.x)"
Pipeline
#164894
failed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+5
-0
5 additions, 0 deletions
CHANGELOG.rst
django_yarnpkg/yarn.py
+1
-0
1 addition, 0 deletions
django_yarnpkg/yarn.py
with
6 additions
and
0 deletions
CHANGELOG.rst
+
5
−
0
View file @
699246f4
Version 6.1.1 (2024-02-09)
=====================================================
* Fix compatibility with Yarn 4.x
Version 6.1.0 (2023-02-19)
=====================================================
...
...
This diff is collapsed.
Click to expand it.
django_yarnpkg/yarn.py
+
1
−
0
View file @
699246f4
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment