Skip to content

Commit 3062283

Browse files
committed
why-is-node-running
1 parent cf24e83 commit 3062283

File tree

6 files changed

+17
-1
lines changed

6 files changed

+17
-1
lines changed

.projenrc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,8 @@ const cli = configureProject(
11741174
'wrap-ansi@^7', // Last non-ESM version
11751175
'yaml@^1',
11761176
'yargs@^15',
1177+
1178+
'why-is-node-running',
11771179
],
11781180
tsconfig: {
11791181
compilerOptions: {

packages/aws-cdk/.projen/deps.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-cdk/.projen/tasks.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-cdk/lib/cli/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-shadow */ // yargs
2+
3+
import whyIsNodeRunning from 'why-is-node-running'; // should be your first import
24
import * as cxapi from '@aws-cdk/cx-api';
35
import type { ChangeSetDeployment, DeploymentMethod, DirectDeployment } from '@aws-cdk/toolkit-lib';
46
import { ToolkitError, Toolkit } from '@aws-cdk/toolkit-lib';
@@ -744,6 +746,8 @@ export function cli(args: string[] = process.argv.slice(2)) {
744746
console.log('Ending telemetry...');
745747
await CliIoHost.get()?.telemetry?.end(error);
746748
console.log(`Telemetry ended: ${new Date()}`);
749+
// eslint-disable-next-line @typescript-eslint/no-require-imports
750+
whyIsNodeRunning();
747751
} catch (e: any) {
748752
console.log(`Ending telemetry failed: ${e.message}`);
749753
await CliIoHost.get()?.asIoHelper().defaults.trace(`Ending Telemetry failed: ${e.message}`);

packages/aws-cdk/package.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yarn.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)