From 88e70e9f917efbf03217b09f07c02dbc63e9a379 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 28 Aug 2019 11:11:24 +0200 Subject: [PATCH] :arrow_up: Set inquirer@7.0.0 on node-dev --- packages/node-dev/commands/new.ts | 8 ++++---- packages/node-dev/package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/node-dev/commands/new.ts b/packages/node-dev/commands/new.ts index abaca67b20..0a9124657c 100644 --- a/packages/node-dev/commands/new.ts +++ b/packages/node-dev/commands/new.ts @@ -25,7 +25,7 @@ export class New extends Command { this.log('========================='); // Ask for the type of not to be created - const typeQuestion: inquirer.Question = { + const typeQuestion: inquirer.QuestionCollection = { name: 'type', type: 'list', default: 'Node', @@ -49,7 +49,7 @@ export class New extends Command { getDescription = true; - const nodeTypeQuestion: inquirer.Question = { + const nodeTypeQuestion: inquirer.QuestionCollection = { name: 'nodeType', type: 'list', default: 'Execute', @@ -101,7 +101,7 @@ export class New extends Command { }); } - const additionalAnswers = await inquirer.prompt(additionalQuestions as inquirer.Questions); + const additionalAnswers = await inquirer.prompt(additionalQuestions as inquirer.QuestionCollection); const nodeName = additionalAnswers.name; @@ -117,7 +117,7 @@ export class New extends Command { await fsAccess(destinationFilePath); // File does already exist. So ask if it should be overwritten. - const overwriteQuestion: inquirer.Questions = [ + const overwriteQuestion: inquirer.QuestionCollection = [ { name: 'overwrite', type: 'confirm', diff --git a/packages/node-dev/package.json b/packages/node-dev/package.json index a6cb23fbf3..e15a27a8c1 100644 --- a/packages/node-dev/package.json +++ b/packages/node-dev/package.json @@ -38,7 +38,7 @@ "dist" ], "devDependencies": { - "@types/inquirer": "^6.0.3", + "@types/inquirer": "^6.5.0", "@types/node": "^10.10.1", "@types/vorpal": "^1.11.0", "tslint": "^5.17.0" @@ -47,7 +47,7 @@ "@oclif/command": "^1.5.18", "@oclif/errors": "^1.2.2", "change-case": "^3.1.0", - "inquirer": "^6.3.1", + "inquirer": "^7.0.0", "n8n-core": "^0.2.0", "n8n-workflow": "^0.3.0", "replace-in-file": "^4.1.0",