Skip to content

Commit 6a64973

Browse files
committed
move zod into bundle
1 parent b64afc7 commit 6a64973

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/api/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const commonParams = {
1616
target: "es2022", // Target ES2022
1717
sourcemap: false,
1818
platform: "node",
19-
external: ["aws-sdk", "moment-timezone", "passkit-generator", "fastify", "zod", "zod-openapi", "@fastify/swagger", "@fastify/swagger-ui"],
19+
external: ["aws-sdk", "moment-timezone", "passkit-generator", "fastify", "@fastify/swagger", "@fastify/swagger-ui"],
2020
alias: {
2121
'moment-timezone': resolve(process.cwd(), '../../node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.js')
2222
},
@@ -28,7 +28,6 @@ const commonParams = {
2828
const require = topLevelCreateRequire(import.meta.url);
2929
const __filename = fileURLToPath(import.meta.url);
3030
const __dirname = path.dirname(__filename);
31-
import "zod-openapi/extend";
3231
`.trim(),
3332
}, // Banner for compatibility with CommonJS
3433
plugins: [

src/api/package.lambda.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"moment-timezone": "^0.5.45",
1111
"passkit-generator": "^3.3.1",
1212
"fastify": "^5.1.0",
13-
"zod": "^3.23.8",
14-
"zod-openapi": "^4.2.4",
1513
"@fastify/swagger": "^9.5.0",
1614
"@fastify/swagger-ui": "^5.2.2"
1715
},

0 commit comments

Comments
 (0)