Reputation: 195
I have two local packages in my Meteor app, my-ldap and my-activedirectory to login to my custom Active Directory environment.
They are based on the NPM packages and the activedirectory package was referenced from the ldap package as such:
ActiveDirectory = Npm.require('activedirectory');
Now that I want to use local packages, I can't use Npm.require, so how do I reference my local activedirectory from my local ldap?
ActiveDirectory = require('my-activedirectory');
The above just crashes the app.
Upvotes: 0
Views: 111
Reputation: 195
I was never able to figure this out. My solution was to fork the node package repo on github and then publish an amended version to npm so I could keep the syntax:
ActiveDirectory = Npm.require('activedirectory-alt');
Upvotes: 0