Files
meteor/packages/check/package.js
James Burgess 20e89b9009 Modernize check package (#9638)
I've reverted match properties that return class instances back to normal functions, so that they can be called as constructors.

Also, I added tests to make sure we catch this issue if someone else gets the same idea that I had!
2018-03-07 11:36:48 -05:00

21 lines
412 B
JavaScript

Package.describe({
summary: 'Check whether a value matches a pattern',
version: '1.3.1',
});
Package.onUse(api => {
api.use('ecmascript');
api.use('ejson');
api.mainModule('match.js');
api.export('check');
api.export('Match');
});
Package.onTest(api => {
api.use(['check', 'tinytest', 'ejson', 'ecmascript'], ['client', 'server']);
api.addFiles('match_test.js', ['client', 'server']);
});