Skip to content

Commit

Permalink
Support npm 7 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Feb 21, 2021
1 parent b7286f7 commit a90860d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
if: runner.os == 'macOS'
- uses: actions/setup-python@v1
- name: Setup NodeJS
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '10.x'
node-version: '14'
check-latest: true
- name: Install
run: npm i
# Make sure no new dependencies were installed after running 'npm i'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ export class NpmTreeNode extends RootNode {
}

private runNpmLs(scope: NpmGlobalScopes): any {
return JSON.parse(ScanUtils.executeCmd('npm ls --json --only=' + scope, this.workspaceFolder).toString());
return JSON.parse(ScanUtils.executeCmd('npm ls --json --all --only=' + scope, this.workspaceFolder).toString());
}
}

0 comments on commit a90860d

Please sign in to comment.