kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: re-add cjs support
rodzic
ebac9f533a
commit
963e7fffb7
|
@ -5,13 +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",
|
"source": "./src/index.ts",
|
||||||
"types": "./build/index.d.ts",
|
"types": "./build/index.d.ts",
|
||||||
|
"main": "./build/index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./build/index.js",
|
"import": "./build/index.mjs",
|
||||||
"default": "./build/index.js",
|
"require": "./build/index.js",
|
||||||
"types": "./build/index.d.ts"
|
"types": "./build/index.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@ export default defineConfig({
|
||||||
outDir: 'build',
|
outDir: 'build',
|
||||||
target: 'node14',
|
target: 'node14',
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
format: ['esm'],
|
format: ['esm', 'cjs'],
|
||||||
splitting: false,
|
splitting: false,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
|
Ładowanie…
Reference in New Issue