mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 20:40:08 -06:00
Use npm install git+file:// instead of npm install .
This commit is contained in:
@@ -62,10 +62,11 @@ def install_environment(prefix, version, additional_dependencies):
|
||||
cmd.extend(['-n', version])
|
||||
cmd_output(*cmd)
|
||||
|
||||
dep = 'git+file://{}'.format(prefix.prefix_dir)
|
||||
with in_env(prefix, version):
|
||||
helpers.run_setup_cmd(
|
||||
prefix,
|
||||
('npm', 'install', '-g', '.') + additional_dependencies,
|
||||
('npm', 'install', '-g', dep) + additional_dependencies,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user