From 6d96d026ce4bd04ecff9a668d9728561cc535339 Mon Sep 17 00:00:00 2001 From: Mathias Schreck Date: Fri, 23 Aug 2024 15:18:15 +0200 Subject: [PATCH] Add exports field to package.json --- .c8rc.json | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.c8rc.json b/.c8rc.json index 44a553c..4192470 100644 --- a/.c8rc.json +++ b/.c8rc.json @@ -5,11 +5,11 @@ "functions": 100, "branches": 100, "check-coverage": true, - "extension": [".js", ".mjs"], + "extension": [".js"], "instrument": false, "src": ".", "reporter": ["lcov", "text-summary"], "reportDir": "./target/coverage", "tempDirectory": "./target/c8-temporary-output", - "exclude": ["target", "test", "benchmarks/", "eslint.config.mjs"] + "exclude": ["target", "test", "benchmarks/", "eslint.config.js"] } diff --git a/package.json b/package.json index c6ea17c..75071e3 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "node": ">=20.0.0" }, "main": "index.js", + "exports": "./index.js", "files": [ "index.js", "lib/",