Skip to content

Commit

Permalink
🐛 building doesn't work
Browse files Browse the repository at this point in the history
Fails with "error TS5055: Cannot write file '/Users/astoilkov/Repos/use-local-storage-state/dist/index.d.ts' because it would overwrite input file.".
- https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
- microsoft/TypeScript#16394
- microsoft/TypeScript#27436
- microsoft/TypeScript#14538
  • Loading branch information
astoilkov committed Mar 15, 2020
1 parent 42b4760 commit b731765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import useLocalStorageState from '.'
import { renderHook, act } from '@testing-library/react-hooks'
import { createLocalStorageStateHook } from '.'
import useLocalStorageState, { createLocalStorageStateHook } from '.'

beforeEach(() => {
localStorage.clear()
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"forceConsistentCasingInFileNames": true
},

"exclude": ["test.ts"]
"include": ["index.ts"]
}

0 comments on commit b731765

Please sign in to comment.