wolstat
wolstat

Reputation: 195

Meteor require a local package within another local package

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

Answers (1)

wolstat
wolstat

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

Related Questions