From a9fe81884da85ec2f64f30c107755254b30b6eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aziz=20K=C3=B6ksal?= Date: Mon, 10 Apr 2023 13:50:46 +0200 Subject: [PATCH] Removed script_path() since PR sass/dart-sass#1411 was merged --- lib/dart_sass.ex | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/lib/dart_sass.ex b/lib/dart_sass.ex index 7c3b803..83113a3 100644 --- a/lib/dart_sass.ex +++ b/lib/dart_sass.ex @@ -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). @@ -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 """