We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721b4b1 commit 50de32eCopy full SHA for 50de32e
build.ts
@@ -2,15 +2,14 @@ import { execSync } from "node:child_process";
2
import path from "node:path";
3
4
const testbenchDir = path.join(__dirname, "vendor", "bin", "testbench");
5
+
6
const artisan = (command: string): void => console.error(execSync(`${testbenchDir} ${command}`).toString('utf8'))
7
8
export function setup(): void {
9
try {
- if (process.env.WAYFINDER_CACHE_ROUTES) {
10
- artisan('route:cache')
11
- } else {
12
- artisan('route:clear')
13
- }
+ process.env.WAYFINDER_CACHE_ROUTES
+ ? artisan('route:cache')
+ : artisan('route:clear')
14
15
artisan('wayfinder:generate --path=workbench/resources/js --with-form')
16
} catch (error) {
0 commit comments