An example where the library supports cjs and esm, but provides a single module format for the user.
Registry | Status |
---|---|
GitHub | |
npm |
yarn add @himenon/proxy-directory-design-pattern
import * as Lib from "@himenon/proxy-directory-design-pattern";
Lib.PackageA.exec();
Lib.PackageB.exec();
import * as PackageA from "@himenon/proxy-directory-design-pattern/PackageA";
import * as PackageB from "@himenon/proxy-directory-design-pattern/PackageB";
PackageA.exec();
PackageB.exec();
release version
yarn run lerna version --yes
reset version
git tag -d [tag]
git push origin :[tag]
- https://www.npmjs.com/package/cherry-pick
- https://developers.livechat.com/updates/how-to-create-javascript-libraries-in-2018-part-2#proxy-directories
@himenon/proxy-directory-design-pattern is MIT licensed.