Skip to content

Commit

Permalink
Merge pull request #148 from seomoz/vinit-fix-npm-dep-bug
Browse files Browse the repository at this point in the history
ROGER-2646 fix bug with private repo dependencies with branch or tag
  • Loading branch information
vmahedia authored Mar 30, 2018
2 parents b94be53 + 2242076 commit 503a53d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.18
0.4.19
5 changes: 2 additions & 3 deletions cli/docker_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ def packagejson_swaparoo():
# Do the swaparoo
for name, version in data['dependencies'].items():
if('git' in version or 'https' in version) and 'seomoz' in version:
data['dependencies'].pop(name, None)
print("popped {} as a private dependency".format(name))
os.system('npm install {}'.format(name))
print("popped {} as a private dependency".format(version))
os.system('npm install {}'.format(version))

# Write modified
with open('package.json', 'w+') as packagejson:
Expand Down

0 comments on commit 503a53d

Please sign in to comment.