Skip to content

Commit

Permalink
feat: export defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
revelt committed Apr 10, 2022
1 parent ac9dac8 commit 4bc7c0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/lerna-clean-changelogs/README.md
Expand Up @@ -26,12 +26,14 @@

## Install

The latest version is **ESM only**: Node 12+ is needed to use it and it must be `import`ed instead of `require`d. If your project is not on ESM yet and you want to use `require`, use an older version of this program, `2.1.0`.
This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required:

```bash
npm i lerna-clean-changelogs
```

If you need a legacy version which works with `require`, use version 2.1.0

## Quick Take

```js
Expand Down
2 changes: 1 addition & 1 deletion packages/lerna-clean-changelogs/src/main.ts
Expand Up @@ -175,4 +175,4 @@ function cleanChangelogs(
};
}

export { cleanChangelogs, version };
export { cleanChangelogs, defaults, version };
3 changes: 2 additions & 1 deletion packages/lerna-clean-changelogs/types/index.d.ts
Expand Up @@ -2,6 +2,7 @@ declare const version: string;
interface Opts {
extras: boolean;
}
declare const defaults: Opts;
declare function cleanChangelogs(
changelogContents: string,
originalOpts?: Partial<Opts>
Expand All @@ -10,4 +11,4 @@ declare function cleanChangelogs(
res: string;
};

export { cleanChangelogs, version };
export { cleanChangelogs, defaults, version };

0 comments on commit 4bc7c0f

Please sign in to comment.