Skip to content

Commit

Permalink
Fix yarn classic
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish committed Jul 5, 2023
1 parent c761cfc commit b65c170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/sass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tasks:
if [ "{{.DRAINPIPE_SASS}}" == "" ]; then echo "🪠 Nothing provided for Sass to compile"; exit 0; fi
FILES="{{if .DRAINPIPE_SASS}}{{.DRAINPIPE_SASS | catLines | trim}}{{end}}"
COMMAND="node ./node_modules/.bin/drainpipe-sass"
if [ -f "yarn.lock" ]; then
if [ -f "yarn.lock" ] && [ ! -d "node_modules" ]; then
COMMAND="yarn drainpipe-sass"
fi
$COMMAND --files="$FILES"{{.args}}
Expand Down

0 comments on commit b65c170

Please sign in to comment.