iopipe / serverless-plugin-iopipe

Automatically wrap your serverless framework functions with IOpipe
https://www.iopipe.com
Apache License 2.0
40 stars 8 forks source link

package.json not in same directory as serverless.yml #34

Closed davetownsend closed 7 years ago

davetownsend commented 7 years ago

My project has multiple serverless.yml files (services) with a package.json in the root. sls deploy fails with ENOENT: no such file or directory because it can't find the package.json file.

I've set the following trying to bypass but not helping:

custom:
  iopipeNoVerify: true
  iopipeNoUpgrade: true

Any way to specify package.json location or get around the error?

coreylight commented 7 years ago

Thanks for the report @davetownsend, We didn't have tests covering that use case, but now we do! https://github.com/iopipe/serverless-plugin-iopipe/pull/35 should hopefully resolve it when merged. I anticipate a release to npm very soon.