2 ms·
Require all public packages published from accessible source code built/compiled by the package repository project directly... This would have the side effect
by tracker1 8y ago
Require all public packages published from accessible source code built/compiled by the package repository project directly...
This would have the side effect of requiring likely paid exceptions for popular binary packages or those that have more complex build requirements. However, the vast majority of npm packages could probably be built via some form of template.
npm test - must have a configured script in package.json and must not error (this is easy enough to work around, but should be required)
npm run build - should be added as a required step, where the output to be packaged is outputted process.env.BUID_OUTPUT as a directory.
This would at the very least minimize some of the risks... signed commits could be an additional step, but coordination to make tooling for this easier to use would have to happen.
Also, ownership changes should have a FREEZE only allowing a new Major release after transfer of a package.