Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Commit 94b063c

Browse files
fix: 🐛 pad-right
pad-right is no longer a dependency of a dependency. because of that we need to stop relying on it. `String.padEnd` is the correct alternative and is supported on NodeJS>=8.2.1
1 parent 31d9af9 commit 94b063c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/questions/type.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
const pad = require('pad-right');
21
const fuzzy = require('fuzzy');
32

43
const typeToListItem = ({types, disableEmoji}, type) => {
54
const {description, emoji, value} = types[type];
65
const prefix = emoji && !disableEmoji ? emoji + ' ' : '';
76

87
return {
9-
name: prefix + pad(value + ':', 12, ' ') + description,
8+
name: prefix + value.padEnd(12, ' ') + description,
109
value
1110
};
1211
};

0 commit comments

Comments
 (0)