Skip to content

Commit

Permalink
Fix package.json again
Browse files Browse the repository at this point in the history
- fix types path
- add typesVersions section to fix typescript paths
- don't include source files in package

known issue: typescript still cannot find types if you just
import the whole library.
  • Loading branch information
brianchirls committed Aug 1, 2022
1 parent edc5ceb commit 3f15e14
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brianchirls/game-input",
"version": "0.0.2",
"version": "0.0.3",
"description": "",
"repository": {
"type": "git",
Expand All @@ -14,7 +14,7 @@
"module": "dist/esm/index.js",
"browser": "dist/esm/browser.js",
"unpkg": "dist/browser.js",
"types": "./types/browser.d.ts",
"types": "./dist/types/browser.d.ts",
"exports": {
".": {
"node": "./dist/cjs/index.js",
Expand All @@ -24,16 +24,21 @@
"types": "./dist/types/browser.d.ts"
},
"./*": {
"require": "./dist/cjs/*.js",
"types": "./dist/types/*.d.ts",
"import": "./dist/esm/*.js",
"default": "./dist/esm/*.js",
"types": "./dist/esm/*.d.ts"
"require": "./dist/cjs/*.js",
"default": "./dist/cjs/*.js"
}
},
"typesVersions": {
"*": {
"*": [
"./dist/types/*"
]
}
},
"files": [
"dist/*",
"src/**/*.js",
"src/**/*.ts"
"dist/*"
],
"keywords": [
"game",
Expand Down

0 comments on commit 3f15e14

Please sign in to comment.