Commit fb7e29e 1 parent 9a4aaeb commit fb7e29e Copy full SHA for fb7e29e
File tree 1 file changed +7
-13
lines changed
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 29
29
30
30
const node_build_lock = ReentrantLock ()
31
31
32
- ci () = get (ENV , " CI" , " neetjes" ) != " neetjes"
33
-
34
32
function build_node (dir)
35
33
lock (node_build_lock) do
36
- @info " PlutoPDF: Running npm install in scratch space..."
37
-
38
- if dir != = dirname (node_root_files[1 ])
34
+ npm_cache_dir = @get_scratch! (" npm_cache" )
35
+ cmd = addenv (npm_cmd (), " NPM_CONFIG_CACHE" => npm_cache_dir)
36
+
37
+ @info " PlutoPDF: Running npm install in scratch space..." cdm read (` $(cmd) --version` , String)
38
+
39
+ if dir != dirname (node_root_files[1 ])
39
40
for f in node_root_files
40
41
readwrite (f, joinpath (dir, basename (f)))
41
42
end
42
43
end
43
44
44
- npm_cache_dir = @get_scratch! (" npm_cache" )
45
-
46
- cmd = addenv (npm_cmd (), " NPM_CONFIG_CACHE" => npm_cache_dir)
47
-
48
- @debug " huh" cmd
49
-
50
45
cd (dir) do
51
- run (` $(cmd) --version` )
52
- run (ci () ? ` $(cmd) install --verbose` : ` $(cmd) install --audit-level=none --no-fund --no-audit` )
46
+ run (` $(cmd) install --audit-level=none --no-fund --no-audit` )
53
47
end
54
48
55
49
@info " PlutoPDF: Finished npm install."
You can’t perform that action at this time.
0 commit comments