mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use npm install git+file:// instead of npm install .
This commit is contained in:
parent
889124b5ca
commit
136834038d
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue