Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/appsync-emulator-serverless/loadServerlessConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

const Serverless = require('serverless');
const AwsProvider = require('serverless/lib/plugins/aws/provider/awsProvider.js');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this exposed anywhere else ? I am a little concerned tying this to a specific file.

const path = require('path');
const fs = require('fs');

Expand All @@ -26,6 +27,8 @@ class ConfigServerless extends Serverless {
// make sure the command exists before doing anything else
this.pluginManager.validateCommand(this.processedInput.commands);

this.setProvider('aws', new AwsProvider(this, this.processedInput.options));

// populate variables after --help, otherwise help may fail to print
// (https://github.com/serverless/serverless/issues/2041)
return this.variables
Expand Down