is there a way to bundle miscellaneous files into ...
# help
s
is there a way to bundle miscellaneous files into a Lambda .zip file? in other words, I can declare an SST function and tell it to include
/some/path/**/*
in that function’s zip
f
s
cool! and are those hooks executed only when deploying, or in local mode as well?
f
only on deploy
s
and what’s
inputDir
and
outputDir
?
from: path to the files on ur local machine relative to
srcPath
to: where to save them inside Lambda zip
s
yeah, those params are pretty straightforward. I meant these:
Copy code
beforeBundling: (inputDir, outputDir) => {
also, a feature request 🙂 hooks should be optional. if I define
commandHooks
at all, it requires all three to be defined
oh, I got it..
outputDir
is the assets folder.
inputDir
apparently is just the current folder.. or project root
r
If such files are e.g Typescript, will they be transpiled?
s
I don’t think so. I believe this is more for bundling misc files within the Lambda package
f
@Roberto Novelo the
commandHooks
take bash commands, if u reference TS files, they aren’t auto compiled.