Skip to content

Commit

Permalink
feat: remove commonjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Dec 5, 2022
1 parent de9dbc0 commit 2a2e76c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified media/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion media/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ Sleep 500ms
Enter
Show

Sleep 8s
Sleep 7s
Sleep 8s
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"author": "Travis Fischer <[email protected]>",
"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.mjs",
"require": "./build/index.js",
"import": "./build/index.js",
"default": "./build/index.js",
"types": "./build/index.d.ts"
}
},
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
outDir: 'build',
target: 'node14',
platform: 'node',
format: ['esm', 'cjs'],
format: ['esm'],
splitting: false,
sourcemap: true,
minify: true,
Expand Down

0 comments on commit 2a2e76c

Please sign in to comment.