Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.05 KB

File metadata and controls

52 lines (36 loc) · 1.05 KB

typescript-libs

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.

How to use

Just install it using the name of the package

$ pnpm add @ambarltd/core

Publishing new versions

Make 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: TOKEN

Then you can publish with npm or pnpm.

$ pnpm publish

Creating a library

The 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.