mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
This reverts commit c21c8b3369
.
This commit is contained in:
parent
92a2e863f3
commit
d3a1d3ffef
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
var alias = require('module-alias');
|
|
||||||
var path = require('path'); // tslint:disable-line:no-var-keyword
|
var path = require('path'); // tslint:disable-line:no-var-keyword
|
||||||
alias(path.resolve(__dirname, "../"));
|
|
||||||
|
|
||||||
// Make sure that it also find the config folder when it
|
// Make sure that it also find the config folder when it
|
||||||
// did get started from another folder that the root one.
|
// did get started from another folder that the root one.
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { Command, flags } from '@oclif/command';
|
||||||
const open = require('open');
|
const open = require('open');
|
||||||
import * as Redis from 'ioredis';
|
import * as Redis from 'ioredis';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import {
|
import {
|
||||||
ActiveExecutions,
|
ActiveExecutions,
|
||||||
ActiveWorkflowRunner,
|
ActiveWorkflowRunner,
|
||||||
|
|
|
@ -4,7 +4,7 @@ import {
|
||||||
import { Command, flags } from '@oclif/command';
|
import { Command, flags } from '@oclif/command';
|
||||||
import * as Redis from 'ioredis';
|
import * as Redis from 'ioredis';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import {
|
import {
|
||||||
ActiveExecutions,
|
ActiveExecutions,
|
||||||
ActiveWorkflowRunner,
|
ActiveWorkflowRunner,
|
||||||
|
|
|
@ -45,7 +45,7 @@ import {
|
||||||
LoggerProxy,
|
LoggerProxy,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import * as Bull from 'bull';
|
import * as Bull from 'bull';
|
||||||
import * as Queue from '../src/Queue';
|
import * as Queue from '../src/Queue';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as core from 'n8n-core';
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
export const config = convict({
|
const config = convict({
|
||||||
|
|
||||||
database: {
|
database: {
|
||||||
type: {
|
type: {
|
||||||
|
@ -633,3 +633,4 @@ config.validate({
|
||||||
allowed: 'strict',
|
allowed: 'strict',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export = config;
|
||||||
|
|
|
@ -105,7 +105,6 @@
|
||||||
"jwks-rsa": "~1.12.1",
|
"jwks-rsa": "~1.12.1",
|
||||||
"localtunnel": "^2.0.0",
|
"localtunnel": "^2.0.0",
|
||||||
"lodash.get": "^4.4.2",
|
"lodash.get": "^4.4.2",
|
||||||
"module-alias": "^2.2.2",
|
|
||||||
"mysql2": "~2.2.0",
|
"mysql2": "~2.2.0",
|
||||||
"n8n-core": "~0.75.0",
|
"n8n-core": "~0.75.0",
|
||||||
"n8n-editor-ui": "~0.95.0",
|
"n8n-editor-ui": "~0.95.0",
|
||||||
|
@ -122,9 +121,6 @@
|
||||||
"typeorm": "^0.2.30",
|
"typeorm": "^0.2.30",
|
||||||
"winston": "^3.3.3"
|
"winston": "^3.3.3"
|
||||||
},
|
},
|
||||||
"_moduleAliases": {
|
|
||||||
"@config": "./dist/config/index.js"
|
|
||||||
},
|
|
||||||
"jest": {
|
"jest": {
|
||||||
"transform": {
|
"transform": {
|
||||||
"^.+\\.tsx?$": "ts-jest"
|
"^.+\\.tsx?$": "ts-jest"
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
|
|
||||||
import { TlsOptions } from 'tls';
|
import { TlsOptions } from 'tls';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
|
|
||||||
import { entities } from './databases/entities';
|
import { entities } from './databases/entities';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {
|
||||||
IExternalHooksFunctions,
|
IExternalHooksFunctions,
|
||||||
} from './';
|
} from './';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
|
|
||||||
|
|
||||||
class ExternalHooksClass implements IExternalHooksClass {
|
class ExternalHooksClass implements IExternalHooksClass {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
import { join as pathJoin } from 'path';
|
import { join as pathJoin } from 'path';
|
||||||
import { readFile as fsReadFile } from 'fs/promises';
|
import { readFile as fsReadFile } from 'fs/promises';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
LoggerProxy,
|
LoggerProxy,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getLogger,
|
getLogger,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { config } from '@config';
|
import config = require('../config');
|
||||||
import * as winston from 'winston';
|
import * as winston from 'winston';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as Bull from 'bull';
|
import * as Bull from 'bull';
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import { IBullJobData } from './Interfaces';
|
import { IBullJobData } from './Interfaces';
|
||||||
|
|
||||||
export class Queue {
|
export class Queue {
|
||||||
|
|
|
@ -101,7 +101,7 @@ import {
|
||||||
|
|
||||||
import * as basicAuth from 'basic-auth';
|
import * as basicAuth from 'basic-auth';
|
||||||
import * as compression from 'compression';
|
import * as compression from 'compression';
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import * as jwt from 'jsonwebtoken';
|
import * as jwt from 'jsonwebtoken';
|
||||||
import * as jwks from 'jwks-rsa';
|
import * as jwks from 'jwks-rsa';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
|
@ -22,7 +22,7 @@ import {
|
||||||
} from './';
|
} from './';
|
||||||
|
|
||||||
import * as compression from 'compression';
|
import * as compression from 'compression';
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import * as parseUrl from 'parseurl';
|
import * as parseUrl from 'parseurl';
|
||||||
|
|
||||||
export function registerProductionWebhooks() {
|
export function registerProductionWebhooks() {
|
||||||
|
|
|
@ -43,7 +43,7 @@ import {
|
||||||
WorkflowHooks,
|
WorkflowHooks,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
|
|
||||||
import { LessThanOrEqual } from 'typeorm';
|
import { LessThanOrEqual } from 'typeorm';
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import {
|
||||||
LoggerProxy as Logger,
|
LoggerProxy as Logger,
|
||||||
Workflow,} from 'n8n-workflow';
|
Workflow,} from 'n8n-workflow';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import { WorkflowEntity } from './databases/entities/WorkflowEntity';
|
import { WorkflowEntity } from './databases/entities/WorkflowEntity';
|
||||||
import { validate } from 'class-validator';
|
import { validate } from 'class-validator';
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ import {
|
||||||
WorkflowOperationError,
|
WorkflowOperationError,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
import * as PCancelable from 'p-cancelable';
|
import * as PCancelable from 'p-cancelable';
|
||||||
import { join as pathJoin } from 'path';
|
import { join as pathJoin } from 'path';
|
||||||
import { fork } from 'child_process';
|
import { fork } from 'child_process';
|
||||||
|
|
|
@ -38,7 +38,7 @@ import {
|
||||||
getLogger,
|
getLogger,
|
||||||
} from '../src/Logger';
|
} from '../src/Logger';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../config';
|
||||||
|
|
||||||
export class WorkflowRunnerProcess {
|
export class WorkflowRunnerProcess {
|
||||||
data: IWorkflowExecutionDataProcessWithExecution | undefined;
|
data: IWorkflowExecutionDataProcessWithExecution | undefined;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class InitialMigration1588157391238 implements MigrationInterface {
|
export class InitialMigration1588157391238 implements MigrationInterface {
|
||||||
name = 'InitialMigration1588157391238';
|
name = 'InitialMigration1588157391238';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {
|
||||||
QueryRunner,
|
QueryRunner,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class WebhookModel1592447867632 implements MigrationInterface {
|
export class WebhookModel1592447867632 implements MigrationInterface {
|
||||||
name = 'WebhookModel1592447867632';
|
name = 'WebhookModel1592447867632';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class CreateIndexStoppedAt1594902918301 implements MigrationInterface {
|
export class CreateIndexStoppedAt1594902918301 implements MigrationInterface {
|
||||||
name = 'CreateIndexStoppedAt1594902918301';
|
name = 'CreateIndexStoppedAt1594902918301';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class MakeStoppedAtNullable1607431743767 implements MigrationInterface {
|
export class MakeStoppedAtNullable1607431743767 implements MigrationInterface {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class AddWebhookId1611149998770 implements MigrationInterface {
|
export class AddWebhookId1611149998770 implements MigrationInterface {
|
||||||
name = 'AddWebhookId1611149998770';
|
name = 'AddWebhookId1611149998770';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class ChangeDataSize1615306975123 implements MigrationInterface {
|
export class ChangeDataSize1615306975123 implements MigrationInterface {
|
||||||
name = 'ChangeDataSize1615306975123';
|
name = 'ChangeDataSize1615306975123';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class CreateTagEntity1617268711084 implements MigrationInterface {
|
export class CreateTagEntity1617268711084 implements MigrationInterface {
|
||||||
name = 'CreateTagEntity1617268711084';
|
name = 'CreateTagEntity1617268711084';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class ChangeCredentialDataSize1620729500000 implements MigrationInterface {
|
export class ChangeCredentialDataSize1620729500000 implements MigrationInterface {
|
||||||
name = 'ChangeCredentialDataSize1620729500000';
|
name = 'ChangeCredentialDataSize1620729500000';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import config = require("../../../../config");
|
||||||
|
|
||||||
export class UniqueWorkflowNames1620826335440 implements MigrationInterface {
|
export class UniqueWorkflowNames1620826335440 implements MigrationInterface {
|
||||||
name = 'UniqueWorkflowNames1620826335440';
|
name = 'UniqueWorkflowNames1620826335440';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||||
import { config } from '@config';
|
import config = require('../../../../config');
|
||||||
|
|
||||||
export class CertifyCorrectCollation1623936588000 implements MigrationInterface {
|
export class CertifyCorrectCollation1623936588000 implements MigrationInterface {
|
||||||
name = 'CertifyCorrectCollation1623936588000';
|
name = 'CertifyCorrectCollation1623936588000';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {
|
import {
|
||||||
MigrationInterface, QueryRunner } from 'typeorm';
|
MigrationInterface, QueryRunner } from 'typeorm';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class InitialMigration1587669153312 implements MigrationInterface {
|
export class InitialMigration1587669153312 implements MigrationInterface {
|
||||||
name = 'InitialMigration1587669153312';
|
name = 'InitialMigration1587669153312';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {
|
||||||
QueryRunner,
|
QueryRunner,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class WebhookModel1589476000887 implements MigrationInterface {
|
export class WebhookModel1589476000887 implements MigrationInterface {
|
||||||
name = 'WebhookModel1589476000887';
|
name = 'WebhookModel1589476000887';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class CreateIndexStoppedAt1594828256133 implements MigrationInterface {
|
export class CreateIndexStoppedAt1594828256133 implements MigrationInterface {
|
||||||
name = 'CreateIndexStoppedAt1594828256133';
|
name = 'CreateIndexStoppedAt1594828256133';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class MakeStoppedAtNullable1607431743768 implements MigrationInterface {
|
export class MakeStoppedAtNullable1607431743768 implements MigrationInterface {
|
||||||
name = 'MakeStoppedAtNullable1607431743768';
|
name = 'MakeStoppedAtNullable1607431743768';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class AddWebhookId1611144599516 implements MigrationInterface {
|
export class AddWebhookId1611144599516 implements MigrationInterface {
|
||||||
name = 'AddWebhookId1611144599516';
|
name = 'AddWebhookId1611144599516';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class CreateTagEntity1617270242566 implements MigrationInterface {
|
export class CreateTagEntity1617270242566 implements MigrationInterface {
|
||||||
name = 'CreateTagEntity1617270242566';
|
name = 'CreateTagEntity1617270242566';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import config = require("../../../../config");
|
||||||
|
|
||||||
export class UniqueWorkflowNames1620824779533 implements MigrationInterface {
|
export class UniqueWorkflowNames1620824779533 implements MigrationInterface {
|
||||||
name = 'UniqueWorkflowNames1620824779533';
|
name = 'UniqueWorkflowNames1620824779533';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {
|
||||||
QueryRunner,
|
QueryRunner,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class InitialMigration1588102412422 implements MigrationInterface {
|
export class InitialMigration1588102412422 implements MigrationInterface {
|
||||||
name = 'InitialMigration1588102412422';
|
name = 'InitialMigration1588102412422';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {
|
||||||
QueryRunner,
|
QueryRunner,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class WebhookModel1592445003908 implements MigrationInterface {
|
export class WebhookModel1592445003908 implements MigrationInterface {
|
||||||
name = 'WebhookModel1592445003908';
|
name = 'WebhookModel1592445003908';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class CreateIndexStoppedAt1594825041918 implements MigrationInterface {
|
export class CreateIndexStoppedAt1594825041918 implements MigrationInterface {
|
||||||
name = 'CreateIndexStoppedAt1594825041918';
|
name = 'CreateIndexStoppedAt1594825041918';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
|
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class MakeStoppedAtNullable1607431743769 implements MigrationInterface {
|
export class MakeStoppedAtNullable1607431743769 implements MigrationInterface {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class AddWebhookId1611071044839 implements MigrationInterface {
|
export class AddWebhookId1611071044839 implements MigrationInterface {
|
||||||
name = 'AddWebhookId1611071044839';
|
name = 'AddWebhookId1611071044839';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import * as config from '../../../../config';
|
||||||
|
|
||||||
export class CreateTagEntity1617213344594 implements MigrationInterface {
|
export class CreateTagEntity1617213344594 implements MigrationInterface {
|
||||||
name = 'CreateTagEntity1617213344594';
|
name = 'CreateTagEntity1617213344594';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
import { config } from '@config';
|
import config = require("../../../../config");
|
||||||
|
|
||||||
export class UniqueWorkflowNames1620821879465 implements MigrationInterface {
|
export class UniqueWorkflowNames1620821879465 implements MigrationInterface {
|
||||||
name = 'UniqueWorkflowNames1620821879465';
|
name = 'UniqueWorkflowNames1620821879465';
|
||||||
|
|
|
@ -19,13 +19,7 @@
|
||||||
"target": "es2017",
|
"target": "es2017",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@config": [
|
|
||||||
"config/index"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"**/*.d.ts",
|
"**/*.d.ts",
|
||||||
|
|
Loading…
Reference in a new issue