From 1953c973652175cd751beeb12a57e640f1abb958 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Mon, 4 Nov 2024 20:19:19 +0100 Subject: [PATCH] build(typescript): add missing "types" property to package.json (#908) ## Description See related issue. ## Related Issue https://github.com/kelektiv/node-cron/issues/906 ## Motivation and Context ## How Has This Been Tested? Untested, just followed the TypeScript doc: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package ## Screenshots (if appropriate): ## Types of changes - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: - [X] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [X] All new and existing tests passed. - [ ] If my change introduces a breaking change, I have added a `!` after the type/scope in the title (see the Conventional Commits standard). --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a43faf3..10f8b5c2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "type": "git", "url": "https://github.com/kelektiv/node-cron.git" }, - "main": "dist/index", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "build": "tsc -b tsconfig.build.json", "lint:eslint": "eslint src/ tests/ --ext .ts",