Hubert OG
Hubert OG

Reputation: 19544

Depend on build-in package

I'm making a smart package that depends on showdown, which is a built-in Meteor package. How do I mark this dependency? After putting

packages: {
  'showdown': {}
}

in smart.json I got a "Package doesn't exist on Atmosphere" error.

Upvotes: 0

Views: 38

Answers (1)

Dave
Dave

Reputation: 2576

Only put packages in the smart.json if they are packages from Atmosphere, or you want them to be pulled in from git in which case you can pass a git URL like so:

'my_git_package': {
    'git': '<git_url_here>'
}

What you need to do is add the dependency in your package.js file:

Package.on_use(function (api) {
    api.use(['showdown'], ['client', 'server']);
});

Upvotes: 1

Related Questions