From 62fdff93d3f8e1b9857a0bdbc98f775c2045e13a Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Thu, 11 Jan 2024 22:11:25 +0100 Subject: [PATCH] boyscouting --- composer.json | 6 +++--- src/Exceptions/BundlingFailedException.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8e3bd8b..a1a3a73 100644 --- a/composer.json +++ b/composer.json @@ -74,9 +74,9 @@ "setup-workbench": [ "cd ./workbench && npm ci", - "ln -sf $PWD/workbench/jsconfig.json ./vendor/orchestra/testbench-core/laravel/jsconfig.json", - "ln -sf $PWD/workbench/node_modules/ ./vendor/orchestra/testbench-core/laravel/node_modules", - "ln -sf $PWD/workbench/resources/js/ ./vendor/orchestra/testbench-core/laravel/resources/js" + "ln -sf $PWD/workbench/jsconfig.json ./vendor/orchestra/testbench-core/laravel", + "ln -sf $PWD/workbench/node_modules/ ./vendor/orchestra/testbench-core/laravel", + "ln -sf $PWD/workbench/resources/js/ ./vendor/orchestra/testbench-core/laravel/resources" ], "serve": [ diff --git a/src/Exceptions/BundlingFailedException.php b/src/Exceptions/BundlingFailedException.php index 6fe82d9..fd1c94d 100644 --- a/src/Exceptions/BundlingFailedException.php +++ b/src/Exceptions/BundlingFailedException.php @@ -33,6 +33,7 @@ public function getSolution(): Solution str_contains($this->result->errorOutput(), 'bun: No such file or directory') => $this->bunNotInstalledSolution(), str_contains($this->result->errorOutput(), 'error: Could not resolve') => $this->moduleNotResolvableSolution(), str_contains($this->result->errorOutput(), 'tsconfig.json: ENOENT') => $this->missingJsconfigFileSolution(), + str_contains($this->result->errorOutput(), 'Cannot find tsconfig') => $this->missingJsconfigFileSolution(), default => BaseSolution::create() ->setSolutionTitle('Failed to run the following process:') ->setSolutionDescription($this->result->command())