0.1.6 • Published 2 years ago
@adlib/lib v0.1.6
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
orsrc/index.ts
must exist ifpackage.json
includes amain
or amodule
field. - One of
src/index.tsx
,src/index.ts
, orsrc/bin.ts
must exist ifpackage.json
includes abin
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.