Skip to content

Commit f8888ed

Browse files
committed
Fix remaining camelCase config names in init.js, Closes #997
1 parent 0bb707e commit f8888ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bin/lib/options.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = [
102102
return true
103103
},
104104
when: function (answers) {
105-
return answers.useOwner
105+
return answers['use-owner']
106106
}
107107
},
108108
{
@@ -163,7 +163,7 @@ module.exports = [
163163
name: 'cors-proxy',
164164
help: 'Serve the CORS proxy on this path',
165165
when: function (answers) {
166-
return answers.useCorsProxy
166+
return answers['use-cors-proxy']
167167
},
168168
default: '/proxy',
169169
prompt: true
@@ -253,7 +253,7 @@ module.exports = [
253253
prompt: true,
254254
default: 'smtp.gmail.com',
255255
when: (answers) => {
256-
return answers.useEmail
256+
return answers['use-email']
257257
}
258258
},
259259
{
@@ -262,15 +262,15 @@ module.exports = [
262262
prompt: true,
263263
default: '465',
264264
when: (answers) => {
265-
return answers.useEmail
265+
return answers['use-email']
266266
}
267267
},
268268
{
269269
name: 'email-auth-user',
270270
help: 'User of your email service',
271271
prompt: true,
272272
when: (answers) => {
273-
return answers.useEmail
273+
return answers['use-email']
274274
},
275275
validate: (value) => {
276276
if (!value) {
@@ -285,7 +285,7 @@ module.exports = [
285285
type: 'password',
286286
prompt: true,
287287
when: (answers) => {
288-
return answers.useEmail
288+
return answers['use-email']
289289
}
290290
},
291291
{
@@ -301,7 +301,7 @@ module.exports = [
301301
prompt: true,
302302
validate: validPath,
303303
when: (answers) => {
304-
return answers.useApiApps
304+
return answers['use-api-apps']
305305
}
306306
},
307307
{ // copied from name: 'owner'
@@ -349,7 +349,7 @@ module.exports = [
349349
help: 'URI to your Terms & Conditions',
350350
prompt: true,
351351
validate: validUri,
352-
when: answers => answers.enforceToc
352+
when: answers => answers['enforce-toc']
353353
},
354354
{
355355
name: 'support-email',

0 commit comments

Comments
 (0)