Monorepo for @malwation/* npm packages.
| Package | Description |
|---|---|
| @malwation/logfmt | Winston logfmt formatter for NestJS |
| @malwation/kubernetes-client-node | NodeJS client for Kubernetes |
npm install # install all workspace dependencies
npm run build # build all packages
npm test # test all packages
npm run build -w packages/logfmt # build a single package
npm run test -w packages/logfmt # test a single packagePublishing is automated via Changesets:
- Run
npx changesetand describe your change (patch/minor/major). - Commit the generated
.changeset/*.mdfile with your PR. - On merge to main, a "Version Packages" PR is auto-created with version bumps and changelog updates.
- Merging that PR publishes the changed packages to npm.
Setup: Add an NPM_TOKEN secret (npm automation token for @malwation org) in GitHub repo Settings > Secrets > Actions.
- Create
packages/<name>/withpackage.json,tsconfig.json(extending../../tsconfig.base.json),jest.config.js, andsrc/. - Ensure
package.jsonhas"publishConfig": { "access": "public" }. - Run
npm installfrom root.