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.env
to.env
and adjust with real values node build-data.mjs
to generate source datanode index.mjs
to generate deprecated module sources and repo changesdocker-compose up
to start Verdaccio servernpm run publish:local
to publish modules to Verdaccio server
- Copy
sample.env
to.env
and adjust with real values. node build-data.mjs
to generate./lib/modules.json
.DRY_RUN=0 node index.mjs | tee build.log.json
to 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.sh
to publish the deprecated modules.