Skip to content

Commit 991db28

Browse files
committed
fix: bundling of lambda
1 parent 10b0719 commit 991db28

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.projen/tasks.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ project.bundler.addBundle('./src/lambda/tailscale-proxy/', {
5959
target: 'node20',
6060
sourcemap: true,
6161
});
62+
project.postCompileTask.exec('cp assets/lambda/tailscale-proxy/index.js lib/lambda/tailscale-proxy/index.js');
63+
project.postCompileTask.exec('cp assets/lambda/tailscale-proxy/index.js lib/lambda/tailscale-proxy/index.js.map');
6264

6365
project.synth();

npm-link-manual.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
npm run default
44
npm run compile
5-
cp assets/lambda/tailscale-proxy/index.js lib/lambda/tailscale-proxy/index.js
65

76
# For this proxy package to be used in the -caller project
87
npm link

0 commit comments

Comments
 (0)