Tiny tool kit to build your typescript project, powered by tsup.
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.
npm i tiny-ts-package-bundler --save
Recommend you use pnpm
:
pnpm add tiny-ts-package-bundler
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": [],
...
}