diff options
| author | mo khan <mo.khan@gmail.com> | 2020-11-09 17:13:22 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-11-10 09:19:19 -0700 |
| commit | 91f1671c67de9c51407f8527d8fc6197463151d2 (patch) | |
| tree | 97e7ac6fffec356e57b0c52e10eacd716281830e /lib/license/finder/ext/npm.rb | |
| parent | 1bc270fea3b352b44dfcef3fe16e97a2bbd4d7a5 (diff) | |
fix: stream results to stdout
* chore: remove verbose output from bundler prep
* docs: add CHANGELOG entry
* style: remove unnecessary logging
Diffstat (limited to 'lib/license/finder/ext/npm.rb')
| -rw-r--r-- | lib/license/finder/ext/npm.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/license/finder/ext/npm.rb b/lib/license/finder/ext/npm.rb index 18af4a7..59244c9 100644 --- a/lib/license/finder/ext/npm.rb +++ b/lib/license/finder/ext/npm.rb @@ -13,7 +13,7 @@ module LicenseFinder if lockfile? shell.execute([:npm, :ci, "--production"], env: default_env, capture: false) else - shell.execute([:npm, :install, '--no-save', "--production"], env: default_env) + shell.execute([:npm, :install, '--no-save', "--production"], env: default_env, capture: false) end end end @@ -32,7 +32,7 @@ module LicenseFinder def npm_json stdout, _stderr, status = within_project_path do - shell.execute("npm list --json --long --production") + shell.execute([:npm, "list", "--json", "--long", "--production"]) end status.success? ? JSON.parse(stdout) : {} end |
