Skip to content

Commit

Permalink
chore: fix typescript typings (#274)
Browse files Browse the repository at this point in the history
- now typescript pick up typings
- allow tree-shaking
  • Loading branch information
Bessonov committed Jul 25, 2021
1 parent 72e3dbf commit 8edbde9
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -10,6 +10,8 @@
"author": "Contra <yo@contra.io> (https://contra.io)",
"license": "MIT",
"main": "./dist/react-responsive.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src"
Expand Down
2 changes: 1 addition & 1 deletion global.d.ts → src/@types/shallow-equal.d.ts
@@ -1,4 +1,4 @@
declare module "shallow-equal" {
declare module 'shallow-equal' {
type primitives =
| string
| number
Expand Down
3 changes: 0 additions & 3 deletions src/tsconfig.json

This file was deleted.

6 changes: 3 additions & 3 deletions tsconfig.json
Expand Up @@ -8,11 +8,11 @@
"moduleResolution": "Node",
"sourceMap": false,
"strict": true,
"rootDir": ".",
"rootDir": "./src",
"declaration": true,
"esModuleInterop": true,
"outDir": "dist",
"outDir": "./dist",
},
"include": ["src", "global.d.ts"],
"include": ["src"],
"exclude": ["test", "node_modules"],
}

0 comments on commit 8edbde9

Please sign in to comment.