diff --git a/package.json b/package.json index c7a1615f..982fdf37 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "types": "./build/index.d.ts", "exports": { ".": { - "browser": "./build/browser/index.js", "import": "./build/index.js", "types": "./build/index.d.ts", "default": "./build/index.js" diff --git a/src/openai-auth.ts b/src/openai-auth.ts index 10bedd8d..ac7c42a3 100644 --- a/src/openai-auth.ts +++ b/src/openai-auth.ts @@ -1,5 +1,5 @@ -import fs from 'node:fs' -import os from 'node:os' +import * as fs from 'node:fs' +import * as os from 'node:os' import delay from 'delay' import { diff --git a/tsup.config.ts b/tsup.config.ts index 321fadf7..79ba9337 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -11,20 +11,6 @@ export default defineConfig([ sourcemap: true, minify: false, shims: true, - dts: true, - external: ['undici'] - }, - { - entry: ['src/index.ts'], - outDir: 'build/browser', - target: 'chrome89', - platform: 'browser', - format: ['esm'], - splitting: false, - sourcemap: true, - minify: false, - shims: true, - dts: true, - external: ['undici'] + dts: true } ])