Skip to content

Commit 9a2ba05

Browse files
committed
📝 Add entrypoint in README.md
1 parent e613fff commit 9a2ba05

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ pnpm i @coderabbitai/bitbucket
1818
### Cloud
1919

2020
```ts
21-
import { createBitbucketCloudClient, toBase64 } from "@coderabbitai/bitbucket"
21+
import { createBitbucketCloudClient } from "@coderabbitai/bitbucket/cloud"
22+
import { toBase64 } from "@coderabbitai/bitbucket"
2223
import {
2324
BITBUCKET_CLOUD_APP_PASSWORD,
2425
BITBUCKET_CLOUD_URL,
@@ -38,7 +39,7 @@ const client = createBitbucketCloudClient({
3839
### Server
3940

4041
```ts
41-
import { createBitbucketServerClient } from "@coderabbitai/bitbucket"
42+
import { createBitbucketServerClient } from "@coderabbitai/bitbucket/server"
4243
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "./env.js"
4344

4445
const server = createBitbucketServerClient({

tests/cloud/client.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createBitbucketCloudClient, toBase64 } from "../../src/index.js"
1+
import { createBitbucketCloudClient } from "../../src/cloud/index.js"
2+
import { toBase64 } from "../../src/index.js"
23
import {
34
BITBUCKET_CLOUD_APP_PASSWORD,
45
BITBUCKET_CLOUD_URL,
56
BITBUCKET_CLOUD_USERNAME,
67
} from "../env.js"
78

89
const basic = toBase64(
9-
BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD,
10+
`${BITBUCKET_CLOUD_USERNAME}:${BITBUCKET_CLOUD_APP_PASSWORD}`,
1011
)
1112

1213
export const client = createBitbucketCloudClient({

tests/server/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createBitbucketServerClient } from "../../src/index.js"
1+
import { createBitbucketServerClient } from "../../src/server/index.js"
22
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "../env.js"
33

44
export const client = createBitbucketServerClient({

0 commit comments

Comments
 (0)