fix: use preinstalled Jaspr CLI for build command

`dart run jaspr_cli:jaspr build` only resolves jaspr_cli from the project's
own dependency graph, and `jaspr create` does not add it to pubspec.yaml --
Jaspr treats the CLI as part of the environment. A stock Jaspr project
therefore failed to build with:

    Could not find package `jaspr_cli` or file `jaspr_cli:jaspr`

The Flutter runtime now preinstalls the CLI and puts it on PATH
(open-runtimes/open-runtimes#572), so the plain binary is the correct call.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matej BačoandClaude Opus 5 committed 2026-09-19 13:59:42 +02:00
1 parent c3227b3426
commit ce8c7c2328
1 file changed
+1 -1
+1 -1
View File
@@ -332,7 +332,7 @@ return [
'adapters' => [
'ssr' => [
'key' => 'ssr',
'buildCommand' => 'dart run jaspr_cli:jaspr build',
'buildCommand' => 'jaspr build',
'installCommand' => 'dart pub get',
'outputDirectory' => './build/jaspr',
'startCommand' => 'bash helpers/jaspr/server.sh',