Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
chore: upgrade to node18
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketD92 committed Nov 13, 2023
1 parent 5aa9a3a commit fb39c08
Show file tree
Hide file tree
Showing 19 changed files with 169 additions and 123 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
**/pnpm-debug.log

.pnpm-store/*
**/.pnpm-store/*

.build
docs/build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ phases:
install:
# See supported runtimes at https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
runtime-versions:
nodejs: 14
nodejs: 18

build:
commands:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 14
nodejs: 18

pre_build:
commands:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ phases:
install:
# See supported runtimes at https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
runtime-versions:
nodejs: 14
nodejs: 18

pre_build:
commands:
Expand Down
2 changes: 1 addition & 1 deletion main/cicd/cicd-pipeline/config/buildspec/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ phases:
install:
# See supported runtimes at https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
runtime-versions:
nodejs: 14
nodejs: 18

pre_build:
commands:
Expand Down
12 changes: 6 additions & 6 deletions main/cicd/cicd-pipeline/config/infra/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:5.0
Image: aws/codebuild/standard:7.0
EnvironmentVariables:
- Name: DEPLOYMENT_BUCKET
Value: ${self:provider.deploymentBucket.name}
Expand Down Expand Up @@ -844,7 +844,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:5.0
Image: aws/codebuild/standard:7.0
EnvironmentVariables:
- Name: DEPLOYMENT_BUCKET
Value: ${self:provider.deploymentBucket.name}
Expand All @@ -871,7 +871,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:5.0
Image: aws/codebuild/standard:7.0
EnvironmentVariables:
- Name: DEPLOYMENT_BUCKET
Value: ${self:provider.deploymentBucket.name}
Expand All @@ -898,7 +898,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:5.0
Image: aws/codebuild/standard:7.0
EnvironmentVariables:
- Name: DEPLOYMENT_BUCKET
Value: ${self:provider.deploymentBucket.name}
Expand Down Expand Up @@ -926,7 +926,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:5.0
Image: aws/codebuild/standard:7.0
EnvironmentVariables:
- Name: DEPLOYMENT_BUCKET
Value: ${self:provider.deploymentBucket.name}
Expand All @@ -953,7 +953,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:5.0
Image: aws/codebuild/standard:7.0
ServiceRole: !GetAtt AppDeployerRole.Arn
QueuedTimeoutInMinutes: 180
TimeoutInMinutes: 90
Expand Down
5 changes: 1 addition & 4 deletions main/solution/backend/config/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ module.exports = {
hints: false,
},
devtool: 'nosources-source-map',
externals: [
/aws-sdk/, // Available on AWS Lambda
slsw.lib.webpack.isLocal && nodeExternals(),
].filter(x => !!x),
externals: ['aws-sdk', slsw.lib.webpack.isLocal && nodeExternals()].filter(x => !!x),
plugins,
node: {
__dirname: false,
Expand Down
2 changes: 1 addition & 1 deletion main/solution/backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package:

provider:
name: aws
runtime: nodejs16.x
runtime: nodejs18.x
region: ${self:custom.settings.awsRegion}
profile: ${self:custom.settings.awsProfile, ""}
stackName: ${self:custom.settings.envName}-${self:service}
Expand Down
2 changes: 1 addition & 1 deletion main/solution/edge-lambda/config/infra/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Resources:
DeletionPolicy: Retain
Properties:
Description: Lambda@Edge function to set security headers in CloudFront responses
Runtime: nodejs16.x
Runtime: nodejs18.x
Handler: index.handler
Role: !GetAtt RoleCloudFrontInterceptor.Arn
# Declaring Lambda Function Code inline because the code requires API Gateway URL for the backend APIs (to set "connect-src" part of the "content-security-policy" header)
Expand Down
4 changes: 0 additions & 4 deletions main/solution/post-deployment/config/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ module.exports = {
hints: false,
},
devtool: 'nosources-source-map',
externals: [
/aws-sdk/, // Available on AWS Lambda
// slsw.lib.webpack.isLocal && nodeExternals(), // Do NOT uncomment this line
], // .filter(x => !!x),
plugins,
node: {
__dirname: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ Resources:
Type: 'AWS::Lambda::Function'
Properties:
Description: PreSignUp lambda to auto-confirm newly signed up users in Cognito
Runtime: nodejs16.x
Runtime: nodejs18.x
Handler: index.handler
FunctionName: !Sub '${self:custom.settings.namespace}-Cognito-PreSignUp'
Role: !GetAtt PreSignUpLambdaRole.Arn
Expand Down
2 changes: 1 addition & 1 deletion main/solution/post-deployment/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package:

provider:
name: aws
runtime: nodejs16.x
runtime: nodejs18.x
region: ${self:custom.settings.awsRegion}
profile: ${self:custom.settings.awsProfile, ""}
stackName: ${self:custom.settings.envName}-${self:service}
Expand Down
4 changes: 0 additions & 4 deletions main/solution/pre-deployment/config/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ module.exports = {
hints: false,
},
devtool: 'nosources-source-map',
externals: [
/aws-sdk/, // Available on AWS Lambda
// slsw.lib.webpack.isLocal && nodeExternals(), // Do NOT uncomment this line
], // .filter(x => !!x),
plugins,
node: {
__dirname: false,
Expand Down
2 changes: 1 addition & 1 deletion main/solution/pre-deployment/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package:

provider:
name: aws
runtime: nodejs16.x
runtime: nodejs18.x
region: ${self:custom.settings.awsRegion}
profile: ${self:custom.settings.awsProfile, ""}
stackName: ${self:custom.settings.envName}-${self:service}
Expand Down
5 changes: 3 additions & 2 deletions main/solution/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@amzn/base-workflow-ui": "workspace:*",
"@amzn/environment-type-mgmt-ui": "workspace:*",
"@amzn/key-pair-mgmt-ui": "workspace:*",
"@babel/runtime": "^7.9.0",
"animate.css": "3.7.0",
"aws-sdk": "^2.1228.0",
"classnames": "^2.3.2",
Expand Down Expand Up @@ -64,8 +65,8 @@
"serverless-deployment-bucket": "^1.6.0"
},
"scripts": {
"start": "react-scripts start",
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
"start": "react-scripts --openssl-legacy-provider start",
"build": "INLINE_RUNTIME_CHUNK=false react-scripts --openssl-legacy-provider build",
"test": "react-scripts test --watchAll=false --passWithNoTests --verbose --coverage",
"test:watch": "react-scripts test --passWithNoTests --verbose --coverage",
"eject": "react-scripts eject",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"services": "workspace:*"
},
"engines": {
"node": ">=14 <17",
"node": ">=14 <=18",
"pnpm": ">=7 <9"
},
"pnpm": {
Expand All @@ -93,7 +93,8 @@
"jsdom": "16.5.0",
"react-dev-utils": "11.0.4",
"node-notifier": "8.0.1",
"xml2js": "0.5.0"
"xml2js": "0.5.0",
"react-refresh": "0.11.0"
}
}
}
Loading

0 comments on commit fb39c08

Please sign in to comment.