Skip to content

Commit

Permalink
chore: [#188558362] upgrade serverless to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
aadedejifearless committed Dec 6, 2024
1 parent 193ee64 commit f67be66
Show file tree
Hide file tree
Showing 7 changed files with 1,480 additions and 97 deletions.
8 changes: 4 additions & 4 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@
"prettier": "2.8.8",
"prettier-plugin-organize-imports": "3.2.4",
"rimraf": "5.0.10",
"serverless": "3.39.0",
"serverless-dynamodb": "0.2.54",
"serverless-offline": "13.6.0",
"serverless": "4.4.14",
"serverless-dynamodb": "0.2.56",
"serverless-offline": "14.3.4",
"serverless-offline-ssm": "6.2.0",
"serverless-prune-plugin": "^2.0.2",
"serverless-prune-plugin": "^2.1.0",
"serverless-webpack": "5.14.1",
"supertest": "6.3.4",
"ts-jest": "29.2.5",
Expand Down
18 changes: 10 additions & 8 deletions api/serverless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,8 @@ const useWireMockForFormationAndBusinessSearch =
const serverlessConfiguration: AWS = {
useDotenv: true,
service: "businessnjgov-api",
frameworkVersion: "3",
frameworkVersion: "4",
custom: {
webpack: {
webpackConfig: "./webpack.config.ts",
includeModules: {
nodeModulesRelativeDir: "../",
},
},
"serverless-dynamodb": {
port: dynamoOfflinePort,
start: {
Expand All @@ -119,9 +113,17 @@ const serverlessConfiguration: AWS = {
automatic: true,
number: 5,
},
esbuild: {
bundle: true,
minify: true,
target: "node20",
platform: "node",
external: ["aws-sdk"],
sourcemap: true,
},
},
plugins: [
"serverless-webpack",
"serverless-esbuild",
...(isDocker ? [] : ["serverless-dynamodb"]),
"serverless-offline-ssm",
"serverless-offline",
Expand Down
6 changes: 0 additions & 6 deletions api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@
},
"include": ["src/**/*.ts", "test/**/*.ts", "serverless.ts"],
"exclude": ["node_modules/**/*", ".serverless/**/*", ".webpack/**/*", "_warmup/**/*", ".vscode/**/*"],
"ts-node": {
"require": ["tsconfig-paths/register"],
"moduleTypes": {
"jest.config.ts": "cjs"
}
}
}
62 changes: 0 additions & 62 deletions api/webpack.config.ts

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"remark-rehype": "10.1.0",
"remove-markdown": "0.5.5",
"serverless-http": "3.2.0",
"serverless-offline": "13.6.0",
"serverless-offline": "14.3.4",
"simple-oauth2": "5.0.1",
"slick-carousel": "^1.8.1",
"swr": "1.3.0",
Expand Down Expand Up @@ -210,10 +210,10 @@
"sass": "1.81.0",
"sass-loader": "14.2.1",
"semantic-release": "19.0.5",
"serverless": "3.39.0",
"serverless-dynamodb": "0.2.54",
"serverless": "4.4.14",
"serverless-dynamodb": "0.2.56",
"serverless-offline-ssm": "6.2.0",
"serverless-prune-plugin": "^2.0.2",
"serverless-prune-plugin": "^2.1.0",
"serverless-webpack": "5.14.1",
"storybook": "7.6.20",
"style-loader": "3.3.4",
Expand Down
1 change: 0 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
},
{
"matchPackageNames": [
"@types/webpack-node-externals",
"copy-webpack-plugin",
"tsconfig-paths-webpack-plugin",
"@serverless/typescript"
Expand Down
Loading

0 comments on commit f67be66

Please sign in to comment.