Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix eslint
  • Loading branch information
vkkis93 committed Feb 20, 2018
commit ba7ec419d8a505c6b39836c9442e214b786457bb
24 changes: 12 additions & 12 deletions lib/prepareStepOfflineInvoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ const path = require('path');
*/

module.exports = {
prepareStepOfflineInvoke() {
_.set(this.serverless, 'service.package.individually', false);
prepareStepOfflineInvoke() {
_.set(this.serverless, 'service.package.individually', false);

return this.serverless.pluginManager.spawn('webpack:validate')
.then(() => {
if (!this.options.location && !_.get(this.serverless, 'service.custom.stepFunctionsOffline.location')) {
_.set(this.serverless, 'service.custom.stepFunctionsOffline.location',
path.relative(this.serverless.config.servicePath, path.join(this.webpackOutputPath, 'service'))
);
}
return null;
});
}
return this.serverless.pluginManager.spawn('webpack:validate')
.then(() => {
if (!this.options.location && !_.get(this.serverless, 'service.custom.stepFunctionsOffline.location')) {
_.set(this.serverless, 'service.custom.stepFunctionsOffline.location',
path.relative(this.serverless.config.servicePath, path.join(this.webpackOutputPath, 'service'))
);
}
return null;
});
}
};