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": {