Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ module.exports = ({
license = DEFAULT_LICENSE,
generateExample = DEFAULT_GENERATE_EXAMPLE,
}) => {
if (typeof name !== 'string') {
throw new Error('Please write your library\'s name');
}

if (!overridePrefix) {
if (hasPrefix(name)) {
throw new Error('Please don\'t include the prefix in the name');
Expand Down