Skip to content

Commit

Permalink
fix: lambda index noExternal
Browse files Browse the repository at this point in the history
  • Loading branch information
gronxb committed Feb 17, 2025
1 parent 8c776b8 commit 49384a6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 30 deletions.
6 changes: 3 additions & 3 deletions plugins/aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"devDependencies": {
"@types/aws-lambda": "^8.10.147",
"@types/node": "^22.13.1",
"mime": "^4.0.4"
"mime": "^4.0.4",
"@hot-updater/core": "0.9.0",
"@hot-updater/js": "0.9.0"
},
"dependencies": {
"@aws-sdk/client-cloudfront": "^3.745.0",
Expand All @@ -51,8 +53,6 @@
"@aws-sdk/client-s3": "^3.685.0",
"@aws-sdk/credential-providers": "^3.744.0",
"@aws-sdk/lib-storage": "^3.685.0",
"@hot-updater/core": "0.6.5",
"@hot-updater/js": "0.6.5",
"@hot-updater/plugin-core": "0.9.0",
"aws-lambda": "^1.0.7"
}
Expand Down
29 changes: 8 additions & 21 deletions plugins/aws/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
import { defineConfig } from "tsup";

export default defineConfig([
{
entry: ["src/index.ts", "src/sdk.ts"],
format: ["esm", "cjs"],
outDir: "dist",
dts: true,
banner: {
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`,
},
export default defineConfig({
entry: ["src/index.ts", "sdk/index.ts", "lambda/index.ts"],
format: ["esm", "cjs"],
outDir: "dist",
dts: true,
banner: {
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`,
},
{
entry: ["lambda/index.ts"],
format: ["cjs"],
outDir: "dist/lambda",
sourcemap: false,
splitting: false,
clean: true,
dts: false,
external: ["aws-sdk"],
noExternal: ["@hot-updater/js", "@hot-updater/core"],
},
]);
});
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49384a6

Please sign in to comment.