Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pkgbld

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgbld

Rollup based build tool for building libraries based on package.json config and simple CLI options.

  • 1.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
175
increased by629.17%
Maintainers
1
Weekly downloads
 
Created
Source

pkgbld

Rollup based build tool for building libraries based on package.json config and simple CLI options.

It is simple building tool that supports building to different targets like: es, cjs, umd without additional trasformation other than minification using terser or preprocess using rollup-plugin-preprocess.

Why

It is created to easily build libraries that contains mutliple subpackages (exports, entry points) because it is not that easy to do at the moment with microbundle, tsdx or ng-packagr.

Installation

Using npm:

npm install --save-dev pkgbld

package.json

pkgbld expects name field to be filled in package.json file. exports field defined what entries/outputs should be build for this package.

CLI options

umd

pkgbld --umd=index,core

Where index,core should be replaced by entry points that should be comiled in umd format, index is top level '.' entry point.

If package.json defined umd field option will be defaulted to index.

compress

pkgbld --compress=index,core

Where index,core should be replaced by entry points that should be compressed using terser.

sourcemaps

pkgbld --sourcemaps=es,cjs

Where es,cjs should be replaced by targets for which sourcemaps should be generated. Default umd.

Supported targets for this option: es, cjs and umd.

formats

pkgbld --formats=es

Defines what formats to build, only supports es and cjs at the moment. Use umd flag to build umd target.

preprocess

pkgbld --preprocess=index

Defines what entry points/files should be preprocessed using rollup-plugin-preprocess.

dir

pkgbld --dir=dist

Directory to put output files.

License

MIT

Keywords

FAQs

Package last updated on 22 Jan 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc