Skip to content

Commit 783ade2

Browse files
committed
fix condition for shrinkwrap
1 parent a835a5c commit 783ade2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ansible/roles/builder/templates/basic_node

ansible/roles/builder/templates/basic_node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ADD ./repo/package.json /{{ name }}/package.json
2727

2828
# Add shrinkwrap from the current build context (`.` is the repo) first
2929
# If we change a non first-level dependency, this will break cache as expected
30-
{% if has_shrinkwrap %}
30+
{% if has_shrinkwrap is defined %}
3131
ADD ./repo/npm-shrinkwrap.json /{{ name }}/npm-shrinkwrap.json
3232
{% endif %}
3333

0 commit comments

Comments
 (0)