@friggframework/devtools 2.0.0--canary.461.40be5d4.0 → 2.0.0--canary.461.94d7ddb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -246,7 +246,7 @@ describe('MigrationBuilder', () => {
|
|
|
246
246
|
});
|
|
247
247
|
});
|
|
248
248
|
|
|
249
|
-
it('should include Prisma layer in
|
|
249
|
+
it('should only include Prisma layer in worker (router doesn\'t need database)', async () => {
|
|
250
250
|
const appDef = {
|
|
251
251
|
database: {
|
|
252
252
|
postgres: {
|
|
@@ -257,8 +257,10 @@ describe('MigrationBuilder', () => {
|
|
|
257
257
|
|
|
258
258
|
const result = await builder.build(appDef, {});
|
|
259
259
|
|
|
260
|
+
// Worker needs Prisma layer for runtime client
|
|
260
261
|
expect(result.functions.dbMigrationWorker.layers).toEqual([{ Ref: 'PrismaLambdaLayer' }]);
|
|
261
|
-
|
|
262
|
+
// Router doesn't access database - no Prisma layer needed
|
|
263
|
+
expect(result.functions.dbMigrationRouter.layers).toBeUndefined();
|
|
262
264
|
});
|
|
263
265
|
|
|
264
266
|
it('should set skipEsbuild for both functions', async () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.461.
|
|
4
|
+
"version": "2.0.0--canary.461.94d7ddb.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-ec2": "^3.835.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.835.0",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@babel/eslint-parser": "^7.18.9",
|
|
12
12
|
"@babel/parser": "^7.25.3",
|
|
13
13
|
"@babel/traverse": "^7.25.3",
|
|
14
|
-
"@friggframework/schemas": "2.0.0--canary.461.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.461.94d7ddb.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.94d7ddb.0",
|
|
16
16
|
"@hapi/boom": "^10.0.1",
|
|
17
17
|
"@inquirer/prompts": "^5.3.8",
|
|
18
18
|
"axios": "^1.7.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"serverless-http": "^2.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.94d7ddb.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.94d7ddb.0",
|
|
39
39
|
"aws-sdk-client-mock": "^4.1.0",
|
|
40
40
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
41
41
|
"jest": "^30.1.3",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "94d7ddb5c829c36c4be0f74dbfae235fe9425767"
|
|
74
74
|
}
|