thdxr
03/09/2021, 1:15 AMFrank
nodeModules
. Are you intending to exclude them from the bundle or to include them in the node_modules folder?
https://github.com/ironbay/serverless-stack/commit/7c4403b69973caca3f74b1d6f747e70205066635#diff-afd94e9d7ffa6f7ab02a2[…]7428b7196d7c6e4f3ba5fffdR56thdxr
03/09/2021, 8:38 PMexternalModules
instead of nodeModules
Frank
externalModules
for now?thdxr
03/09/2021, 8:39 PMthdxr
03/09/2021, 8:40 PMthdxr
03/09/2021, 8:40 PMexternalModules
+ commandHooks
would solve everything for meFrank
Frank
Frank
thdxr
03/09/2021, 8:41 PMthdxr
03/09/2021, 8:41 PMcommandHooks: {
afterBundling(_input, output) {
execSync(`cp -a prisma ${output}`)
},
},
Frank
copyFiles: {
from: 'node_modules/.prisma',
to: output
}
thdxr
03/09/2021, 8:57 PMthdxr
03/09/2021, 9:45 PMthdxr
03/09/2021, 9:45 PMnode_modules/@prisma/client
to output/node_modules/@prisma
thdxr
03/09/2021, 9:46 PMFrank
thdxr
03/09/2021, 10:00 PMthdxr
03/09/2021, 10:01 PMmkdir -p
on the target directoryFrank
thdxr
03/11/2021, 12:56 PM