I'm trying to get an abandoned nodejs library to work under Meteor.
Why does Npm.require('./crypto-js/crypto')
work fine, but Npm.require('../convert')
is throwing the error Error: Cannot find module '../convert'
?
/packages/myPackage/package.js
Package.on_use(function (api) {
var path = Npm.require('path');
api.add_files(path.join('convert.js'), 'server');
api.add_files(path.join('crypto-js', 'crypto.js'), 'server');
api.add_files(path.join('util.js'), 'server');
});
/packages/myPackage/convert.js
myFunc = function() {
return true
}
/packages/myPackage/util.js
Crypto = Npm.require('./crypto-js/crypto');
/packages/myPackage/crypto-js/crypto.js
var conv = Npm.require('../convert')