From 116335d1f0b1b9c6dcf31130445e3023ebe8352e Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:50:47 +0530 Subject: [PATCH] feat: add types --- index.d.ts | 3 +++ package.json | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..fd5c279 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,3 @@ +import { isCI } from "ci-info"; + +export = isCI; diff --git a/package.json b/package.json index d187419..d18f3e6 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "4.0.0", "description": "Detect if the current environment is a CI server", "bin": "bin.js", + "type": "commonjs", "main": "index.js", + "types": "index.d.ts", "author": "Thomas Watson Steen (https://twitter.com/wa7son)", "license": "MIT", "repository": {