@mylifematter/shared-types (1.0.0)
Installation
@mylifematter:registry=https://git.mylifematter.ru/api/packages/mlm/npm/npm install @mylifematter/shared-types@1.0.0"@mylifematter/shared-types": "1.0.0"About this package
@mylifematter/shared-types
Shared TypeScript types and event contracts used by the MyLifeMatter api and web
services. Published as a private npm package to the Gitea registry of the mlm org.
Part of the MyLifeMatter platform — see mlm/infra
for the overall architecture and how the services fit together.
Build
pnpm install
pnpm build # tsc -> dist/ (index.js + index.d.ts)
pnpm typecheck # tsc --noEmit
Publishing
The package is published to https://git.mylifematter.ru/api/packages/mlm/npm/
(see publishConfig in package.json). You need a Gitea token with write:package.
Create a ~/.npmrc (do not commit it) with:
@mylifematter:registry=https://git.mylifematter.ru/api/packages/mlm/npm/
//git.mylifematter.ru/api/packages/mlm/npm/:_authToken=<YOUR_GITEA_TOKEN>
Then:
npm publish
Consuming
Consumers (mlm/api, mlm/web) depend on @mylifematter/shared-types at a fixed
version and ship a repo-local .npmrc pointing the @mylifematter scope at the
registry above. The auth token is supplied via a personal ~/.npmrc or a CI secret,
never committed.
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| typescript | ^5.4.0 |