How do I use ably-js with Shep?

To use ably-js with shep, you'll need to specify it as a webpack external, and use a custom Shep buildCommand. So in your webpack config, add:

 

  externals: {
    'ably': 'ably'
  },

 

and in the shep options object in your package.json, add:

 

  "shep": {
    "buildCommand": "webpack --bail && npm i ably@1 --prefix ./dist/function-name"
  },

 

replacing "function-name" with your function name.