Skip to content

Himenon/proxy-directory-design-pattern

Repository files navigation

@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 GitHub version
npm npm version

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

LICENSE

@himenon/proxy-directory-design-pattern is MIT licensed.