Files
meteor/packages/package-version-parser/package.js
David Greenspan c71e495e10 Only test constraint-solver and PVP on server
You can still include them on the client, but they don’t work in
Safari 4 and IE 8 because semver.js uses ES 5 methods including
String#trim, Array#map/filter/forEach, and possibly others.

This should fix any unit test failures in these packages.
2015-01-15 22:15:23 -05:00

18 lines
432 B
JavaScript

Package.describe({
summary: "Parses Meteor Smart Package version strings",
version: "3.0.0"
});
Package.onUse(function (api) {
api.export('PackageVersion');
api.use('underscore');
api.addFiles(['semver410.js',
'package-version-parser.js']);
});
Package.onTest(function (api) {
api.use('package-version-parser');
api.use(['tinytest']);
api.addFiles('package-version-parser-tests.js', 'server');
});