Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Rollup based build tool for building libraries based on package.json config and simple CLI options.
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
.
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
.
Using npm:
npm install --save-dev pkgbld
pkgbld
expects name field to be filled in package.json file. exports
field defined what entries/outputs should be build for this package.
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
.
pkgbld --compress=es,umd
Where es,umd
should be replaced by formats that should be compressed using terser.
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
.
pkgbld --formats=es
Defines what formats to build, only supports es
and cjs
at the moment. Use umd
flag to build umd target.
pkgbld --preprocess=index
Defines what entry points/files should be preprocessed using rollup-plugin-preprocess
. For the entry point will be defined variable esm (for esm target) or cjs (for others) depending on the target type. Please request more variables / more granular logic if you want more.
pkgbld --dir=dist
Directory to put output files.
FAQs
README.md
The npm package pkgbld receives a total of 17 weekly downloads. As such, pkgbld popularity was classified as not popular.
We found that pkgbld demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.