feat: provide usable UMD builds for all packages (#2141)
This commit is contained in:
committed by
Shawn Erquhart
parent
1d935c704d
commit
82cc7941cc
@ -5,7 +5,7 @@ import ini from 'ini';
|
||||
import { APIError, getBlobSHA, unsentRequest } from 'netlify-cms-lib-util';
|
||||
import { GitHubBackend } from 'netlify-cms-backend-github';
|
||||
import { GitLabBackend } from 'netlify-cms-backend-gitlab';
|
||||
import { BitBucketBackend, API as BitBucketAPI } from 'netlify-cms-backend-bitbucket';
|
||||
import { BitbucketBackend, API as BitBucketAPI } from 'netlify-cms-backend-bitbucket';
|
||||
import GitHubAPI from './GitHubAPI';
|
||||
import GitLabAPI from './GitLabAPI';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
@ -168,7 +168,7 @@ export default class GitGateway {
|
||||
requestFunction: this.requestFunction,
|
||||
hasWriteAccess: async () => true,
|
||||
});
|
||||
this.backend = new BitBucketBackend(this.config, { ...this.options, API: this.api });
|
||||
this.backend = new BitbucketBackend(this.config, { ...this.options, API: this.api });
|
||||
}
|
||||
|
||||
if (!(await this.api.hasWriteAccess())) {
|
||||
|
@ -1,2 +1,8 @@
|
||||
export GitGatewayBackend from './implementation';
|
||||
export AuthenticationPage from './AuthenticationPage';
|
||||
import Control from './implementation';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendGitGateway = {
|
||||
Control,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, AuthenticationPage };
|
||||
|
Reference in New Issue
Block a user