-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a56bf19
commit 5880f44
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/local/bin/node | ||
|
||
const chalk = require("chalk"); | ||
const packageJson = require("./package.json"); | ||
|
||
const name = packageJson.name; | ||
const displayName = packageJson.storybook.displayName; | ||
|
||
if (name.includes("addon-kit") || displayName.includes("Addon Kit")) { | ||
console.error( | ||
chalk.red.bold` | ||
⚠️ Please configure appropriate metadata before publishing your addon. | ||
`, | ||
chalk.red` | ||
Your package name and/or displayName includes default values from the Addon Kit. | ||
The addon gallery filters out all such addons. | ||
For more info on addon metadata, see: https://storybook.js.org/docs/react/addons/addon-catalog#addon-metadata | ||
` | ||
); | ||
|
||
process.exit(1); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters