Skip to content

Commit

Permalink
Add production mode config for Knip
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 27, 2023
1 parent a3d32ae commit c1c0f99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions knip.json
@@ -1,4 +1,4 @@
{
"entry": ["bin/release-it.js"],
"project": ["bin/*.js", "lib/**/*.js"]
"entry": ["bin/release-it.js!"],
"project": ["bin/*.js!", "lib/**/*.js!"]
}
6 changes: 4 additions & 2 deletions lib/cli.js
Expand Up @@ -26,9 +26,11 @@ const helpText = `Release It! v${pkg.version}
For more details, please see https://github.com/release-it/release-it`;

export let version = () => log.log(`v${pkg.version}`);
/** @internal */
export const version = () => log.log(`v${pkg.version}`);

export let help = () => log.log(helpText);
/** @internal */
export const help = () => log.log(helpText);

export default async options => {
if (options.version) {
Expand Down
1 change: 1 addition & 0 deletions lib/plugin/factory.js
Expand Up @@ -40,6 +40,7 @@ const load = async pluginName => {
return [getPluginName(pluginName), plugin];
};

/** @internal */
export const getPluginName = pluginName => {
if (pluginName.startsWith('.')) {
return path.parse(pluginName).name;
Expand Down

0 comments on commit c1c0f99

Please sign in to comment.