Skip to content

Commit dbf88c4

Browse files
committed
Except custom resource handlers
1 parent 311ee3e commit dbf88c4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/@aws-cdk/custom-resource-handlers/test/aws-certificatemanager/dns-validated-certificate-handler.test.js renamed to packages/@aws-cdk/custom-resource-handlers/test/aws-certificatemanager/dns-validated-certificate-handler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const LambdaTester = require('lambda-tester').noVersionCheck();
44
const sinon = require('sinon');
5-
const handler = require('..');
5+
const handler = require('../../lib/aws-certificatemanager/dns-validated-certificate-handler');
66
const nock = require('nock');
77
const { mockClient } = require('aws-sdk-client-mock');
88
const acm = require('@aws-sdk/client-acm');

tools/@aws-cdk/cdk-build-tools/config/ext.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
// JavaScript for highest throughput.
66

77
const isCi = !!process.env.CI || !!process.env.CODEBUILD_BUILD_ID;
8-
module.exports = isCi ? 'js' : 'ts';
8+
9+
const thisPackageName = require(`${process.cwd()}/package.json`);
10+
const isExceptedPackage = ['@aws-cdk/custom-resource-handlers'].includes(thisPackageName);
11+
12+
module.exports = isCi && !isExceptedPackage ? 'js' : 'ts';

0 commit comments

Comments
 (0)