Skip to content

Commit

Permalink
fix: Enable source-maps on WorkflowRunnerProcess in own mode (#4832)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Dec 6, 2022
1 parent 8c9681e commit 9485e2f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions packages/cli/bin/n8n
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ if (![14, 16, 18].includes(nodeVersionMajor)) {
process.exit(1);
}

try {
require('source-map-support').install();
} catch {}
require('source-map-support').install();

require('@oclif/command')
.run()
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
"concurrently": "^5.1.0",
"nodemon": "^2.0.2",
"run-script-os": "^1.0.7",
"source-map-support": "^0.5.21",
"supertest": "^6.2.2",
"ts-node": "^9.1.1",
"tsc-alias": "^1.7.0",
Expand Down Expand Up @@ -164,14 +163,15 @@
"passport": "^0.6.0",
"passport-cookie": "^1.0.9",
"passport-jwt": "^4.0.0",
"picocolors": "^1.0.0",
"pg": "^8.3.0",
"picocolors": "^1.0.0",
"posthog-node": "^1.3.0",
"prom-client": "^13.1.0",
"psl": "^1.8.0",
"replacestream": "^4.0.3",
"semver": "^7.3.8",
"shelljs": "^0.8.5",
"source-map-support": "^0.5.21",
"sqlite3": "^5.1.2",
"sse-channel": "^3.1.1",
"swagger-ui-express": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/ActiveExecutions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
IRun,
} from 'n8n-workflow';

import { ChildProcess } from 'child_process';
import type { ChildProcess } from 'child_process';
import { stringify } from 'flatted';
import PCancelable from 'p-cancelable';
import * as Db from '@/Db';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { WorkflowExecute } from 'n8n-core';
import PCancelable from 'p-cancelable';
import type { FindOperator, Repository } from 'typeorm';

import { ChildProcess } from 'child_process';
import type { ChildProcess } from 'child_process';
import { Url } from 'url';

import type { Request } from 'express';
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/WorkflowRunnerProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable @typescript-eslint/no-use-before-define */
/* eslint-disable @typescript-eslint/unbound-method */
import 'source-map-support/register';
import { BinaryDataManager, IProcessMessage, UserSettings, WorkflowExecute } from 'n8n-core';

import {
Expand Down
3 changes: 1 addition & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9485e2f

Please sign in to comment.