Skip to content

Commit

Permalink
fix: improve deno releases (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 5, 2023
1 parent aac7f6d commit d438ee1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,26 @@
set -exuo pipefail

rm -rf deno; mkdir deno
cp -rp src/* README.md deno
cp -rp src/* deno

cat << EOF > deno/README.md
# OpenAI Node API Library - Deno build
This is a build produced from openai/openai-node - please go there to read the source, file issues, etc.
Installation:
\`\`\`
import OpenAI from "https://deno.land/x/openai";
\`\`\`
Note that in many Deno environments, you can also do this:
\`\`\`
import OpenAI from "npm:openai";
\`\`\`
EOF

rm deno/_shims/auto/*-node.ts
for dir in deno/_shims deno/_shims/auto; do
rm "${dir}"/*.{d.ts,js,mjs}
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-publish-deno.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ die () {
: "${DENO_MAIN_BRANCH:=main}"
: "${DENO_PUSH_REMOTE_URL:=$(git remote get-url origin)}"
: "${DENO_GIT_USER_NAME:="Stainless Bot"}"
: "${DENO_GIT_USER_NAME:="[email protected]"}"
: "${DENO_GIT_USER_EMAIL:="[email protected]"}"
if [[ $DENO_PUSH_BRANCH = "deno" ]]; then
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}"
else
Expand Down

0 comments on commit d438ee1

Please sign in to comment.