Skip to content

Commit

Permalink
Revert "Merge pull request #249 from reillyjodonnell/reilly-target-esm"
Browse files Browse the repository at this point in the history
This reverts commit 1b68904, reversing
changes made to 0664ce8.
  • Loading branch information
robtaussig committed Nov 18, 2024
1 parent 60864c4 commit f07005d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useWebSocket } from './lib/use-websocket';
export default useWebSocket;
export { useWebSocket as default } from './lib/use-websocket';

export { SendMessage, Options } from './lib/types';

Expand Down
38 changes: 22 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"module": "ESNext",
"esModuleInterop": true,
"target": "ESNext",
"jsx": "react",
"skipLibCheck": true,
"lib": ["es2017", "dom"],
"types": ["node", "websocket", "jest"],
"strict": true,
"declaration": true,
"baseUrl": ".",
"paths": {
"@lib/*": ["src/lib/*"]
"outDir": "./dist/",
"sourceMap": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es5",
"jsx": "react",
"skipLibCheck": true,
"lib": ["es2017", "dom"],
"types" : ["node", "websocket", "jest"],
"strict": true,
"declaration": true,
"baseUrl": ".",
"paths": {
"@lib/*": [
"src/lib/*"
]
}
},
"files": ["./src/index.ts"],
"include": ["src/*"]
"files": [
"./src/index.ts"
],
"include": [
"src/*"
]
}

0 comments on commit f07005d

Please sign in to comment.