@himenon/library-proxy-sample
v0.2.0
Published
An example where the library supports cjs and esm, but provides a single module format for the user.
Downloads
3
Readme
@himenon/library-proxy-sample
An example where the library supports cjs and esm, but provides a single module format for the user.
|Registry|Status| |:-------|:-----| |GitHub|| |npm||
Usage
yarn add @himenon/library-proxy-sample
All import
import * as Lib from "@himenon/library-proxy-sample";
Lib.PackageA.exec();
Lib.PackageB.exec();
Individual import
import * as PackageA from "@himenon/library-proxy-sample/PackageA";
import * as PackageB from "@himenon/library-proxy-sample/PackageB";
PackageA.exec();
PackageB.exec();
Development
Release
release version
yarn run lerna version --yes
Revert release (before execute GitHub Actions)
reset version
git tag -d [tag]
git push origin :[tag]
Reference
- https://www.npmjs.com/package/cherry-pick
- https://developers.livechat.com/updates/how-to-create-javascript-libraries-in-2018-part-2#proxy-directories
LICENSE
@himenon/library-proxy-sample is MIT licensed.