Skip to content

Commit

Permalink
Convert rocketchat-slashcommands-msg to main module structure (#12823)
Browse files Browse the repository at this point in the history
* Convert rocketchat-slashcommands-msg to main module structure

* Update package.js
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 4, 2018
1 parent db515cc commit 1390d81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/rocketchat-slashcommands-msg/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ Package.onUse(function(api) {
'ecmascript',
'check',
'rocketchat:lib',
'templating',
]);

api.use('templating', 'client');

api.addFiles('server.js', 'server');
api.mainModule('server/index.js', 'server');
});
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-msg/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './server';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Meteor } from 'meteor/meteor';
import { Match } from 'meteor/check';
import { Random } from 'meteor/random';
import { TAPi18n } from 'meteor/tap:i18n';
import { RocketChat } from 'meteor/rocketchat:lib';

/*
* Msg is a named function that will replace /msg commands
Expand Down

0 comments on commit 1390d81

Please sign in to comment.