Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/npm_install/npm_install.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,10 @@ def _yarn_install_impl(repository_ctx):
set -e
export YARN_IGNORE_PATH=1
(cd "{root}"; "{yarn}" {yarn_args})
if ! [[ -d "{root}/node_modules" ]]; then
echo "node_modules directory not found after yarn install, finished in $SECONDS seconds"
exit 1
fi
""".format(
root = root,
yarn = repository_ctx.path(yarn),
Expand Down