{
  "name": "serverless-image-resizer",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "deploy": "serverless deploy function -f imageResizer",
    "deploy:service": "serverless deploy",
    "invoke": "serverless invoke -f imageResizer",
    "logs": "serverless logs -f imageResizer -t",
    "webpack:build": "serverless webpack --out .webpack",
    "webpack:invoke": "serverless webpack invoke -f imageResizer"
  },
  "dependencies": {
    "babel-polyfill": "^6.16.0",
    "gm": "^1.23.0",
    "serverless": "^1.1.0"
  },
  "devDependencies": {
    "babel-core": "^6.18.2",
    "babel-loader": "^6.2.7",
    "babel-preset-es2015": "^6.18.0",
    "babel-preset-stage-3": "^6.17.0",
    "serverless": "^1.1.0",
    "serverless-webpack": "^1.0.0-rc.2",
    "webpack-node-externals": "^1.5.4",
    "yarn": "^0.16.1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

{
  "name": "serverless-image-resizer",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "deploy": "serverless deploy",
    "deploy:function": "serverless deploy function -f imageResizer",
    "invoke": "serverless invoke -f imageResizer",
    "logs": "serverless logs -f imageResizer -t",
    "webpack:build": "serverless webpack --out .webpack",
    "webpack:invoke": "serverless webpack invoke -f imageResizer"
  },
  "dependencies": {
    "babel-polyfill": "^6.16.0",
    "gm": "^1.23.0",
    "serverless": "^1.1.0"
  },
  "devDependencies": {
    "babel-core": "^6.18.2",
    "babel-loader": "^6.2.7",
    "babel-preset-es2015": "^6.18.0",
    "babel-preset-stage-3": "^6.17.0",
    "serverless": "^1.1.0",
    "serverless-webpack": "^1.0.0-rc.2",
    "webpack-node-externals": "^1.5.4",
    "yarn": "^0.16.1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

Change npm script. `deploy:service` -> `deploy:function`
Change npm script. `deploy:service` -> `deploy:function`
