diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-07-03 19:27:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-07-03 19:27:38 +0000 |
commit | a1fd3d0746ade4480fa73bf03b03b268b4c2fc6c (patch) | |
tree | 7e819595d15c58bd917c69fdaf2b6f530482d9f9 /pre_commit/languages/node.py | |
parent | Adding upstream version 2.5.1. (diff) | |
download | pre-commit-a1fd3d0746ade4480fa73bf03b03b268b4c2fc6c.tar.xz pre-commit-a1fd3d0746ade4480fa73bf03b03b268b4c2fc6c.zip |
Adding upstream version 2.6.0.upstream/2.6.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/languages/node.py')
-rw-r--r-- | pre_commit/languages/node.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pre_commit/languages/node.py b/pre_commit/languages/node.py index 26f4919..d99e6f2 100644 --- a/pre_commit/languages/node.py +++ b/pre_commit/languages/node.py @@ -10,6 +10,7 @@ import pre_commit.constants as C from pre_commit import parse_shebang from pre_commit.envcontext import envcontext from pre_commit.envcontext import PatchesT +from pre_commit.envcontext import UNSET from pre_commit.envcontext import Var from pre_commit.hook import Hook from pre_commit.languages import helpers @@ -56,6 +57,8 @@ def get_env_patch(venv: str) -> PatchesT: ('NODE_VIRTUAL_ENV', venv), ('NPM_CONFIG_PREFIX', install_prefix), ('npm_config_prefix', install_prefix), + ('NPM_CONFIG_USERCONFIG', UNSET), + ('npm_config_userconfig', UNSET), ('NODE_PATH', os.path.join(venv, lib_dir, 'node_modules')), ('PATH', (bin_dir(venv), os.pathsep, Var('PATH'))), ) |