mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
npm module compatible with npm5 (#26582)
* npm module compatible with npm5 Uses the `--long` flag in `npm list` to get the `missing` key back. * npm: add integration tests * npm: test the module with npm 4 as well * Remove debug tasks, use variables * Use tests instead of filters * Adds xcambar as a maintainer of the npm module
This commit is contained in:
committed by
René Moser
parent
386c6b4051
commit
cea681a5c0
@@ -185,7 +185,7 @@ class Npm(object):
|
||||
return ''
|
||||
|
||||
def list(self):
|
||||
cmd = ['list', '--json']
|
||||
cmd = ['list', '--json', '--long']
|
||||
|
||||
installed = list()
|
||||
missing = list()
|
||||
|
||||
Reference in New Issue
Block a user