Skip to content

Commit

Permalink
feat(core): Upgrade oclif (no-changelog) (#9881)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Jun 27, 2024
1 parent d9747d5 commit 2885091
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 104 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@n8n/permissions": "workspace:*",
"@n8n/typeorm": "0.3.20-10",
"@n8n_io/license-sdk": "2.13.0",
"@oclif/core": "3.26.6",
"@oclif/core": "4.0.7",
"@pinecone-database/pinecone": "2.1.0",
"@rudderstack/rudder-sdk-node": "2.0.7",
"@sentry/integrations": "7.87.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/BaseCommand.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'reflect-metadata';
import { Container } from 'typedi';
import { Command } from '@oclif/core';
import { ExitError } from '@oclif/core/lib/errors';
import { Command, Errors } from '@oclif/core';
import { ApplicationError, ErrorReporterProxy as ErrorReporter, sleep } from 'n8n-workflow';
import { BinaryDataService, InstanceSettings, ObjectStoreService } from 'n8n-core';
import type { AbstractServer } from '@/AbstractServer';
Expand Down Expand Up @@ -308,7 +307,7 @@ export abstract class BaseCommand extends Command {
await sleep(100); // give any in-flight query some time to finish
await Db.close();
}
const exitCode = error instanceof ExitError ? error.oclif.exit : error ? 1 : 0;
const exitCode = error instanceof Errors.ExitError ? error.oclif.exit : error ? 1 : 0;
this.exit(exitCode);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/node-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/inquirer": "^6.5.0"
},
"dependencies": {
"@oclif/core": "3.26.6",
"@oclif/core": "4.0.7",
"change-case": "^4.1.1",
"fast-glob": "^3.2.5",
"inquirer": "^7.0.1",
Expand Down
Loading

0 comments on commit 2885091

Please sign in to comment.