From da8dc66118885abe0b157df5976c19c336f5f590 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 24 Sep 2023 09:46:38 -0400 Subject: [PATCH] Differentiate between import and require usages of vcf-js --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1545626..7d7d363 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,12 @@ "name": "@gmod/vcf", "version": "5.0.10", "description": "High performance streaming Variant Call Format (VCF) parser in pure JavaScript", - "main": "dist/index.js", - "module": "esm/index.js", + "exports": { + ".": { + "require": "dist/index.js", + "import": "esm/index.js" + } + }, "repository": "github:GMOD/vcf-js", "author": { "name": "Garrett Stevens",