_updateHooks() {
    for (const hook of this.serverless.pluginManager.hooks[
      'after:package:createDeploymentArtifacts'
    ] || []) {
      if (hook.pluginName === 'AwsDev') {
        continue
      }
      hook.hook = async () => {}
    }

    for (const hook of this.serverless.pluginManager.hooks[
      'before:package:createDeploymentArtifacts'
    ] || []) {
      if (hook.pluginName === 'AwsDev') {
        continue
      }
      hook.hook = async () => {}
    }
  }
When using devmode we are not actually building deploymentArtifacts and are instead
using devmode specific hooks and plugins so we remove all createDeploymentArtifacts
hooks when running dev mode