Skip to content

Commit ac9833d

Browse files
Eyal Cherevatzkieyal080340818419
authored
refactor: add "types" to package.json (#101)
TypeScript can't pick up the type definitions if they aren't in a "files" or "types" field Co-authored-by: eyal0803 <eyal.3555@gmail.com> Co-authored-by: Konstantin Kulinicenko <konstantin.kulinicenko@gmail.com>
1 parent 8985dc9 commit ac9833d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "3.9.0",
44
"description": "React component for entering and validating numbers, text or password.",
55
"main": "dist/ReactCodeInput.js",
6+
"types": "./src/ReactCodeInput.d.ts",
67
"scripts": {
78
"start": "npm run storybook",
89
"build": "rm -r docs && mkdir docs && build-storybook -o docs && webpack && cd styles && sass style.scss style.css",
@@ -121,4 +122,4 @@
121122
"react": "^15.5.4 || ^16.2.0",
122123
"react-dom": "^15.5.4 || ^16.2.0"
123124
}
124-
}
125+
}

0 commit comments

Comments
 (0)