mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
NodeJS hooks compatibilty fix for Cygwin
This commit is contained in:
parent
a3f7b408ab
commit
b22ee6b191
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ healthy = helpers.basic_healthy
|
|||
def get_env_patch(venv): # pragma: windows no cover
|
||||
return (
|
||||
('NODE_VIRTUAL_ENV', venv),
|
||||
('NPM_CONFIG_PREFIX', venv),
|
||||
('npm_config_prefix', venv),
|
||||
('NPM_CONFIG_PREFIX', os.path.join(venv, 'bin') if sys.platform == 'cygwin' else venv),
|
||||
('npm_config_prefix', os.path.join(venv, 'bin') if sys.platform == 'cygwin' else venv),
|
||||
('NODE_PATH', os.path.join(venv, 'lib', 'node_modules')),
|
||||
('PATH', (os.path.join(venv, 'bin'), os.pathsep, Var('PATH'))),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue