fix sveltekit respecting yarn env var (#3226)

* fix sveltekit respecting yarn env var

* adding myself to CONTRIBUTORS
This commit is contained in:
Alexander Bocken 2024-06-08 00:01:40 +02:00 committed by GitHub
parent 9b4dd54312
commit 4fb2efb8aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -175,6 +175,7 @@ Loudwig <https://github.com/Loudwig>
Wu Yi-Wei <https://github.com/Ianwu0812>
RRomeroJr <117.rromero@gmail.com>
Xidorn Quan <me@upsuper.org>
Alexander Bocken <alexander@bocken.org>
********************

View File

@ -460,7 +460,7 @@ impl BuildAction for SveltekitBuild {
if cfg!(windows) {
"cmd /c yarn build"
} else {
"./yarn build"
"$yarn build"
}
} else {
"echo"
@ -469,6 +469,7 @@ impl BuildAction for SveltekitBuild {
fn files(&mut self, build: &mut impl build::FilesHandle) {
build.add_inputs("node_modules", inputs![":node_modules"]);
build.add_inputs("yarn", inputs![":yarn:bin"]);
build.add_inputs("", &self.deps);
build.add_inputs("", inputs!["yarn.lock"]);
build.add_output_stamp("sveltekit.marker");