Skip to content

Commit

Permalink
Convert rocketchat-migrations to main-module structure (#12772)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 3, 2018
1 parent 171616a commit eaa001f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
16 changes: 9 additions & 7 deletions packages/rocketchat-migrations/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ Package.describe({
});

Package.onUse(function(api) {
api.use('rocketchat:lib');
api.use('rocketchat:version');
api.use('ecmascript');
api.use('check');
api.use('mongo');

api.addFiles('migrations.js', 'server');
api.use([
'ecmascript',
'rocketchat:lib',
'rocketchat:version',
'logging',
'check',
'mongo',
]);
api.mainModule('server/index.js', 'server');
});
1 change: 1 addition & 0 deletions packages/rocketchat-migrations/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './migrations';
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint no-use-before-define:0 */
/* globals Log*/
import { Meteor } from 'meteor/meteor';
import { Match, check } from 'meteor/check';
import { Mongo } from 'meteor/mongo';
import { RocketChat } from 'meteor/rocketchat:lib';
import { Log } from 'meteor/logging';
import _ from 'underscore';
import s from 'underscore.string';
import moment from 'moment';
Expand Down

0 comments on commit eaa001f

Please sign in to comment.