amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

BUG: error when running example (PR submitted) #9

Closed rayjanwilson closed 6 years ago

rayjanwilson commented 6 years ago

when running the provided example, the following error is thrown:

ERROR: amplify-plugin: Writing to examples/awsconfiguration.json: Error: ENOENT: no such file or directory, open 'examples/awsconfiguration.json'
ERROR: amplify-plugin: Writing to examples/schema.json: Error: ENOENT: no such file or directory, open 'examples/schema.json'
ERROR: amplify-plugin: Writing to examples/aws-exports.js: Error: ENOENT: no such file or directory, open 'examples/aws-exports.js'

Pull Request incoming

adrianhall commented 6 years ago

Thanks for the bug report. I didn't check in a GITHUB_EMPTY_DIRECTORY file which would have created the examples directory. I'd prefer to solve this by doing that instead of altering the path so that the user can remove the generated files easily (together with a .gitignore file). I'll do this tonight.

rayjanwilson commented 6 years ago

gotcha makes sense

adrianhall commented 6 years ago

Checkin #a80856e fixes this issue.