From 2591e983335ee3ab1bd0e7b86cde609ea953ce10 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 13 Aug 2019 19:01:14 +0200 Subject: [PATCH] :zap: Add missing dependency and fix some types --- packages/cli/package.json | 1 + packages/cli/src/Db.ts | 3 --- packages/node-dev/commands/new.ts | 8 ++++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index d4dd9bda1..102cf8f96 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -70,6 +70,7 @@ "flatted": "^2.0.0", "glob-promise": "^3.4.0", "google-timezones-json": "^1.0.2", + "inquirer": "^6.5.1", "localtunnel": "^1.9.1", "mongodb": "^3.2.3", "n8n-core": "^0.8.0", diff --git a/packages/cli/src/Db.ts b/packages/cli/src/Db.ts index 16ae6e534..b4a50c1e5 100644 --- a/packages/cli/src/Db.ts +++ b/packages/cli/src/Db.ts @@ -14,9 +14,6 @@ import { getRepository, } from "typeorm"; -import * as config from './../config'; - - import { MongoDb, PostgresDb, diff --git a/packages/node-dev/commands/new.ts b/packages/node-dev/commands/new.ts index e4a6e6246..da0ca1d4f 100644 --- a/packages/node-dev/commands/new.ts +++ b/packages/node-dev/commands/new.ts @@ -23,7 +23,7 @@ module.exports = (vorpal: Vorpal) => { console.log('========================='); // Ask for the type of not to be created - const typeQuestion: inquirer.Questions = { + const typeQuestion: inquirer.QuestionCollection = { name: 'type', type: 'list', default: 'Node', @@ -47,7 +47,7 @@ module.exports = (vorpal: Vorpal) => { getDescription = true; - const nodeTypeQuestion: inquirer.Questions = { + const nodeTypeQuestion: inquirer.QuestionCollection = { name: 'nodeType', type: 'list', default: 'Execute', @@ -99,7 +99,7 @@ module.exports = (vorpal: Vorpal) => { }); } - const additionalAnswers = await inquirer.prompt(additionalQuestions as inquirer.Questions); + const additionalAnswers = await inquirer.prompt(additionalQuestions as inquirer.QuestionCollection); const nodeName = additionalAnswers.name; @@ -115,7 +115,7 @@ module.exports = (vorpal: Vorpal) => { 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',