I've added the following script to my package.json file: "7z": "7z a function.zip ./package.json ./index.js ./node_modules '-xr!*.d.ts' '-xr!*.map' '-xr!*.flow'",, however when I run it, it fails to exclude .d.ts files in node_modules/aws-sdk/client/