diff --git a/package.json b/package.json index 82c2e8e9..12a2bce4 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,13 @@ "repository": "github:threeal/nodejs-starter", "license": "Unlicense", "author": "Alfi Maulana ", + "exports": { + ".": { + "types": "dist/lib.d.ts", + "import": "dist/lib.js" + } + }, "type": "module", - "main": "dist/lib.js", - "types": "dist/lib.d.ts", "bin": "dist/bin.js", "files": [ "dist"