Skip to content

Commit 08ef69c

Browse files
stainless-botrattrayalex
authored andcommitted
fix: fix errors with "named" client export in CJS (#67)
1 parent b2f28b3 commit 08ef69c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
yarn-error.log
3+
codegen.log
34
dist
45
/*.tgz

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"build": "bash ./build",
6868
"prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1",
6969
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
70-
"format": "prettier --write .",
70+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
7171
"tsn": "ts-node -r tsconfig-paths/register",
7272
"fix": "eslint --fix --ext ts,js ."
7373
},

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export class Anthropic extends Core.APIClient {
161161
return { arrayFormat: 'comma' };
162162
}
163163

164+
static Anthropic = this;
164165
static HUMAN_PROMPT = '\n\nHuman:';
165166
static AI_PROMPT = '\n\nAssistant:';
166167

0 commit comments

Comments
 (0)