Skip to content

Commit 50de32e

Browse files
committed
formatting
1 parent 721b4b1 commit 50de32e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { execSync } from "node:child_process";
22
import path from "node:path";
33

44
const testbenchDir = path.join(__dirname, "vendor", "bin", "testbench");
5+
56
const artisan = (command: string): void => console.error(execSync(`${testbenchDir} ${command}`).toString('utf8'))
67

78
export function setup(): void {
89
try {
9-
if (process.env.WAYFINDER_CACHE_ROUTES) {
10-
artisan('route:cache')
11-
} else {
12-
artisan('route:clear')
13-
}
10+
process.env.WAYFINDER_CACHE_ROUTES
11+
? artisan('route:cache')
12+
: artisan('route:clear')
1413

1514
artisan('wayfinder:generate --path=workbench/resources/js --with-form')
1615
} catch (error) {

0 commit comments

Comments
 (0)