Skip to content

Commit

Permalink
chore: make run-against-dist permanently install Verdaccio tool
Browse files Browse the repository at this point in the history
We can't combine `--daemon` with running ephemerally using `npx`,
or the directory will be removed too quickly.

Fixes the build.
  • Loading branch information
rix0rrr committed Apr 22, 2020
1 parent 51ce855 commit cbe735e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/aws-cdk/test/integ/run-against-dist.bash
Expand Up @@ -70,6 +70,10 @@ function serve_npm_packages() {
# Start a mock npm repository from the given tarballs
#------------------------------------------------------------------------------
header "Starting local NPM Repository"

# When using '--daemon', 'npm install' first so the files are permanent, or
# 'npx' will remove them too soon.
npm install serve-npm-tarballs
eval $(npx serve-npm-tarballs --glob "${tarballs_glob}" --daemon)
trap "kill $SERVE_NPM_TARBALLS_PID" EXIT
}
Expand Down

0 comments on commit cbe735e

Please sign in to comment.