🐛 Add types to avoid npm run test failing with Cannot find module

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
This commit is contained in:
lawrencegripper
2025-09-04 15:02:25 +00:00
committed by GitHub
parent 1f3436c3ca
commit ce274ee2ce
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -9,10 +9,12 @@
}, },
"exports": { "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": { "typesVersions": {
+4 -2
View File
@@ -9,10 +9,12 @@
}, },
"exports": { "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": { "typesVersions": {