Skip to content

Call alert:publish after Composer dumps the autoloader - #113

Merged
rbruhn merged 1 commit into
developmentfrom
112-alert-publish-composer-script
Oct 21, 2026
Merged

rbruhn merged 1 commit into
developmentfrom
112-alert-publish-composer-script

Conversation

@rbruhn

@rbruhn rbruhn commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #112.

composer.json's post-autoload-dump script still ran php artisan sweetalert:publish, which Sweet Alert 8 renamed to alert:publish. Every composer install that runs scripts now fails with Command "sweetalert:publish" is not defined. That includes local installs and the deploy's deploy:vendors step.

CI didn't catch it because its composer install runs with --no-scripts.

Change

post-autoload-dump runs php artisan alert:publish --assets --force --ansi, which publishes public/vendor/sweetalert/sweet-alert.js, the file the v8 alert view loads.

Tested

composer validate passes. composer install and composer dump-autoload succeed and publish the asset.

To verify on development

The deploy's deploy:vendors step succeeds.

@rbruhn rbruhn self-assigned this Oct 21, 2026
@rbruhn
rbruhn merged commit 948f479 into development Oct 21, 2026
2 checks passed
@rbruhn
rbruhn deleted the 112-alert-publish-composer-script branch October 21, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant