Skip to content

Commit fe1370f

Browse files
authored
Merge pull request #15 from wesreid/fix/build-issue
Run tsc command
2 parents 0281f68 + a0162fe commit fe1370f

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

bin/bootstrap-iam.js

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

scripts/build-binaries.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { build } from 'esbuild';
22
import { chmod } from 'fs/promises';
33
import { join } from 'path';
4+
import { exec } from 'child_process';
5+
import { promisify } from 'util';
6+
7+
const execAsync = promisify(exec);
48

59
async function buildBinary() {
610
const files = [
@@ -34,6 +38,17 @@ async function buildBinary() {
3438

3539
await chmod(outFile, '755');
3640
}
41+
42+
// Run tsc command
43+
try {
44+
const { stdout, stderr } = await execAsync('tsc');
45+
console.log('TypeScript compilation output:', stdout);
46+
if (stderr) {
47+
console.error('TypeScript compilation errors:', stderr);
48+
}
49+
} catch (error) {
50+
console.error('Error running tsc:', error);
51+
}
3752
}
3853

3954
buildBinary().catch((err) => {

src/bin/bootstrap-iam.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { App, Stack, StackProps, CfnOutput } from 'aws-cdk-lib';
2-
import { OpenIdConnectProvider, Role, WebIdentityPrincipal, ManagedPolicy, CfnOIDCProvider } from 'aws-cdk-lib/aws-iam';
2+
import { Role, WebIdentityPrincipal, ManagedPolicy, CfnOIDCProvider } from 'aws-cdk-lib/aws-iam';
33
import { execSync } from 'child_process';
4-
import { join } from 'path';
54

65
console.log('Starting GitHub OIDC IAM setup...');
76

0 commit comments

Comments
 (0)