Skip to content

Commit

Permalink
fix: improve bun support
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Apr 11, 2024
1 parent 9fca112 commit ac37787
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"exports": {
".": {
"source": "./src/index.ts",
"bun": "./dist/index.js",
"browser": {
"source": "./src/index.browser.ts",
"import": "./dist/index.browser.js",
"require": "./dist/index.browser.cjs"
},
"react-server": "./dist/index.browser.js",
"bun": "./dist/index.browser.js",
"deno": "./dist/index.browser.js",
"edge": "./dist/index.browser.js",
"edge-light": "./dist/index.browser.js",
Expand All @@ -50,13 +50,13 @@
},
"./stega": {
"source": "./src/stega/index.ts",
"bun": "./dist/stega.js",
"browser": {
"source": "./src/stega/index.browser.ts",
"import": "./dist/stega.browser.js",
"require": "./dist/stega.browser.cjs"
},
"react-server": "./dist/stega.browser.js",
"bun": "./dist/stega.browser.js",
"deno": "./dist/stega.browser.js",
"edge": "./dist/stega.browser.js",
"edge-light": "./dist/stega.browser.js",
Expand Down Expand Up @@ -123,7 +123,7 @@
"dependencies": {
"@sanity/eventsource": "^5.0.0",
"@vercel/stega": "0.1.0",
"get-it": "^8.4.20",
"get-it": "^8.4.21",
"rxjs": "^7.0.0"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions runtimes/bun/client.fetch.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {createClient} from '@sanity/client'
import {expect, test} from 'bun:test'

import {createClient} from '../..'

const projectId = '81pocpw8'
const dataset = 'production'
const apiVersion = 'v2021-03-25'
Expand Down

0 comments on commit ac37787

Please sign in to comment.