Socket
Socket
Sign inDemoInstall

@adlib/lib

Package Overview
Dependencies
120
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @adlib/lib

Personal TypeScript library build tooling.


Version published
Maintainers
1
Created

Readme

Source

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.

FAQs

Last updated on 03 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc