kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: remove commonjs support
rodzic
de9dbc0190
commit
2a2e76ce1f
BIN
media/demo.gif
BIN
media/demo.gif
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 143 KiB Po Szerokość: | Wysokość: | Rozmiar: 144 KiB |
|
@ -72,5 +72,5 @@ Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Show
|
Show
|
||||||
|
|
||||||
Sleep 8s
|
Sleep 7s
|
||||||
Sleep 8s
|
Sleep 8s
|
||||||
|
|
|
@ -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.mjs",
|
"import": "./build/index.js",
|
||||||
"require": "./build/index.js",
|
"default": "./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', 'cjs'],
|
format: ['esm'],
|
||||||
splitting: false,
|
splitting: false,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
|
Ładowanie…
Reference in New Issue