Skip to content

Commit 29b5194

Browse files
committed
fix: don't show built-in Node lifetime warnings
We have moved to using Notices to display Node support warnings, so we should disable the built-in warnings provided by `@jsii/check-node`.
1 parent 12299ff commit 29b5194

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

.projenrc.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ const cli = configureProject(
761761
cloudFormationDiff,
762762
cxApi,
763763
'@aws-cdk/region-info',
764-
'@jsii/check-node',
765764
'archiver',
766765
...CLI_SDK_VERSION === '2' ? [
767766
'aws-sdk',
@@ -1126,7 +1125,6 @@ const toolkitLib = configureProject(
11261125
`@aws-sdk/credential-providers@${CLI_SDK_V3_RANGE}`,
11271126
`@aws-sdk/ec2-metadata-service@${CLI_SDK_V3_RANGE}`,
11281127
`@aws-sdk/lib-storage@${CLI_SDK_V3_RANGE}`,
1129-
'@jsii/check-node',
11301128
'@smithy/middleware-endpoint',
11311129
'@smithy/node-http-handler',
11321130
'@smithy/property-provider',

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as cxapi from '@aws-cdk/cx-api';
2-
import '@jsii/check-node/run';
32
import * as chalk from 'chalk';
43
import { CdkToolkit, AssetBuildTime } from './cdk-toolkit';
54
import { parseCommandLineArguments } from './parse-command-line-arguments';

packages/aws-cdk/lib/list-stacks.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
import '@jsii/check-node/run';
31
import { DefaultSelection, ExtendedStackSelection, type StackDetails } from './api/cxapp/cloud-assembly';
42
import { CdkToolkit } from './cli/cdk-toolkit';
53

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jest.mock('../../lib/logging', () => ({
1313
}));
1414

1515
jest.mock('@aws-cdk/cx-api');
16-
jest.mock('@jsii/check-node/run');
1716
jest.mock('../../lib/cli/platform-warnings', () => ({
1817
checkForPlatformWarnings: jest.fn().mockResolvedValue(undefined),
1918
}));

0 commit comments

Comments
 (0)