Calling plugin and server code from a package


#1

I’ve written some custom code for Reaction which is written as a meteor package as opposed to a Reaction plugin. This code is based on the accounts-password package. At some point, I may try to convert it to a plugin, but for now it needs to be a package located in the …/packages directory. Even though it’s a package, I’d still like to make use of some Reaction utilities. For example, I’d like to use the same Logger that the rest of Reaction uses.

Elsewhere in the Reaction code, the Logger is referenced like so:

import { Logger } from "/server/api";

However, “/server/api” is not available from a package.

Is there any way I can make this reference from my package?