Skip to content

Commit

Permalink
Removed script_path() since PR sass/dart-sass#1411 was merged
Browse files Browse the repository at this point in the history
  • Loading branch information
azizk committed Apr 10, 2023
1 parent b5c66b9 commit fe91888
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
22 changes: 1 addition & 21 deletions lib/dart_sass.ex
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ defmodule DartSass do
end
end

# TODO: Remove when dart-sass will exit when stdin is closed.
@doc false
def script_path() do
Path.join(:code.priv_dir(:dart_sass), "dart_sass.bash")
end

@doc """
Returns the version of the Sass executable (or snapshot).
Expand Down Expand Up @@ -183,21 +177,7 @@ defmodule DartSass do
stderr_to_stdout: true
]

args = config_args ++ extra_args
path = bin_path()

# TODO: Remove when dart-sass will exit when stdin is closed.
# Link: https://github.com/sass/dart-sass/pull/1411
path =
if "--watch" in args and platform() != :windows do
[script_path() | path]
else
path
end

path
|> cmd(args, opts)
|> elem(1)
cmd(bin_path(), config_args ++ extra_args, opts) |> elem(1)
end

@doc """
Expand Down
31 changes: 0 additions & 31 deletions priv/dart_sass.bash

This file was deleted.

0 comments on commit fe91888

Please sign in to comment.