From ce274ee2ce605938d6bf9e5d2a44de448d6cdb8f Mon Sep 17 00:00:00 2001 From: lawrencegripper Date: Thu, 4 Sep 2025 15:02:25 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20types=20to=20avoid=20`npm?= =?UTF-8?q?=20run=20test`=20failing=20with=20`Cannot=20find=20module`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example error: > src/templates/template-context.ts:1:28 - error TS2307: Cannot find module '@actions/expressions/funcs/info' or its corresponding type declarations. related: - https://github.com/actions/languageservices/issues/146 --- expressions/package.json | 6 ++++-- workflow-parser/package.json | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/expressions/package.json b/expressions/package.json index 2552d3b..65df7dc 100755 --- a/expressions/package.json +++ b/expressions/package.json @@ -9,10 +9,12 @@ }, "exports": { ".": { - "import": "./dist/index.js" + "import": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": { - "import": "./dist/*.js" + "import": "./dist/*.js", + "types": "./dist/*.d.ts" } }, "typesVersions": { diff --git a/workflow-parser/package.json b/workflow-parser/package.json index a08ceb6..532d719 100644 --- a/workflow-parser/package.json +++ b/workflow-parser/package.json @@ -9,10 +9,12 @@ }, "exports": { ".": { - "import": "./dist/index.js" + "import": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": { - "import": "./dist/*.js" + "import": "./dist/*.js", + "types": "./dist/*.d.ts" } }, "typesVersions": {