0.0.1 • Published 3 years ago
hybrid-package-json v0.0.1
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/cjs0.0.1
3 years ago