Commit de57c97d authored by Travis Fischer's avatar Travis Fischer

feat: remove cjs build

parent 8f0324bf
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
"author": "Travis Fischer <travis@transitivebullsh.it>", "author": "Travis Fischer <travis@transitivebullsh.it>",
"repository": "transitive-bullshit/chatgpt-api", "repository": "transitive-bullshit/chatgpt-api",
"license": "MIT", "license": "MIT",
"type": "module",
"source": "./src/index.ts",
"types": "./build/index.d.ts", "types": "./build/index.d.ts",
"module": "./build/index.mjs",
"exports": { "exports": {
".": { ".": {
"require": "./build/index.js", "import": "./build/index.js",
"import": "./build/index.mjs", "default": "./build/index.js",
"types": "./build/index.d.ts" "types": "./build/index.d.ts"
} }
}, },
......
...@@ -5,7 +5,7 @@ export default defineConfig({ ...@@ -5,7 +5,7 @@ export default defineConfig({
outDir: 'build', outDir: 'build',
target: 'node14', target: 'node14',
platform: 'node', platform: 'node',
format: ['esm', 'cjs'], format: ['esm'],
splitting: false, splitting: false,
sourcemap: true, sourcemap: true,
minify: true, minify: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment