Skip to content

It helps to publish your TypeScript libraries to npm.

Notifications You must be signed in to change notification settings

suguru03/ts-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-publisher

It helps to publish your TypeScript libraries to npm.

Features

  • compiles your TypeScript code into outDir which you defined in tsconfig.json.
  • changes permissions of binary files
  • copy package.json into outDir and remove private flag
  • copy README.md into outDir
  • publish your built files to npm

How to install

$ npm install -D ts-publisher
// or
$ yarn add -D ts-publisher

Build

$ npx tsp build
// or
$ yarn tsp build

Options

name description
-p, --project specify tsconfig path. The default is <your library>/tsconfig.json

Publish

You need to login npm cli before using the publish task.

$ npx tsp publish
// or
$ yarn tsp publish

Options

name description
-p, --project same as build
-o, --otp one time password

About

It helps to publish your TypeScript libraries to npm.

Resources

Stars

Watchers

Forks

Packages

No packages published