Skip to content

Commit

Permalink
⚡ Add missing dependency and fix some types
Browse files Browse the repository at this point in the history
  • Loading branch information
janober committed Aug 13, 2019
1 parent 131823a commit 2591e98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions packages/cli/src/Db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import {
getRepository,
} from "typeorm";

import * as config from './../config';


import {
MongoDb,
PostgresDb,
Expand Down
8 changes: 4 additions & 4 deletions packages/node-dev/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -47,7 +47,7 @@ module.exports = (vorpal: Vorpal) => {

getDescription = true;

const nodeTypeQuestion: inquirer.Questions = {
const nodeTypeQuestion: inquirer.QuestionCollection = {
name: 'nodeType',
type: 'list',
default: 'Execute',
Expand Down Expand Up @@ -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;

Expand All @@ -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',
Expand Down

0 comments on commit 2591e98

Please sign in to comment.