Skip to content

Commit c129c03

Browse files
author
Frank Schmid
committed
Use requires
1 parent 2536861 commit c129c03

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

lib/aliasRestructureStack.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,23 @@
1212
const BbPromise = require('bluebird');
1313
const _ = require('lodash');
1414

15+
const init = require('./stackops/init');
16+
const functions = require('./stackops/functions');
17+
const apiGateway = require('./stackops/apiGateway');
18+
const userResources = require('./stackops/userResources');
19+
const lambdaRole = require('./stackops/lambdaRole');
20+
const events = require('./stackops/events');
21+
const cwEvents = require('./stackops/cwEvents');
22+
1523
module.exports = {
1624

17-
aliasInit: require('./stackops/init'),
18-
aliasHandleFunctions: require('./stackops/functions'),
19-
aliasHandleApiGateway: require('./stackops/apiGateway'),
20-
aliasHandleUserResources: require('./stackops/userResources'),
21-
aliasHandleLambdaRole: require('./stackops/lambdaRole'),
22-
aliasHandleEvents: require('./stackops/events'),
23-
aliasHandleCWEvents: require('./stackops/cwEvents'),
25+
aliasInit: init,
26+
aliasHandleFunctions: functions,
27+
aliasHandleApiGateway: apiGateway,
28+
aliasHandleUserResources: userResources,
29+
aliasHandleLambdaRole: lambdaRole,
30+
aliasHandleEvents: events,
31+
aliasHandleCWEvents: cwEvents,
2432

2533
aliasFinalize(currentTemplate, aliasStackTemplates, currentAliasStackTemplate) {
2634
const aliasStack = this._serverless.service.provider.compiledCloudFormationAliasTemplate;

0 commit comments

Comments
 (0)