From 2d3900ac5f55a4deb4f1b50354197f03efd8c112 Mon Sep 17 00:00:00 2001 From: Dhruv Dhamani Date: Sat, 30 Sep 2023 09:31:30 -0400 Subject: [PATCH] fix for: Could not find a declaration file for module 'sim-ecs'. './node_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. --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2fe00cd..8678787 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,10 @@ ], "exports": { ".": { - "import": "./dist/sim-ecs.mjs", + "import": [ + "./dist/sim-ecs.mjs", + "./dist/index.d.ts" + ], "require": "./dist/sim-ecs.cjs" } }, @@ -88,4 +91,4 @@ "test": "mocha --experimental-specifier-resolution=node --loader=ts-node/esm src/**/*.test.ts", "postbuild": "npm run loop-test-js" } -} +} \ No newline at end of file