diff --git a/.gitignore b/.gitignore index a2d5c1f3..def8d373 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules yarn-error.log +codegen.log dist /*.tgz diff --git a/package.json b/package.json index 73866788..3a14ee6e 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "build": "bash ./build", "prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1", "prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1", - "format": "prettier --write .", + "format": "prettier --write --cache --cache-strategy metadata . !dist", "tsn": "ts-node -r tsconfig-paths/register", "fix": "eslint --fix --ext ts,js ." }, diff --git a/src/index.ts b/src/index.ts index 552a67fd..64c7a73e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -161,6 +161,7 @@ export class Anthropic extends Core.APIClient { return { arrayFormat: 'comma' }; } + static Anthropic = this; static HUMAN_PROMPT = '\n\nHuman:'; static AI_PROMPT = '\n\nAssistant:';