hybrid-package-json

0.0.1 • Public • Published

hybrid-package-json

This tool is used to generate package.json file for a hybrid ESM/CJS package. Specifically, it defines the type field to module for ESM and commonjs for CJS and copies it to a target location so that consumers can use either ESM or CJS. It uses the root package json by default.

Usage

hybrid-package-json --esm-target=dist/esm --cjs-target=dist/cjs

Readme

Keywords

none

Package Sidebar

Install

npm i hybrid-package-json

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

3.29 kB

Total Files

4

Last publish

Collaborators

  • proohit