n8n/packages/@n8n/node-cli/package.json
alex 3e518644a5 build: Pin the import-x typescript-eslint peer instead of bumping node-cli
Replaces the previous approach in this PR. Bumping `@n8n/node-cli` to
`typescript-eslint@^8.68.0` left three packages holding two versions, which the
`catalog-violations` code-health rule rejects. Centralising all three on a
catalog entry does fix that rule, but it moves `@n8n/eslint-config` from 8.35.0
to 8.69.0 and then two packages fail to lint at all:

    ConfigError: Key "plugins": Cannot redefine plugin "@typescript-eslint"

Those packages lint clean on master, so that is a real regression, and aligning
the three consumers is a deliberate change with a before/after lint diff.

Pin the drifting peer instead. No package.json changes, no version split, and the
lockfile loses the duplicate 8.68.0 subtree.

Verified on master with pnpm 11.25.0:
- Adding one unrelated dependency now leaves the peer at 8.35.0.
- `pnpm --filter @n8n/code-health check` — 0 violations.
- `turbo build lint` over node-cli, eslint-config, computer-use and mcp-browser
  — 28/28 tasks, exit 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 11:52:11 +03:00

83 lines
2.4 KiB
JSON

{
"name": "@n8n/node-cli",
"version": "0.46.0",
"description": "Official CLI for developing community nodes for n8n",
"bin": {
"n8n-node": "bin/n8n-node.mjs"
},
"exports": {
"./eslint": {
"types": "./dist/configs/eslint.d.js",
"default": "./dist/configs/eslint.js"
}
},
"files": [
"bin",
"dist"
],
"scripts": {
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit",
"copy-templates": "node scripts/copy-templates.mjs",
"dev": "tsc-watch -p tsconfig.build.json -w --onCompilationComplete \"pnpm copy-templates\"",
"format": "biome format --write src",
"format:check": "biome ci src",
"lint": "eslint src --quiet",
"lintfix": "eslint src --fix",
"build": "tsc -p tsconfig.build.json && pnpm copy-templates",
"build:unchecked": "tsc -p tsconfig.build.json --noCheck && pnpm copy-templates",
"publish:dry": "pnpm run build && pnpm pub --dry-run",
"test": "vitest run",
"test:unit": "vitest run",
"test:dev": "vitest --silent=false",
"start": "./bin/n8n-node.mjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/n8n-io/n8n.git"
},
"oclif": {
"bin": "n8n-node",
"commands": {
"strategy": "explicit",
"target": "./dist/index.js",
"identifier": "commands"
},
"topicSeparator": " "
},
"dependencies": {
"@clack/prompts": "^0.11.0",
"@eslint/js": "^9.29.0",
"@n8n/eslint-plugin-community-nodes": "workspace:*",
"@n8n/ai-node-sdk": "workspace:*",
"@oclif/core": "^4.5.2",
"change-case": "catalog:",
"eslint": "catalog:",
"eslint-import-resolver-typescript": "^4.4.3",
"eslint-plugin-import-x": "^4.15.2",
"eslint-plugin-n8n-nodes-base": "catalog:",
"fast-glob": "catalog:",
"handlebars": "4.7.9",
"picocolors": "catalog:",
"prettier": "catalog:",
"prompts": "^2.4.2",
"rimraf": "catalog:",
"ts-morph": "catalog:",
"typescript-eslint": "^8.35.0"
},
"devDependencies": {
"@n8n/typescript-config": "workspace:*",
"@n8n/vitest-config": "workspace:*",
"@oclif/test": "^4.1.13",
"@typescript/native": "catalog:typescript-tooling",
"typescript": "catalog:typescript-tooling",
"vite": "catalog:",
"vitest": "catalog:",
"vitest-mock-extended": "catalog:"
},
"peerDependencies": {
"eslint": ">= 9"
},
"license": "LicenseRef-n8n-sustainable-use"
}