mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 11:59:09 -07: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:
parent
386c6b4051
commit
cea681a5c0
7 changed files with 117 additions and 2 deletions
|
@ -185,7 +185,7 @@ class Npm(object):
|
|||
return ''
|
||||
|
||||
def list(self):
|
||||
cmd = ['list', '--json']
|
||||
cmd = ['list', '--json', '--long']
|
||||
|
||||
installed = list()
|
||||
missing = list()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue