@himenon/proxy-directory-design-pattern
v0.0.3
Published
proxy directory pattern
Downloads
7
Readme
@himenon/proxy-directory-design-pattern
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/proxy-directory-design-pattern
All import
import * as Lib from "@himenon/proxy-directory-design-pattern";
Lib.PackageA.exec();
Lib.PackageB.exec();
Individual import
import * as PackageA from "@himenon/proxy-directory-design-pattern/PackageA";
import * as PackageB from "@himenon/proxy-directory-design-pattern/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/proxy-directory-design-pattern is MIT licensed.