Skip to content

Commit

Permalink
chore(internal): remove file import and conditionally run prepare (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 24, 2023
1 parent 4d32e7d commit 8ac5c7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -15,7 +15,7 @@
"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 --cache --cache-strategy metadata . !dist",
"prepare": "npm run build",
"prepare": "if [ $(basename $(dirname $PWD)) = 'node_modules' ]; then npm run build; fi",
"tsn": "ts-node -r tsconfig-paths/register",
"lint": "eslint --ext ts,js .",
"fix": "eslint --fix --ext ts,js ."
Expand All @@ -35,7 +35,6 @@
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@anthropic-ai/sdk": "file:.",
"eslint": "^8.49.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
Expand All @@ -56,6 +55,10 @@
"./shims/web.js",
"./shims/web.mjs"
],
"imports": {
"@anthropic-ai/sdk": ".",
"@anthropic-ai/sdk/*": "./src/*"
},
"exports": {
"./_shims/auto/*": {
"deno": {
Expand Down
13 changes: 0 additions & 13 deletions yarn.lock
Expand Up @@ -22,19 +22,6 @@
dependencies:
tslib "^2.2.0"

"@anthropic-ai/sdk@file:.":
version "0.9.1"
dependencies:
"@types/node" "^18.11.18"
"@types/node-fetch" "^2.6.4"
abort-controller "^3.0.0"
agentkeepalive "^4.2.1"
digest-fetch "^1.3.0"
form-data-encoder "1.7.2"
formdata-node "^4.3.2"
node-fetch "^2.6.7"
web-streams-polyfill "^3.2.1"

"@babel/code-frame@7.18.6":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a"
Expand Down

0 comments on commit 8ac5c7a

Please sign in to comment.