Skip to content

Commit

Permalink
fix for: Could not find a declaration file for module 'sim-ecs'. './n…
Browse files Browse the repository at this point in the history
…ode_modules/sim-ecs/dist/sim-ecs.mjs' implicitly has an 'any' type.

  There are types at './node_modules/sim-ecs/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'sim-ecs' library may need to update its package.json or typings.
  • Loading branch information
DhruvDh authored and minecrawler committed Oct 1, 2023
1 parent dcda95d commit 2f185b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
],
"exports": {
".": {
"import": "./dist/sim-ecs.mjs",
"import": [
"./dist/sim-ecs.mjs",
"./dist/index.d.ts"
],
"require": "./dist/sim-ecs.cjs"
}
},
Expand Down Expand Up @@ -88,4 +91,4 @@
"test": "mocha --experimental-specifier-resolution=node --loader=ts-node/esm src/**/*.test.ts",
"postbuild": "npm run loop-test-js"
}
}
}

0 comments on commit 2f185b5

Please sign in to comment.