mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-26 09:08:25 -05:00
Merge pull request #578 from Lucas-C/master
NodeJS hooks compatibilty fix for Cygwin - fix #455
This commit is contained in:
@@ -17,10 +17,11 @@ healthy = helpers.basic_healthy
|
||||
|
||||
|
||||
def get_env_patch(venv): # pragma: windows no cover
|
||||
config = os.path.join(venv, 'bin') if sys.platform == 'cygwin' else venv
|
||||
return (
|
||||
('NODE_VIRTUAL_ENV', venv),
|
||||
('NPM_CONFIG_PREFIX', venv),
|
||||
('npm_config_prefix', venv),
|
||||
('NPM_CONFIG_PREFIX', config),
|
||||
('npm_config_prefix', config),
|
||||
('NODE_PATH', os.path.join(venv, 'lib', 'node_modules')),
|
||||
('PATH', (os.path.join(venv, 'bin'), os.pathsep, Var('PATH'))),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user