Skip to content

Commit 493c20c

Browse files
committed
Use the --include command, hides warning messages
Fixes #1983
1 parent e2c6a82 commit 493c20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/languages/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def install_environment(
9393
# install as if we installed from git
9494

9595
local_install_cmd = (
96-
'npm', 'install', '--dev', '--prod',
96+
'npm', 'install', '--include=dev', '--include=prod',
9797
'--ignore-prepublish', '--no-progress', '--no-save',
9898
)
9999
lang_base.setup_cmd(prefix, local_install_cmd)

0 commit comments

Comments
 (0)