From ce7a65fc1a8ba5c580a94dc58c4b4c78fcd632fc Mon Sep 17 00:00:00 2001 From: Geoff Seemueller Date: Tue, 3 Dec 2024 10:19:06 -0500 Subject: [PATCH] Add type definitions to package.json Added "types" field pointing to "dist/index.d.ts" in package.json to include type definitions in the package. This change helps consumers of the package who are using TypeScript, providing them with autocompletion and type checking. Incremented package version from 1.2.5 to 1.2.6 to reflect this addition. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 834ab34..5f55b10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-tokenizer-md", - "version": "1.2.5", + "version": "1.2.6", "type": "module", "license": "AGPL-3.0-or-later", "repository": "https://github.com/geoffsee/code-tokenizer-md.git", @@ -20,6 +20,7 @@ "files": [ "dist" ], + "types": "dist/index.d.ts", "scripts": { "build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --splitting --outdir dist --target node && bun ./build.ts", "test": "bun test",