refactor(core): Replace typedi with our custom DI system (no-changelog) (#12389)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-06 10:21:24 +01:00
committed by GitHub
parent 8053a4a176
commit 39d5e0ff87
413 changed files with 979 additions and 452 deletions

View File

@@ -1,6 +1,6 @@
import { Container } from '@n8n/di';
import { Command, Flags } from '@oclif/core';
import { InstanceSettings } from 'n8n-core';
import { Container } from 'typedi';
import type { IBuildOptions } from '../src';
import { buildFiles } from '../src';

View File

@@ -39,6 +39,7 @@
"@types/inquirer": "^6.5.0"
},
"dependencies": {
"@n8n/di": "workspace:*",
"@oclif/core": "4.0.7",
"change-case": "^4.1.1",
"fast-glob": "catalog:",
@@ -46,7 +47,6 @@
"n8n-core": "workspace:*",
"n8n-workflow": "workspace:*",
"replace-in-file": "^6.0.0",
"tmp-promise": "^3.0.3",
"typedi": "catalog:"
"tmp-promise": "^3.0.3"
}
}

View File

@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import { Container } from '@n8n/di';
import { spawn } from 'child_process';
import glob from 'fast-glob';
import { copyFile, mkdir, readFile, writeFile } from 'fs/promises';
@@ -7,7 +8,6 @@ import { InstanceSettings } from 'n8n-core';
import { jsonParse } from 'n8n-workflow';
import { join, dirname, resolve as resolvePath } from 'path';
import { file as tmpFile } from 'tmp-promise';
import { Container } from 'typedi';
import type { IBuildOptions } from './Interfaces';