Skip to content

Commit 60376b9

Browse files
committed
Update deprecated npm option --no-optional to --omit=optional.
1 parent 0765712 commit 60376b9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
node-version: 16.x
1616

1717
- name: Install Module Dependencies
18-
run: npm clean-install --no-optional
18+
run: npm clean-install --omit=optional
1919

2020
- name: Lint Project
2121
run: npm run lint

.github/workflows/lint_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
node-version: 16.x
2020

2121
- name: Install Module Dependencies
22-
run: npm clean-install --no-optional
22+
run: npm clean-install --omit=optional
2323

2424
- name: Spellcheck Project Documentation
2525
run: npm run spellcheck-docs

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ jobs:
5555
# be released.
5656
#
5757
# NOTE:
58-
# Use the `--no-optional` switch to prevent installation of the `ssh2` optional dependency
58+
# Use the `--omit=optional` switch to prevent installation of the `ssh2` optional dependency
5959
# (i.e., `cpu-features`) package which is used to provide accelerated crypto functionality,
6060
# but which is a native add-on and would require platform specific packages.
6161
#
6262
- name: Install Module Dependencies
63-
run: npm clean-install --no-optional
63+
run: npm clean-install --omit=optional
6464

6565
#
6666
# Package and Upload Extension

.github/workflows/unit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
node-version: 16.x
1919

2020
- name: Install Module Dependencies
21-
run: npm clean-install --no-optional
21+
run: npm clean-install --omit=optional
2222

2323
- name: Test Project
2424
run: npm test

HACKING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ updating package-lock.json as a result of the divergence. Using
235235
version of the modules, which helps to eliminate any potential variability in
236236
observed behavior.
237237

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

0 commit comments

Comments
 (0)