Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 4316b18

Browse files
authored
refactor(core, lambda, lambda-at-edge): move some common build code into core package (#1851)
1 parent fcd174f commit 4316b18

18 files changed

+660
-22
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
],
8080
"moduleNameMapper": {
8181
"fs-extra": "<rootDir>/node_modules/fs-extra",
82-
"@sls-next/core": "<rootDir>/packages/libs/core/src/index.ts"
82+
"@sls-next/core/dist/module(.*)": "<rootDir>/packages/libs/core/src$1",
83+
"@sls-next/core/dist(.*)": "<rootDir>/packages/libs/core/src$1",
84+
"@sls-next/core(.*)": "<rootDir>/packages/libs/core/src$1"
8385
},
8486
"coverageDirectory": "<rootDir>/coverage/",
8587
"coveragePathIgnorePatterns": [
@@ -103,6 +105,7 @@
103105
"<rootDir>/packages/libs/core/src/defaultHandler.ts",
104106
"<rootDir>/packages/libs/core/src/regenerationHandler.ts",
105107
"<rootDir>/packages/libs/core/src/platform/platformClient.ts",
108+
"<rootDir>/packages/libs/core/src/build/builder.ts",
106109
"<rootDir>/packages/libs/aws-common/src/awsPlatformClient.ts",
107110
"<rootDir>/packages/libs/lambda/"
108111
],

packages/libs/core/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"jsonwebtoken": "^8.5.1",
4040
"next": "^11.1.2",
4141
"node-fetch": "2.6.5",
42+
"normalize-path": "^3.0.0",
4243
"path-to-regexp": "^6.1.0",
4344
"sharp": "^0.29.1"
4445
},
@@ -47,6 +48,7 @@
4748
"@types/fresh": "^0.5.0",
4849
"@types/jsonwebtoken": "^8.5.5",
4950
"@types/node-fetch": "3.0.3",
51+
"@types/normalize-path": "^3.0.0",
5052
"@types/react": "^17.0.30",
5153
"@types/react-dom": "^17.0.9",
5254
"@types/send": "^0.17.1",

0 commit comments

Comments
 (0)