Skip to content

Commit b534c45

Browse files
committed
Oopsepoops
1 parent 0f7b121 commit b534c45

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

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

77
const isCi = !!process.env.CI || !!process.env.CODEBUILD_BUILD_ID;
88

9-
const thisPackageName = require(`${process.cwd()}/package.json`);
9+
const thisPackageName = require(`${process.cwd()}/package.json`).name;
1010
const isExceptedPackage = ['@aws-cdk/custom-resource-handlers'].includes(thisPackageName);
1111

1212
module.exports = isCi && !isExceptedPackage ? 'js' : 'ts';

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
// iteration (save -> run), but on CI machines we want to run the compiled
55
// JavaScript for highest throughput.
66

7-
const isCi = !!process.env.CI || !!process.env.CODEBUILD_BUILD_ID;
8-
const ext = isCi ? 'js' : 'ts';
7+
const ext = require('./ext');
98

109
module.exports = {
1110
// The preset deals with preferring TS over JS

0 commit comments

Comments
 (0)