From 72ab317bb0c6333c643f457f5658c318b78e4740 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 1 Sep 2023 21:08:13 -0500 Subject: [PATCH] feat: defined exports for the package BREAKING CHANGE: exports prevents access to internal files, but they arent intended for public use anyway --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f85a4b35..49fa8cac 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "engines": { "node": ">=18" }, + "exports": "./index.js", "files": [ "bin", "docs", @@ -98,7 +99,7 @@ "version" ], "license": "MIT", - "main": "index.js", + "main": "./index.js", "types": "index.d.ts", "c8": { "include": [