Adlib: Library build tool
Personal TypeScript library build tooling.
Getting Started
Install.
npm i -D @adlib/lib
Init.
npm exec lib -- init
Configure (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.tsx
or src/index.ts
must exist if package.json
includes a main
or a module
field. - One of
src/index.tsx
, src/index.ts
, or src/bin.ts
must exist if package.json
includes a bin
string 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.