Skip to content

Commit a815feb

Browse files
author
Fiero
committed
feat: expose declaration file
1 parent 5ca20e3 commit a815feb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export function env(string?: string): boolean | string

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"name": "node.env-inspector",
33
"version": "0.1.0",
44
"description": "Inspect NODE_ENV environment variable",
5-
"main": "lib/index.js",
5+
"main": "./lib/index.js",
66
"engines": {
77
"node": ">=12"
88
},
9+
"types": "./lib/index.d.ts",
10+
"exports": "./lib/index.js",
911
"scripts": {
1012
"typecheck": "tsc --noEmit -p jsconfig.json",
1113
"format": "npm run prettier -- --write",

0 commit comments

Comments
 (0)