From be5f3fa560c9a44c3cdf1ff5a6c2ec77808bb8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Eberhardt?= Date: Tue, 10 Sep 2024 10:54:43 +0200 Subject: [PATCH] export module instead of commonjs --- package-lock.json | 4 ++-- package.json | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index e59469c..2f0f0ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eslint-plugin-throw-aware", - "version": "1.0.0-beta.5", + "version": "1.0.0-beta.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "eslint-plugin-throw-aware", - "version": "1.0.0-beta.5", + "version": "1.0.0-beta.6", "license": "Unlicense", "devDependencies": { "@eslint/js": "^9.10.0", diff --git a/package.json b/package.json index cd6e143..642978f 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,12 @@ { "name": "eslint-plugin-throw-aware", - "version": "1.0.0-beta.5", + "version": "1.0.0-beta.6", "description": "An ESLint plugin to enforce naming conventions and JSDoc annotations for functions that throw exceptions.", "type": "module", - "main": "lib/index.mjs", + "module": "lib/index.mjs", + "exports": { + "import": "./lib/index.mjs" + }, "scripts": { "test": "ava" },