Open RodrigoDornelles opened 1 month ago
Packagist.org does not host any archive of the code (which is the main reason why it does not need to have an infrastructure owned by Microsoft to run it btw, as the cost of shipping metadata is much less than the cost of storing and distributing all the code). So there is no way to upload a pre-build package to packagist.org.
I see (at least) 2 possible ways here:
@stof One thing I thought about, to keep the same repository, would be to at least select a secondary branch, so that my CD pipeline would build and drop it in a completely separate branch. But I would need to be able to specify it in composer.json somehow.
I don't really like the idea of pointing to a binary repo instead of a source repo.
I was thinking about creating some libs using the Haxe language, as I can transpile it to Lua, JS, PHP... etc., reusing all the logic and making some small adjustments.
In NPM there is no problem with this because you have the
npm publish
command and you can send your package after a specific build as a minification or pre-compiled code.But in composer packagist, package deployment is associated with the source code, well the source code would just be hash and some js and php decorations.
I think it might be interesting to have a way like NPM to publish a pre-build package, currently they have a system that checks whether the CD pipeline was actually published, it's something interesting if the concern is security against malware.