0.1.6 • Published 4 years ago
@adlib/lib v0.1.6
Adlib: Library build tool
Personal TypeScript library build tooling.
Getting Started
Install.
npm i -D @adlib/libInit.
npm exec lib -- initConfigure (package.json).
{
"bin": "lib/bin.js",
"main": "lib/index.js",
"module": "lib/index.esm.js",
"typings": "lib/index.d.ts",
"scripts": {
"build": "lib build",
"clean": "lib clean"
}
}One or more of the bin, main, or module fields must be set. Types will only be created if the typings (or types) field is set.
Files
- Either
src/index.tsxorsrc/index.tsmust exist ifpackage.jsonincludes amainor amodulefield. - One of
src/index.tsx,src/index.ts, orsrc/bin.tsmust exist ifpackage.jsonincludes abinstring field.
TSLib
The tslib library is not included in the main or module entry bundles if it's a peer dependency. It is always included in the bin entry bundle.