Skip to content

Commit

Permalink
deps: upgrade pacakges and remove node-fetch (#553)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <alvajus@amazon.com>
  • Loading branch information
pendo324 authored Mar 5, 2024
1 parent 8ac262a commit bca06c1
Show file tree
Hide file tree
Showing 5 changed files with 2,001 additions and 2,966 deletions.
1 change: 0 additions & 1 deletion integration_test/cloudfront_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch';
describe('Integration test', () => {
test('200 Response from CloudFront Distribution', async () => {
const url = process.env.CLOUDFRONT_URL ? `https://${process.env.CLOUDFRONT_URL}/test.html` : 'No URL in env';
Expand Down
19 changes: 15 additions & 4 deletions lib/finch-pipeline-stack.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { BuildSpec } from 'aws-cdk-lib/aws-codebuild';
import { CodePipeline, CodePipelineSource, ShellStep } from 'aws-cdk-lib/pipelines';
import { FinchPipelineAppStage } from './finch-pipeline-app-stage';
import { ENVIRONMENT_STAGE } from './finch-pipeline-app-stage';
import { Construct } from 'constructs';
import { EnvConfig } from '../config/env-config';
import { RunnerConfig } from '../config/runner-config';
import { ENVIRONMENT_STAGE, FinchPipelineAppStage } from './finch-pipeline-app-stage';

export class FinchPipelineStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
Expand All @@ -20,7 +20,18 @@ export class FinchPipelineStack extends cdk.Stack {
synth: new ShellStep('Synth', {
input: source,
commands: ['npm ci', 'npm run build', 'npx cdk synth']
})
}),
synthCodeBuildDefaults: {
partialBuildSpec: BuildSpec.fromObject({
phases: {
install: {
'runtime-versions': {
nodejs: '20'
}
}
}
})
}
});

const betaApp = new FinchPipelineAppStage(this, 'Beta', {
Expand Down
Loading

0 comments on commit bca06c1

Please sign in to comment.