Example npm monorepo with multiple publishable packages.
@YOUR-ACCOUNT/utils— Utility functions@YOUR-ACCOUNT/greeting— Greeting utilities
- Update
@YOUR-ACCOUNTin.npmrcand allpackage.jsonfiles with your account slug - Configure authentication:
npm login --registry=https://registry.vlt.io/YOUR-ACCOUNT/main/ --scope=@YOUR-ACCOUNT
- Install dependencies:
npm install
- Build packages:
npm run build
To publish all packages:
npm publish --workspacesTo publish a specific package:
cd packages/greeting
npm publishSee the vlt publishing guide for more details.