Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
postinstall.cmd: Don't dedupe if NO_APM_DEDUPE set (#912)
Browse files Browse the repository at this point in the history
This environment var is already used for this purpose on Linux/macOS.
We should respect this env var on Windows too.
  • Loading branch information
DeeDeeG authored Jan 14, 2021
1 parent 591b834 commit 3df25f9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions script/postinstall.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ for /f "delims=" %%i in ('.\bin\node.exe -p "process.version + ' ' + process.arc
echo ^>^> Rebuilding apm dependencies with bundled Node !bundledVersion!
call .\bin\npm.cmd rebuild

echo.
echo ^>^> Deduping apm dependencies
call .\bin\npm.cmd dedupe
if defined NO_APM_DEDUPE (
echo.
echo ^>^> Deduplication disabled
) else (
echo.
echo ^>^> Deduping apm dependencies
call .\bin\npm.cmd dedupe
)

0 comments on commit 3df25f9

Please sign in to comment.