Should this be used only on client? (Is there any cost to duplicate npm packages on server?) If not, then readme should note to check client-side npm packages on client, server-side on server. Maybe a pattern like:
import { Meteor } from 'meteor/meteor';
import { checkNpmVersions } from 'meteor/tmeasday:check-npm-versions';
// common
checkNpmVersions({
'lodash': 'foo'
}, 'apollo');
if (Meteor.isClient) {
checkNpmVersions({
'apollo-client': '^0.3.12'
}, 'apollo');
} else {
checkNpmVersions({
'apollo-server': '^0.1.1',
'express': '^4.13.4',
'http-proxy-middleware': '^0.15.0'
}, 'apollo');
}
Should this be used only on client? (Is there any cost to duplicate npm packages on server?) If not, then readme should note to check client-side npm packages on client, server-side on server. Maybe a pattern like: