Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tiny-ts-package-bundler

herewardieh9MIT1.1.4TypeScript support: included

tiny typescript package bundler including generating global typescript declaration file, converting typescript to javascript, creating package.json file for npm package release

esbuild, tsup, npm release, typescript, command tool

readme

tinyTS-package-bundler

Tiny tool kit to build your typescript project, powered by tsup.

Advantage of tiny-ts-package-bundler?

its support for generating js in commonjs and es module, global declaration files, and a package.json file that contains most of the information for repositories.

Installation

npm i tiny-ts-package-bundler --save

Recommend you use pnpm:

pnpm add tiny-ts-package-bundler

Usage

powered by tsup so default target is node16 if you want to change build target please configure in package.json file as below: For more configuration options, please see the API docs.

{
    "name": "your application name",
    "version": "x.x.x",
    "tinyTsPkgBundler": {
        "platform": "browser",
        "target": "es5"
    },
    // "install": "tiny-ts-package-bundler",
    "prepublishOnly": "tiny-ts-package-bundler",
    "keywords": [],
    ...
}