Skip to content

A tool that creates ESM and CJS package.json files for hybrid npm packages

License

Notifications You must be signed in to change notification settings

proohit/hybrid-package-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tool that creates ESM and CJS package.json files for hybrid npm packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published