Skip to content

Commit bafb153

Browse files
committed
We can't run this for yarn on Windows because Crystal appends .exe to yarn which doesn't exist. There may be a way around it, but I don't have a way to test
1 parent 66c9769 commit bafb153

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/web_app_skeleton/script/system_check.cr.ecr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ require "./helpers/*"
1111
# should go in your Procfile.dev.
1212

1313
<%- if browser? -%>
14+
{% if flag(:windows) %}
15+
# Crystal appends ".exe" to the end of the command when searching for an executable; however,
16+
# depending on how you installed yarn, there may not be a "yarn.exe" available causing this to fail
17+
{% else %}
1418
if command_not_found "yarn"
1519
print_error "Yarn is not installed\n See https://yarnpkg.com/lang/en/docs/install/ for install instructions."
1620
end
21+
{% end %}
1722
<%- end -%>
1823

1924
# CUSTOM PRE-BOOT CHECKS

0 commit comments

Comments
 (0)