mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-11 22:50:06 +00:00
chore: Consolidate ts tooling catalog (#34310)
This commit is contained in:
@@ -61,7 +61,6 @@
|
||||
"express": "catalog:",
|
||||
"testcontainers": "catalog:",
|
||||
"typescript": "catalog:",
|
||||
"typescript6": "npm:@typescript/[email protected]",
|
||||
"vite": "catalog:",
|
||||
"vitest": "catalog:",
|
||||
"vitest-mock-extended": "catalog:"
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { createVitestConfigWithDecorators } from '@n8n/vitest-config/node-decorators';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
// Uses the legacy JS compiler via the `typescript6` alias: tsgo (typescript 7)
|
||||
// ships no programmatic API for this LanguageService-based entity transform.
|
||||
import ts from 'typescript6';
|
||||
// This LanguageService-based entity transform needs the real JS compiler API.
|
||||
// The package builds on TypeScript 6, so `typescript` resolves to it directly;
|
||||
// when it migrates to tsgo (TS7, no JS API) it should adopt the `typescript-tooling`
|
||||
// catalog so `typescript` keeps resolving to the TS6 API.
|
||||
import ts from 'typescript';
|
||||
import { mergeConfig, type Plugin } from 'vite';
|
||||
import { configDefaults } from 'vitest/config';
|
||||
|
||||
|
||||
@@ -117,8 +117,8 @@
|
||||
"ts-essentials": "^7.0.3",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"@vitest/coverage-v8": "catalog:",
|
||||
"typescript": "catalog:typescript",
|
||||
"typescript6": "npm:@typescript/[email protected]",
|
||||
"@typescript/native": "catalog:typescript-tooling",
|
||||
"typescript": "catalog:typescript-tooling",
|
||||
"vite": "catalog:",
|
||||
"vitest": "catalog:",
|
||||
"vitest-mock-extended": "catalog:"
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
// tsgo (typescript 7) ships no programmatic API, so this LanguageService-based
|
||||
// transform imports the legacy JS compiler via the `typescript6` alias.
|
||||
import ts from 'typescript6';
|
||||
// transform needs the real JS compiler. Under the `typescript-tooling` catalog
|
||||
// `typescript` resolves to the TS6 API (while `tsc` stays tsgo via @typescript/native).
|
||||
import ts from 'typescript';
|
||||
import type { Plugin } from 'vite';
|
||||
|
||||
/**
|
||||
|
||||
Generated
+9
-18
@@ -2040,9 +2040,6 @@ importers:
|
||||
typescript:
|
||||
specifier: 'catalog:'
|
||||
version: 6.0.2
|
||||
typescript6:
|
||||
specifier: npm:@typescript/[email protected]
|
||||
version: '@typescript/[email protected]'
|
||||
vite:
|
||||
specifier: 'catalog:'
|
||||
version: 8.0.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
|
||||
@@ -4002,7 +3999,7 @@ importers:
|
||||
version: 5.1.2
|
||||
'@qdrant/js-client-rest':
|
||||
specifier: 'catalog:'
|
||||
version: 1.16.2(typescript@7.0.2)
|
||||
version: 1.16.2(@typescript/typescript6@6.0.2)
|
||||
'@rudderstack/rudder-sdk-node':
|
||||
specifier: 'catalog:'
|
||||
version: 3.0.5
|
||||
@@ -4400,6 +4397,9 @@ importers:
|
||||
'@types/yargs-parser':
|
||||
specifier: 21.0.0
|
||||
version: 21.0.0
|
||||
'@typescript/native':
|
||||
specifier: catalog:typescript-tooling
|
||||
version: [email protected]
|
||||
'@vitest/coverage-v8':
|
||||
specifier: 'catalog:'
|
||||
version: 4.1.9(@vitest/[email protected])([email protected])
|
||||
@@ -4447,15 +4447,12 @@ importers:
|
||||
version: 7.1.1
|
||||
ts-essentials:
|
||||
specifier: ^7.0.3
|
||||
version: 7.0.3(typescript@7.0.2)
|
||||
version: 7.0.3(@typescript/typescript6@6.0.2)
|
||||
tsconfig-paths:
|
||||
specifier: ^4.2.0
|
||||
version: 4.2.0
|
||||
typescript:
|
||||
specifier: catalog:typescript
|
||||
version: 7.0.2
|
||||
typescript6:
|
||||
specifier: npm:@typescript/[email protected]
|
||||
specifier: catalog:typescript-tooling
|
||||
version: '@typescript/[email protected]'
|
||||
vite:
|
||||
specifier: 'catalog:'
|
||||
@@ -4465,7 +4462,7 @@ importers:
|
||||
version: 4.1.9(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected]([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
|
||||
vitest-mock-extended:
|
||||
specifier: 'catalog:'
|
||||
version: 3.1.0(typescript@7.0.2)([email protected])
|
||||
version: 3.1.0(@typescript/typescript6@6.0.2)([email protected])
|
||||
|
||||
packages/core:
|
||||
dependencies:
|
||||
@@ -27494,12 +27491,6 @@ snapshots:
|
||||
typescript: '@typescript/[email protected]'
|
||||
undici: 6.27.0
|
||||
|
||||
'@qdrant/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@qdrant/openapi-typescript-fetch': 1.2.6
|
||||
typescript: 6.0.2
|
||||
undici: 6.27.0
|
||||
|
||||
'@qdrant/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@qdrant/openapi-typescript-fetch': 1.2.6
|
||||
@@ -40186,9 +40177,9 @@ snapshots:
|
||||
optionalDependencies:
|
||||
typescript: 7.0.2
|
||||
|
||||
[email protected](typescript@7.0.2):
|
||||
[email protected](@typescript/typescript6@6.0.2):
|
||||
dependencies:
|
||||
typescript: 7.0.2
|
||||
typescript: '@typescript/[email protected]'
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
|
||||
@@ -48,6 +48,11 @@ resolves to the real TS 6 JS API that the tooling needs.
|
||||
- value-imports the `typescript` module for its API (`import ts from
|
||||
'typescript'`, `ts.createProgram`, …) — **not** type-only imports.
|
||||
|
||||
First-party code in these packages must `import ts from 'typescript'` — the
|
||||
catalog points that specifier at the TS6 API. Do **not** add a separately-named
|
||||
alias dependency (e.g. `"typescript6": "npm:@typescript/typescript6@…"`); keep
|
||||
the single `typescript-tooling` convention so the 7.1 cleanup is one catalog flip.
|
||||
|
||||
Currently on `typescript-tooling`: `@n8n/eslint-config`,
|
||||
`@n8n/eslint-plugin-community-nodes`, `@n8n/node-cli`, `@n8n/nodes-langchain`.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# TypeScript 6 → 7 migration benchmarks
|
||||
|
||||
Generated 2026-07-16T06:54:52.709Z from `scripts/typescript-migration/results/`.
|
||||
Generated 2026-07-16T08:25:04.413Z from `scripts/typescript-migration/results/`.
|
||||
|
||||
| Package | typecheck Δ | build Δ |
|
||||
| --- | --- | --- |
|
||||
|
||||
Reference in New Issue
Block a user