deno.land / x / lambda@1.42.4 / artifacts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/shset -euo pipefail
## Generate zip artifacts for deno-lambda publishing.#
# populate the cache from deno.land/x/lambda so we use the current filesmkdir -p .deno_dir/deps/https/deno.land/x/lambda/cp mod.ts .deno_dir/deps/https/deno.land/x/lambda/mod.tscp types.d.ts .deno_dir/deps/https/deno.land/x/lambda/types.d.ts# this shouldn't require a fetch to deno.landDENO_DIR=/src/runtime/.deno_dir ./bin/deno cache hello.ts
# assert the required files are going to be present in the zipls bin/deno &> /dev/null && ls bootstrap &> /dev/null && ls hello.ts &> /dev/null
cp -R .deno_dir/gen/file/$PWD/. .deno_dir/LAMBDA_TASK_ROOTzip -qq deno-lambda-layer.zip -x '.deno_dir/gen/file/*' -r .deno_dir ./bin/deno bootstrap hello.tszip -qq deno-lambda-example.zip -x '.deno_dir/gen/file/*' -r .deno_dir hello.ts
DENO_DIR=/src/runtime/.deno_dir ./bin/deno bundle hello.ts hello.bundle.js
rm -rf .deno_dirmkdir -p .deno_dir/deps/https/deno.land/x/lambda/cp mod.ts .deno_dir/deps/https/deno.land/x/lambda/mod.tsDENO_DIR=/src/runtime/.deno_dir ./bin/deno cache lock.tscp -R .deno_dir/gen/file/$PWD/. .deno_dir/LAMBDA_TASK_ROOTzip -qq lock.zip -x '.deno_dir/gen/file/*' -r .deno_dir lock.ts
lambda

Version Info

Tagged at
2 weeks ago