Skip to content

Commit 1368340

Browse files
committed
Use npm install git+file:// instead of npm install .
1 parent 889124b commit 1368340

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pre_commit/languages/node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ def install_environment(prefix, version, additional_dependencies):
6262
cmd.extend(['-n', version])
6363
cmd_output(*cmd)
6464

65+
dep = 'git+file://{}'.format(prefix.prefix_dir)
6566
with in_env(prefix, version):
6667
helpers.run_setup_cmd(
6768
prefix,
68-
('npm', 'install', '-g', '.') + additional_dependencies,
69+
('npm', 'install', '-g', dep) + additional_dependencies,
6970
)
7071

7172

0 commit comments

Comments
 (0)