Skip to content

Commit f3b4bfb

Browse files
committed
chore: wip
1 parent c3c78a3 commit f3b4bfb

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

bun.lockb

488 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
},
109109
"workspaces": [
110110
"storage/framework",
111+
"storage/framework/server",
111112
"storage/framework/libs/*",
112113
"storage/framework/views/*",
113114
"storage/framework/core/*",

storage/framework/core/tsconfig.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,7 @@
5454
"../../../**/*.ts",
5555
"../../../*.d.ts",
5656
"../../../**/*.d.ts",
57-
"../docs/.vitepress/*",
58-
"../stack/**/*",
59-
"../views/desktop/**/*",
60-
"../views/desktop/*",
61-
"./src/**/*.ts",
62-
"../types/*",
63-
"./scripts/*"
57+
"../docs/.vitepress/*"
6458
],
6559
"exclude": [
6660
"../**/cdk.out",

storage/framework/server/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ WORKDIR /tmp
55
COPY ./runtime.ts ./runtime.ts
66
COPY ./index.ts ./index.ts
77

8-
RUN bun install aws4fetch
8+
RUN bun add aws4fetch @stacksjs/cloud
99
RUN bun build --compile runtime.ts --outfile bootstrap
10-
# TODO: we should not externalize @stacksjs/router here?
11-
RUN bun build --target=bun index.ts --outfile index
10+
# TODO: remove the --external @stacksjs/cloud
11+
RUN bun build --target=bun index.ts --outfile index --external @stacksjs/cloud
1212

1313
# Runtime image, includes Lambda RIC
1414
FROM public.ecr.aws/lambda/provided:al2

storage/framework/server/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"@aws-sdk/client-dynamodb": "^3.490.0",
77
"@aws-sdk/lib-dynamodb": "^3.490.0",
88
"@smithy/smithy-client": "^2.2.1",
9-
"@stacksjs/config": "^0.58.28",
10-
"@stacksjs/router": "^0.58.28",
9+
"@stacksjs/cloud": "^0.58.28",
1110
"aws4fetch": "^1.0.17"
1211
}
1312
}

storage/framework/server/runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable */
22
import type { Server, ServerWebSocket } from 'bun'
3+
// @ts-expect-error: missing types
34
import { AwsClient } from 'aws4fetch'
45

56
interface Lambda {

0 commit comments

Comments
 (0)