Skip to content

Commit 21fa500

Browse files
fix: don't require deno to run build-deno (#586)
1 parent 461e300 commit 21fa500

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ node scripts/utils/postprocess-files.cjs
5050
(cd dist && node -e 'require("@anthropic-ai/sdk")')
5151
(cd dist && node -e 'import("@anthropic-ai/sdk")' --input-type=module)
5252

53-
if command -v deno &> /dev/null && [ -e ./scripts/build-deno ]
53+
if [ -e ./scripts/build-deno ]
5454
then
5555
./scripts/build-deno
5656
fi

src/streaming.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { ReadableStream, type Response } from './_shims/index';
22
import { AnthropicError } from './error';
33
import { LineDecoder } from './internal/decoders/line';
44

5-
import { createResponseHeaders } from '@anthropic-ai/sdk/core';
6-
import { APIError } from '@anthropic-ai/sdk/error';
5+
import { createResponseHeaders } from './core';
6+
import { APIError } from './error';
77

88
type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
99

0 commit comments

Comments
 (0)