Skip to content

Commit

Permalink
fix: 🐛 windows script
Browse files Browse the repository at this point in the history
  • Loading branch information
caorushizi committed Dec 19, 2024
1 parent 1621a88 commit 061ffc9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env zx
import { echo, $ } from "zx";
$.verbose = true;
if (process.platform === "win32") {
$.prefix = "";
$.shell = "pwsh.exe";
}

echo("开始构建 production ...");
echo("当前所在的目录是:", process.cwd());
Expand Down
4 changes: 4 additions & 0 deletions scripts/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { $, echo } from "zx";
import type { ProcessOutput } from "zx";
import { printObject } from "./utils";
$.verbose = true;
if (process.platform === "win32") {
$.prefix = "";
$.shell = "pwsh.exe";
}

echo("开始执行代码质量评估...\n");

Expand Down
4 changes: 4 additions & 0 deletions scripts/dev.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env zx
import { echo, $ } from "zx";
$.verbose = true;
if (process.platform === "win32") {
$.prefix = "";
$.shell = "pwsh.exe";
}

echo("开始构建 development ...");
echo("当前所在的目录是:", process.cwd());
Expand Down
4 changes: 4 additions & 0 deletions scripts/pre-commit.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env zx
import { $, echo } from "zx";
$.verbose = true;
if (process.platform === "win32") {
$.prefix = "";
$.shell = "pwsh.exe";
}

echo("开始执行代码质量评估...\n");

Expand Down
4 changes: 4 additions & 0 deletions scripts/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import { echo, $ } from "zx";

$.verbose = true;
if (process.platform === "win32") {
$.prefix = "";
$.shell = "pwsh.exe";
}

echo("开始构建 production ...");
echo("当前所在的目录是:", process.cwd());
Expand Down

0 comments on commit 061ffc9

Please sign in to comment.