TypeScript libraries used by Ambar projects.
A single repository, multiple libraries. Each library should live in its own directory with all of its code and configuration.
Just install it using the name of the package
$ pnpm add @ambarltd/coreMake sure to update the version field in package.json.
You need to create a GitHub classic token with the permission write:packages enabled.
Then you login in a session
$ npm login --scope=@ambarltd --auth-type=legacy --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKENThen you can publish with npm or pnpm.
$ pnpm publishThe package.json must have all the following fields:
{
"name": "@ambarltd/core",
"version": "0.1.0",
"type": "module",
"repository": "https://github.com/ambarltd/typescript-libs.git",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}The name field must include the @ambarltd namespace.