We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9341c21 commit 48d74d1Copy full SHA for 48d74d1
README.md
@@ -18,7 +18,8 @@ pnpm i @coderabbitai/bitbucket
18
### Cloud
19
20
```ts
21
-import { createBitbucketCloudClient, toBase64 } from "@coderabbitai/bitbucket"
+import { createBitbucketCloudClient } from "@coderabbitai/bitbucket/cloud"
22
+import { toBase64 } from "@coderabbitai/bitbucket"
23
import {
24
BITBUCKET_CLOUD_APP_PASSWORD,
25
BITBUCKET_CLOUD_URL,
@@ -38,7 +39,7 @@ const client = createBitbucketCloudClient({
38
39
### Server
40
41
-import { createBitbucketServerClient } from "@coderabbitai/bitbucket"
42
+import { createBitbucketServerClient } from "@coderabbitai/bitbucket/server"
43
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "./env.js"
44
45
const server = createBitbucketServerClient({
package.json
@@ -73,6 +73,14 @@
73
".": {
74
"types": "./dist/index.d.ts",
75
"default": "./dist/index.js"
76
+ },
77
+ "./cloud": {
78
+ "types": "./dist/cloud/index.d.ts",
79
+ "default": "./dist/cloud/index.js"
80
81
+ "./server": {
82
+ "types": "./dist/server/index.d.ts",
83
+ "default": "./dist/server/index.js"
84
}
85
},
86
"types": "dist/index.d.ts",
src/cloud/index.ts
@@ -1,2 +1,2 @@
1
export * from "./client.js"
2
-export type * ascloudfrom "./openapi/index.js"
+export type * from "./openapi/index.js"
src/index.ts
@@ -1,3 +1,3 @@
export * from "./base64.js"
-export * from "./cloud/index.js"
3
-export * from "./server/index.js"
+export * ascloudfrom "./cloud/index.js"
+export * asserverfrom "./server/index.js"
tests/cloud/client.ts
@@ -1,12 +1,13 @@
-import { createBitbucketCloudClient, toBase64 } from "../../src/index.js"
+import { createBitbucketCloudClient } from "../../src/cloud/index.js"
+import { toBase64 } from "../../src/index.js"
4
5
6
BITBUCKET_CLOUD_USERNAME,
7
} from "../env.js"
8
9
const basic = toBase64(
- BITBUCKET_CLOUD_USERNAME+":"+BITBUCKET_CLOUD_APP_PASSWORD,
10
+ `${BITBUCKET_CLOUD_USERNAME}:${BITBUCKET_CLOUD_APP_PASSWORD}`,
11
)
12
13
export const client = createBitbucketCloudClient({
tests/server/client.ts
@@ -1,4 +1,4 @@
-import { createBitbucketServerClient } from "../../src/index.js"
+import { createBitbucketServerClient } from "../../src/server/index.js"
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "../env.js"
export const client = createBitbucketServerClient({
typedoc.json
@@ -1,5 +1,9 @@
{
"$schema": "https://typedoc.org/schema.json",
- "entryPoints": ["./src/index.ts"],
+ "entryPoints": [
+ "./src/index.ts",
+ "./src/cloud/index.ts",
+ "./src/server/index.ts"
+ ],
"highlightLanguages": ["ini", "sh", "ts"]
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments