mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This should have been done when PR #10299 was first merged. Thankfully, @macrozone discovered the problem while diagnosing issue #10530. Should fix #10530.
68 lines
2.2 KiB
JavaScript
68 lines
2.2 KiB
JavaScript
Package.describe({
|
|
summary: "A user account system",
|
|
version: "1.4.4",
|
|
});
|
|
|
|
Package.onUse(api => {
|
|
api.use('ecmascript', ['client', 'server']);
|
|
api.use('ddp-rate-limiter');
|
|
api.use('localstorage', 'client');
|
|
api.use('tracker', 'client');
|
|
api.use('check', 'server');
|
|
api.use('random', ['client', 'server']);
|
|
api.use('ejson', 'server');
|
|
api.use('callback-hook', ['client', 'server']);
|
|
api.use('reactive-var', 'client');
|
|
|
|
// use unordered to work around a circular dependency
|
|
// (service-configuration needs Accounts.connection)
|
|
api.use('service-configuration', ['client', 'server'], { unordered: true });
|
|
|
|
// needed for getting the currently logged-in user and handling reconnects
|
|
api.use('ddp', ['client', 'server']);
|
|
|
|
// need this because of the Meteor.users collection but in the future
|
|
// we'd probably want to abstract this away
|
|
api.use('mongo', ['client', 'server']);
|
|
|
|
// If the 'blaze' package is loaded, we'll define some helpers like
|
|
// {{currentUser}}. If not, no biggie.
|
|
api.use('blaze', 'client', {weak: true});
|
|
|
|
// Allow us to detect 'autopublish', and publish some Meteor.users fields if
|
|
// it's loaded.
|
|
api.use('autopublish', 'server', {weak: true});
|
|
|
|
api.use('oauth-encryption', 'server', {weak: true});
|
|
|
|
// Though this "Accounts" symbol is the only official Package export for
|
|
// the accounts-base package, modules that import accounts-base will
|
|
// have access to anything added to the exports object of the main
|
|
// module, including AccountsClient and AccountsServer (those symbols
|
|
// just won't be automatically imported as "global" variables).
|
|
api.export('Accounts');
|
|
|
|
// These main modules import all the other modules that comprise the
|
|
// accounts-base package, and define exports that will be accessible to
|
|
// modules that import the accounts-base package.
|
|
api.mainModule('server_main.js', 'server');
|
|
api.mainModule('client_main.js', 'client');
|
|
});
|
|
|
|
Package.onTest(api => {
|
|
api.use([
|
|
'accounts-base',
|
|
'ecmascript',
|
|
'tinytest',
|
|
'random',
|
|
'test-helpers',
|
|
'oauth-encryption',
|
|
'ddp',
|
|
'accounts-password'
|
|
]);
|
|
|
|
api.addFiles('accounts_tests_setup.js', 'server');
|
|
api.mainModule('server_tests.js', 'server');
|
|
api.mainModule('client_tests.js', 'client');
|
|
});
|