diff --git a/build-deno b/build-deno index 428ffa304..77c5d20e7 100755 --- a/build-deno +++ b/build-deno @@ -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} diff --git a/scripts/git-publish-deno.sh b/scripts/git-publish-deno.sh index 77238067d..90855bfb8 100755 --- a/scripts/git-publish-deno.sh +++ b/scripts/git-publish-deno.sh @@ -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:="bot@stainlessapi.com"}" +: "${DENO_GIT_USER_EMAIL:="bot@stainlessapi.com"}" if [[ $DENO_PUSH_BRANCH = "deno" ]]; then : "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}" else