How to depend on react-meteor-data in an Atmosphere package?

My app is structured in packages, and I would like my React packages depend on react-meteor-data. Unlike packages like ecmascript, this doesn’t work with:

api.use('react-meteor-data');

This doesn’t work either:

api.use('react-meteor-data@0.2.12');

The only thing that works is meteor add react-meteor-data, but this forces me to define the dependency on app-level.

Why is this so, and what’s the correct way to import these packages into other packages?

1 Like