mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
All external service `accounts-*` packages (`accounts-facebook`, `accounts-github`, etc.) are currently using ES2015 syntax, but do not explicitly declare a dependency on the `ecmascript` package. This means the ES2015 syntax being used is not transpiled by Meteor, and can lead to issues like #9506. Since `accounts-base` and `accounts-password` both already have `ecmascript` as a dependency, this PR adds an `ecmascript` dependency to all external service `accounts-*` packages. Fixes #9506.
24 lines
577 B
JavaScript
24 lines
577 B
JavaScript
Package.describe({
|
|
summary: 'Login service for Github accounts',
|
|
version: '1.4.1'
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.use('ecmascript');
|
|
api.use('accounts-base', ['client', 'server']);
|
|
// Export Accounts (etc) to packages using this one.
|
|
api.imply('accounts-base', ['client', 'server']);
|
|
|
|
api.use('accounts-oauth', ['client', 'server']);
|
|
api.use('github-oauth');
|
|
api.imply('github-oauth');
|
|
|
|
api.use(
|
|
['accounts-ui', 'github-config-ui'],
|
|
['client', 'server'],
|
|
{ weak: true }
|
|
);
|
|
api.addFiles('notice.js');
|
|
api.addFiles('github.js');
|
|
});
|