diff --git a/packages/rocketchat-slashcommands-open/client/client.js b/packages/rocketchat-slashcommands-open/client/client.js index b61c47e7ea6d..a7d8b05b11a0 100644 --- a/packages/rocketchat-slashcommands-open/client/client.js +++ b/packages/rocketchat-slashcommands-open/client/client.js @@ -1,6 +1,8 @@ import { Meteor } from 'meteor/meteor'; import { Match } from 'meteor/check'; import { FlowRouter } from 'meteor/kadira:flow-router'; +import { RocketChat } from 'meteor/rocketchat:lib'; +import { ChatSubscription } from 'meteor/rocketchat:ui'; function Open(command, params /* , item*/) { const dict = { diff --git a/packages/rocketchat-slashcommands-open/client/index.js b/packages/rocketchat-slashcommands-open/client/index.js new file mode 100644 index 000000000000..d99e4ed77352 --- /dev/null +++ b/packages/rocketchat-slashcommands-open/client/index.js @@ -0,0 +1 @@ +import './client'; diff --git a/packages/rocketchat-slashcommands-open/package.js b/packages/rocketchat-slashcommands-open/package.js index 0588c915dfec..2aa1b6ed8455 100644 --- a/packages/rocketchat-slashcommands-open/package.js +++ b/packages/rocketchat-slashcommands-open/package.js @@ -6,15 +6,12 @@ Package.describe({ }); Package.onUse(function(api) { - api.use([ 'ecmascript', 'check', 'rocketchat:lib', 'kadira:flow-router', + 'templating', ]); - - api.use('templating', 'client'); - - api.addFiles('client/client.js', 'client'); + api.addFiles('client/index.js', 'client'); });