Skip to content
Merged
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
16 changes: 8 additions & 8 deletions bin/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports = [
return true
},
when: function (answers) {
return answers.useOwner
return answers['use-owner']
}
},
{
Expand Down Expand Up @@ -163,7 +163,7 @@ module.exports = [
name: 'cors-proxy',
help: 'Serve the CORS proxy on this path',
when: function (answers) {
return answers.useCorsProxy
return answers['use-cors-proxy']
},
default: '/proxy',
prompt: true
Expand Down Expand Up @@ -253,7 +253,7 @@ module.exports = [
prompt: true,
default: 'smtp.gmail.com',
when: (answers) => {
return answers.useEmail
return answers['use-email']
}
},
{
Expand All @@ -262,15 +262,15 @@ module.exports = [
prompt: true,
default: '465',
when: (answers) => {
return answers.useEmail
return answers['use-email']
}
},
{
name: 'email-auth-user',
help: 'User of your email service',
prompt: true,
when: (answers) => {
return answers.useEmail
return answers['use-email']
},
validate: (value) => {
if (!value) {
Expand All @@ -285,7 +285,7 @@ module.exports = [
type: 'password',
prompt: true,
when: (answers) => {
return answers.useEmail
return answers['use-email']
}
},
{
Expand All @@ -301,7 +301,7 @@ module.exports = [
prompt: true,
validate: validPath,
when: (answers) => {
return answers.useApiApps
return answers['use-api-apps']
}
},
{ // copied from name: 'owner'
Expand Down Expand Up @@ -349,7 +349,7 @@ module.exports = [
help: 'URI to your Terms & Conditions',
prompt: true,
validate: validUri,
when: answers => answers.enforceToc
when: answers => answers['enforce-toc']
},
{
name: 'support-email',
Expand Down