mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
⚡ Add missing dependency and fix some types
This commit is contained in:
parent
131823a14d
commit
2591e98333
|
@ -70,6 +70,7 @@
|
||||||
"flatted": "^2.0.0",
|
"flatted": "^2.0.0",
|
||||||
"glob-promise": "^3.4.0",
|
"glob-promise": "^3.4.0",
|
||||||
"google-timezones-json": "^1.0.2",
|
"google-timezones-json": "^1.0.2",
|
||||||
|
"inquirer": "^6.5.1",
|
||||||
"localtunnel": "^1.9.1",
|
"localtunnel": "^1.9.1",
|
||||||
"mongodb": "^3.2.3",
|
"mongodb": "^3.2.3",
|
||||||
"n8n-core": "^0.8.0",
|
"n8n-core": "^0.8.0",
|
||||||
|
|
|
@ -14,9 +14,6 @@ import {
|
||||||
getRepository,
|
getRepository,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
import * as config from './../config';
|
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
MongoDb,
|
MongoDb,
|
||||||
PostgresDb,
|
PostgresDb,
|
||||||
|
|
|
@ -23,7 +23,7 @@ module.exports = (vorpal: Vorpal) => {
|
||||||
console.log('=========================');
|
console.log('=========================');
|
||||||
|
|
||||||
// Ask for the type of not to be created
|
// Ask for the type of not to be created
|
||||||
const typeQuestion: inquirer.Questions = {
|
const typeQuestion: inquirer.QuestionCollection = {
|
||||||
name: 'type',
|
name: 'type',
|
||||||
type: 'list',
|
type: 'list',
|
||||||
default: 'Node',
|
default: 'Node',
|
||||||
|
@ -47,7 +47,7 @@ module.exports = (vorpal: Vorpal) => {
|
||||||
|
|
||||||
getDescription = true;
|
getDescription = true;
|
||||||
|
|
||||||
const nodeTypeQuestion: inquirer.Questions = {
|
const nodeTypeQuestion: inquirer.QuestionCollection = {
|
||||||
name: 'nodeType',
|
name: 'nodeType',
|
||||||
type: 'list',
|
type: 'list',
|
||||||
default: 'Execute',
|
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;
|
const nodeName = additionalAnswers.name;
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ module.exports = (vorpal: Vorpal) => {
|
||||||
await fsAccess(destinationFilePath);
|
await fsAccess(destinationFilePath);
|
||||||
|
|
||||||
// File does already exist. So ask if it should be overwritten.
|
// File does already exist. So ask if it should be overwritten.
|
||||||
const overwriteQuestion: inquirer.Questions = [
|
const overwriteQuestion: inquirer.QuestionCollection = [
|
||||||
{
|
{
|
||||||
name: 'overwrite',
|
name: 'overwrite',
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
|
|
Loading…
Reference in a new issue