Skip to content

Commit

Permalink
Avoid modifying package-lock.json when installing subpackages.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Oct 17, 2022
1 parent 6b71c77 commit 218260b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ install() {
}

PKG=$(<package.json)
PKG_LOCK=$(<package-lock.json)

# Link local packages into node_modules.
install runtime
install transform
install preset

echo "$PKG" > package.json
echo "$PKG_LOCK" > package-lock.json

# We need to use the symlink paths rather than the real paths, so that the
# regenerator-* packages appear to reside in node_modules.
Expand Down

0 comments on commit 218260b

Please sign in to comment.