File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ const settings = require('../settings');
55async function run ( name ) {
66 const resp = await questions . getProjectDetails ( name ) ;
77
8- // Process keywords
9- resp . keywords = resp . keywords . split ( ',' ) ;
10-
118 if ( ! resp . useGithub ) {
129 Object . assign ( resp , await questions . getGitRemoteDetails ( ) ) ;
1310 resp . hasRemote = ! ! resp . git . url ;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ async function getProjectDetails(name) {
2828 type : 'input' ,
2929 name : 'keywords' ,
3030 message : 'Provide a comma-separated list of keywords:' ,
31+ filter : ans => JSON . stringify ( ans . split ( ',' ) ) ,
3132 } ,
3233
3334 {
Original file line number Diff line number Diff line change 33 "version" : " PROJECT_VERSION" ,
44 "description" : " PROJECT_DESCRIPTION" ,
55 "main" : " src/index.js" ,
6- "keywords" : [ PROJECT_KEYWORDS ] ,
6+ "keywords" : PROJECT_KEYWORDS,
77 "author" : " PROJECT_AUTHOR_NAME <PROJECT_AUTHOR_EMAIL> (PROJECT_AUTHOR_URL)" ,
88 "license" : " PROJECT_LICENSE" ,
99 "private" : PROJECT_PRIVATE,
You can’t perform that action at this time.
0 commit comments