Commit 963e7fff authored by Travis Fischer's avatar Travis Fischer

feat: re-add cjs support

parent ebac9f53
......@@ -5,13 +5,13 @@
"author": "Travis Fischer <travis@transitivebullsh.it>",
"repository": "transitive-bullshit/chatgpt-api",
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"types": "./build/index.d.ts",
"main": "./build/index.js",
"exports": {
".": {
"import": "./build/index.js",
"default": "./build/index.js",
"import": "./build/index.mjs",
"require": "./build/index.js",
"types": "./build/index.d.ts"
}
},
......
......@@ -5,7 +5,7 @@ export default defineConfig({
outDir: 'build',
target: 'node14',
platform: 'node',
format: ['esm'],
format: ['esm', 'cjs'],
splitting: false,
sourcemap: 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