n8n/packages/cli/package.json
Charlie Kolb e5f56a77bb
refactor(core): Move the response errors into @n8n/backend-services (no-changelog)
Move the generic ResponseError hierarchy (BadRequestError, NotFoundError,
ForbiddenError, ...) into @n8n/backend-services and point every cli
import at the package root. 29 backend modules import these classes.

Feature-specific response errors (MFA codes, license EULA, credential
and workflow transfer, webhook not found, workflow activation and
validation) stay in cli next to the code that throws them. They extend
the generic classes from the package. WorkflowPublishBlockedError moves
because three modules import it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 10:25:06 +02:00

288 lines
12 KiB
JSON

{
"name": "n8n",
"version": "2.40.0",
"description": "n8n Workflow Automation Tool",
"main": "dist/index",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit",
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && pnpm run build:data && pnpm run build:agent-library",
"build:unchecked": "tsc -p tsconfig.build.json --noCheck && tsc-alias -p tsconfig.build.json && pnpm run build:data && pnpm run build:agent-library",
"build:data": "node scripts/build.mjs",
"build:agent-library": "node scripts/bundle-agent-library.mjs",
"buildAndDev": "pnpm run build && pnpm run dev",
"dev": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"pnpm run watch\" \"nodemon --delay 1\"",
"dev:worker": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"pnpm run watch\" \"nodemon worker\"",
"dev:webhook": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"pnpm run watch\" \"nodemon webhook\"",
"format": "biome format --write .",
"format:check": "biome ci .",
"lint": "cross-env NODE_OPTIONS=\"--max-old-space-size=6144\" eslint . --quiet",
"lint:fix": "eslint . --fix",
"recording:list": "node scripts/agent-integration-recordings.mjs --list",
"recording:export": "node scripts/agent-integration-recordings.mjs",
"start": "node ../../scripts/os-normalize.mjs --dir bin n8n",
"test": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest run",
"test:unit": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest run",
"test:unit:changed": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite janitor test-scoped",
"test:integration": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest run --config vitest.config.integration.ts",
"test:integration:dev": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest --silent=false --config vitest.config.integration.ts",
"test:integration:changed": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite janitor test-scoped -- --config vitest.config.integration.ts",
"test:dev": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest --silent=false",
"test:sqlite": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest run --config vitest.config.integration.ts",
"test:sqlite:migrations": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest run --config vitest.config.migration.ts --coverage.enabled=false",
"test:sqlite:migrations:tc": "N8N_LOG_LEVEL=silent DB_SQLITE_POOL_SIZE=4 DB_TYPE=sqlite vitest run --config vitest.config.migration.testcontainers.ts --coverage.enabled=false",
"test:postgres": "N8N_LOG_LEVEL=silent DB_TYPE=postgresdb DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ vitest run --config vitest.config.integration.ts",
"test:postgres:migrations": "N8N_LOG_LEVEL=silent DB_TYPE=postgresdb DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ vitest run --config vitest.config.migration.ts --coverage.enabled=false",
"test:postgres:migrations:tc": "N8N_LOG_LEVEL=silent DB_TYPE=postgresdb DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ vitest run --config vitest.config.migration.testcontainers.ts --coverage.enabled=false",
"test:postgres:tc": "N8N_LOG_LEVEL=silent vitest run --config vitest.config.integration.testcontainers.ts",
"test:postgres:integration:tc": "N8N_LOG_LEVEL=silent vitest run --config vitest.config.integration.testcontainers.ts",
"test:mariadb": "echo true",
"test:win": "set N8N_LOG_LEVEL=silent&& set DB_SQLITE_POOL_SIZE=4&& set DB_TYPE=sqlite&& vitest run",
"test:dev:win": "set N8N_LOG_LEVEL=silent&& set DB_SQLITE_POOL_SIZE=4&& set DB_TYPE=sqlite&& vitest --silent=false",
"test:sqlite:win": "set N8N_LOG_LEVEL=silent&& set DB_SQLITE_POOL_SIZE=4&& set DB_TYPE=sqlite&& vitest run --config vitest.config.integration.ts",
"test:postgres:win": "set N8N_LOG_LEVEL=silent&& set DB_TYPE=postgresdb&& set DB_POSTGRESDB_SCHEMA=alt_schema&& set DB_TABLE_PREFIX=test_&& vitest run --config vitest.config.integration.ts",
"test:mariadb:win": "echo true",
"watch": "tsc-watch --compiler @typescript/native/bin/tsc -p tsconfig.build.json --onCompilationComplete \"tsc-alias -p tsconfig.build.json\""
},
"bin": {
"n8n": "./bin/n8n"
},
"keywords": [
"automate",
"automation",
"IaaS",
"iPaaS",
"n8n",
"workflow"
],
"engines": {
"node": ">=24.0.0"
},
"files": [
"bin",
"templates",
"dist"
],
"janitor": {
"ignoreDepsForScoping": [
"n8n-editor-ui"
]
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"@n8n/backend-test-utils": "workspace:*",
"@n8n/playwright-janitor": "workspace:*",
"@n8n/typescript-config": "workspace:*",
"@n8n/vitest-config": "workspace:*",
"@redocly/cli": "^1.28.5",
"@types/bcryptjs": "^2.4.2",
"@types/compression": "^1.7.5",
"@types/convict": "^6.1.1",
"@types/cookie-parser": "^1.4.8",
"@types/express": "catalog:",
"@types/formidable": "^3.4.5",
"@types/json-diff": "^1.0.0",
"@types/json-schema": "catalog:",
"@types/jsonwebtoken": "catalog:",
"@types/lodash": "catalog:",
"@types/luxon": "catalog:",
"@types/ms": "catalog:",
"@types/multer": "^2.1.0",
"@types/nodemailer": "catalog:",
"@types/psl": "^1.1.0",
"@types/replacestream": "^4.0.1",
"@types/semver": "catalog:",
"@types/shelljs": "^0.8.11",
"@types/sshpk": "^1.17.4",
"@types/superagent": "^8.1.9",
"@types/swagger-ui-express": "^4.1.8",
"@types/turndown": "catalog:",
"@types/uuid": "catalog:",
"@types/validator": "^13.7.0",
"@types/ws": "catalog:",
"@types/xml2js": "catalog:",
"@types/yargs-parser": "21.0.0",
"@vvo/tzdb": "^6.141.0",
"axios": "catalog:",
"concurrently": "^8.2.0",
"esbuild": "catalog:",
"form-data": "catalog:",
"ioredis-mock": "^8.8.1",
"minifaker": "1.34.1",
"mjml": "^4.15.3",
"n8n-containers": "workspace:*",
"nock": "catalog:",
"openai": "catalog:",
"supertest": "^7.1.1",
"tsc-watch": "^7.2.1",
"@vitest/coverage-v8": "catalog:",
"@typescript/native": "catalog:typescript-tooling",
"typescript": "catalog:typescript-tooling",
"vite": "catalog:",
"vitest": "catalog:",
"vitest-mock-extended": "catalog:"
},
"dependencies": {
"@1password/connect": "1.4.2",
"@ai-sdk/anthropic": "catalog:",
"@ai-sdk/openai-compatible": "catalog:",
"@apidevtools/json-schema-ref-parser": "12.0.2",
"@asteasolutions/zod-to-openapi": "catalog:",
"@aws-sdk/client-secrets-manager": "3.808.0",
"@azure/identity": "catalog:",
"@azure/keyvault-secrets": "4.8.0",
"@chat-adapter/discord": "catalog:",
"@chat-adapter/linear": "catalog:",
"@chat-adapter/slack": "catalog:",
"@chat-adapter/state-memory": "catalog:",
"@chat-adapter/telegram": "catalog:",
"@google-cloud/secret-manager": "5.6.0",
"@grpc/grpc-js": "^1.14.3",
"@joplin/turndown-plugin-gfm": "catalog:",
"@langchain/core": "catalog:",
"@modelcontextprotocol/node": "catalog:",
"@modelcontextprotocol/sdk": "catalog:",
"@modelcontextprotocol/server": "catalog:",
"@mozilla/readability": "catalog:",
"@n8n/agents": "workspace:*",
"@n8n/ai-node-sdk": "workspace:*",
"@n8n/ai-utilities": "workspace:*",
"@n8n/ai-workflow-builder": "workspace:*",
"@n8n/api-types": "workspace:*",
"@n8n/backend-common": "workspace:*",
"@n8n/backend-network": "workspace:*",
"@n8n/blob-storage": "workspace:*",
"@n8n/chat-hub": "workspace:*",
"@n8n/client-oauth2": "workspace:*",
"@n8n/config": "workspace:*",
"@n8n/constants": "workspace:*",
"@n8n/db": "workspace:*",
"@n8n/decorators": "workspace:*",
"@n8n/di": "workspace:*",
"@n8n/engine": "workspace:*",
"@n8n/errors": "workspace:*",
"@n8n/expression-runtime": "workspace:*",
"@n8n/instance-ai": "workspace:*",
"@n8n/mcp-apps": "workspace:*",
"@n8n/mcp-browser": "workspace:*",
"@n8n/n8n-nodes-langchain": "workspace:*",
"@n8n/node-engine-compatibility": "workspace:*",
"@n8n/permissions": "workspace:*",
"@n8n/scheduler": "workspace:*",
"@n8n/backend-services": "workspace:*",
"@n8n/syslog-client": "workspace:*",
"@n8n/task-runner": "workspace:*",
"@n8n/telemetry": "workspace:*",
"@n8n/typeorm": "workspace:*",
"@n8n/utils": "workspace:*",
"@n8n/workflow-sdk": "workspace:*",
"@n8n_io/ai-assistant-sdk": "catalog:",
"@n8n_io/license-sdk": "3.1.0",
"@opentelemetry/api": "catalog:",
"@opentelemetry/core": "2.10.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.221.0",
"@opentelemetry/exporter-trace-otlp-proto": "^0.221.0",
"@opentelemetry/resources": "^2.10.0",
"@opentelemetry/sdk-node": "^0.221.0",
"@opentelemetry/sdk-trace-base": "^2.10.0",
"@opentelemetry/sdk-trace-node": "^2.10.0",
"@opentelemetry/semantic-conventions": "^1.43.0",
"@parcel/watcher": "^2.5.1",
"@pinecone-database/pinecone": "catalog:",
"@qdrant/js-client-rest": "catalog:",
"@rudderstack/rudder-sdk-node": "catalog:",
"@sentry/node": "catalog:sentry",
"@supabase/supabase-js": "catalog:",
"ai": "catalog:",
"bcryptjs": "2.4.3",
"bull": "4.16.4",
"cache-manager": "catalog:",
"change-case": "catalog:",
"chat": "catalog:",
"class-transformer": "0.5.1",
"class-validator": "0.14.0",
"compression": "1.8.1",
"convict": "6.2.5",
"cookie-parser": "1.4.7",
"cron": "catalog:",
"csrf": "3.1.0",
"csv-parse": "catalog:",
"dotenv": "catalog:",
"express": "catalog:",
"express-handlebars": "8.0.1",
"express-openapi-validator": "5.5.3",
"express-prom-bundle": "8.0.0",
"express-rate-limit": "7.5.0",
"fast-glob": "catalog:",
"fast-json-patch": "catalog:",
"fflate": "catalog:",
"file-type": "catalog:",
"flatted": "catalog:",
"formidable": "3.5.4",
"handlebars": "4.7.9",
"helmet": "8.1.0",
"http-proxy-middleware": "^3.0.7",
"ioredis": "5.3.2",
"isbot": "3.6.13",
"isolated-vm": "catalog:",
"jose": "^6.2.9",
"json-diff": "1.0.6",
"json-schema": "catalog:",
"jsonschema": "1.4.1",
"jsonwebtoken": "catalog:",
"langsmith": "catalog:",
"ldapts": "catalog:",
"linkedom": "^0.18.13",
"lodash": "catalog:",
"lru-cache": "catalog:",
"luxon": "catalog:",
"moment-timezone": "catalog:",
"ms": "catalog:",
"multer": "^2.3.0",
"n8n-core": "workspace:*",
"n8n-editor-ui": "workspace:*",
"n8n-nodes-base": "workspace:*",
"n8n-workflow": "workspace:*",
"nanoid": "catalog:",
"nodemailer": "catalog:",
"oauth-1.0a": "2.2.6",
"open": "7.4.2",
"openid-client": "6.8.4",
"otpauth": "9.1.1",
"p-cancelable": "2.1.1",
"p-limit": "catalog:",
"pdf-parse": "catalog:",
"pg": "catalog:",
"picocolors": "catalog:",
"pkce-challenge": "5.0.0",
"posthog-node": "catalog:",
"prom-client": "15.1.3",
"psl": "1.15.0",
"raw-body": "3.0.0",
"reflect-metadata": "catalog:",
"replacestream": "4.0.3",
"samlify": "2.13.0",
"semver": "catalog:",
"shelljs": "0.8.5",
"simple-git": "catalog:",
"source-map-support": "catalog:",
"sqlite3": "5.1.7",
"sshpk": "1.18.0",
"sucrase": "3.35.0",
"swagger-ui-express": "5.0.1",
"tar": "catalog:",
"turndown": "catalog:",
"uuid": "catalog:",
"validator": "13.15.22",
"ws": "8.20.1",
"xml2js": "catalog:",
"xmllint-wasm": "3.0.1",
"yaml": "catalog:",
"yargs-parser": "21.1.1",
"zod": "catalog:",
"zod-to-json-schema": "catalog:"
},
"license": "LicenseRef-n8n-sustainable-use"
}