Files
meteor/packages/session/package.js
Harry Adel 75ef2c8c85 Remove unused ejson dependency from accounts-password, accounts-passwordless, and session
These packages don't use EJSON directly — they get it transitively
through their other dependencies.
2026-03-27 11:13:03 -03:00

27 lines
695 B
JavaScript

Package.describe({
summary: "Session variable",
version: '1.2.2',
});
Package.onUse(function (api) {
api.use(['ecmascript', 'reactive-dict'], 'client');
// Session can work with or without reload, but if reload is present
// it should load first so we can detect it at startup and populate
// the session.
api.use('reload', 'client', {weak: true});
api.export('Session', 'client');
api.mainModule('session.js', 'client');
api.addAssets('session.d.ts', 'server');
});
Package.onTest(function (api) {
api.use('ecmascript');
api.use('tinytest');
api.use('session', 'client');
api.use('tracker');
api.use('mongo');
api.addFiles('session_tests.js', 'client');
});