Skip to content

Regenerate the Composer autoloader on every build and create the matching skeleton - #4

Merged
wheakerd merged 2 commits into
mainfrom
regenerate-autoloader-and-match-skeleton
Nov 11, 2026
Merged

wheakerd merged 2 commits into
mainfrom
regenerate-autoloader-and-match-skeleton

Conversation

@wheakerd

Copy link
Copy Markdown
Contributor

Summary

Every build now regenerates the project's Composer autoloader before it generates the build metadata, so a class added after composer install is found by build, run, each --watch rebuild, and package without a manual composer dump-autoload, also when the project's class map is authoritative. The project's own autoloader settings and its installation mode are kept: a --no-dev installation does not get its development autoload rules back. A released SKERNEL now creates super-kernel/skeleton at exactly its own version with new; from source without a version it keeps the development line. Both READMEs follow.

Validation

composer validate --strict, composer test (172 tests), and composer format:check pass with the locked packages. On a project created from the released template with --no-dev, a class added after installation was collected by build, and a packaged PHAR started.

🤖 Generated with Claude Code

wheakerd and others added 2 commits November 10, 2026 18:11
…hing skeleton

A build now runs Composer's dump-autoload in the project before the generator, so
a class added after composer install is known to a classmap-authoritative
autoloader without a manual dump. Composer takes the optimization settings from
the project's composer.json, and the dev flag of installed.json keeps a --no-dev
installation without its development autoload rules. build, run, every --watch
rebuild, and package's build step use the Composer that new and package locate;
a Composer that cannot be provided or fails stops the build before it generates
anything. The from-source self-build still runs without Composer.

A released SKERNEL now creates super-kernel/skeleton at exactly its own version;
one without a version keeps the development line. When Composer fails for a
released SKERNEL, the message names that version and says to run
skernel self-update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refresh the lock to the components' current commits, which changed only
their READMEs.

Co-Authored-By: Claude <noreply@anthropic.com>
@wheakerd
wheakerd merged commit ad28a73 into main Nov 11, 2026
@wheakerd
wheakerd deleted the regenerate-autoloader-and-match-skeleton branch November 11, 2026 02:27
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