Skip to content

Commit

Permalink
Convert rocketchat-slashcommands-topic to main module structure (#12826)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 4, 2018
1 parent 54a1b84 commit babecd7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-topic/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../lib/topic';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Meteor } from 'meteor/meteor';

import { RocketChat, handleError } from 'meteor/rocketchat:lib';
import { ChatRoom } from 'meteor/rocketchat:ui';
/*
* Join is a named function that will replace /topic commands
* @param {Object} message - The message object
Expand Down
8 changes: 3 additions & 5 deletions packages/rocketchat-slashcommands-topic/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ Package.describe({
});

Package.onUse(function(api) {

api.use([
'rocketchat:lib',
'ecmascript',
'rocketchat:authorization',
]);

api.use(['rocketchat:authorization'], ['client', 'server']);

api.addFiles('topic.js', ['client', 'server']);
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-topic/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../lib/topic';

0 comments on commit babecd7

Please sign in to comment.