The puprose of this repository is to facilitate publishing deprecation
packages as Fastiy moves from fastify-* packages to @fastify/* packages.
Each package defined in lib/modules.json will generate a deprecation package
in the out/ directory. This is accomplished by running npm run build.
Subsequently, npm run publish:live will issue a publish of those modules
to the live npmjs.org registry.
- Copy
sample.envto.envand adjust with real values node build-data.mjsto generate source datanode index.mjsto generate deprecated module sources and repo changesdocker-compose upto start Verdaccio servernpm run publish:localto publish modules to Verdaccio server
- Copy
sample.envto.envand adjust with real values. node build-data.mjsto generate./lib/modules.json.DRY_RUN=0 node index.mjs | tee build.log.jsonto generate deprecated modules sources and create PRs to rename modules with new major versions. This step will generate log data that looks like:{ "fastify-bearer-auth": { "deprecationModule": { "published": true, "versionPublished": "6.3.0-rc.1" }, "replacementModule": { "prCreated": true, "prUrl": "https://github.com/fastify/fastify-bearer-auth/pull/127" } } }DRY_RUN=0 ./publish-live.shto publish the deprecated modules.