Skip to content

Commit

Permalink
Update deprecated npm option --no-optional to --omit=optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
brownts committed Dec 31, 2022
1 parent 0765712 commit 60376b9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
node-version: 16.x

- name: Install Module Dependencies
run: npm clean-install --no-optional
run: npm clean-install --omit=optional

- name: Lint Project
run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/lint_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 16.x

- name: Install Module Dependencies
run: npm clean-install --no-optional
run: npm clean-install --omit=optional

- name: Spellcheck Project Documentation
run: npm run spellcheck-docs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
# be released.
#
# NOTE:
# Use the `--no-optional` switch to prevent installation of the `ssh2` optional dependency
# Use the `--omit=optional` switch to prevent installation of the `ssh2` optional dependency
# (i.e., `cpu-features`) package which is used to provide accelerated crypto functionality,
# but which is a native add-on and would require platform specific packages.
#
- name: Install Module Dependencies
run: npm clean-install --no-optional
run: npm clean-install --omit=optional

#
# Package and Upload Extension
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: 16.x

- name: Install Module Dependencies
run: npm clean-install --no-optional
run: npm clean-install --omit=optional

- name: Test Project
run: npm test
Expand Down
4 changes: 2 additions & 2 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ updating package-lock.json as a result of the divergence. Using
version of the modules, which helps to eliminate any potential variability in
observed behavior.

In addition, you should also use the `--no-optional` switch as part of the
In addition, you should also use the `--omit=optional` switch as part of the
package installation command. There are some modules (e.g., SSH2) which include
optional functionality that utilizes native code specific to the platform.
Currently, this extension does not require these platform-specific modules and
Expand All @@ -251,7 +251,7 @@ released extension.
```shell
git clone https://github.com/WebFreak001/code-debug
cd code-debug
npm clean-install --no-optional
npm clean-install --omit=optional
```
## Optional VSCode Extensions (for development)
Expand Down

0 comments on commit 60376b9

Please sign in to comment.