From b704dff515ddaa35172443163d0a130f77a0f59e Mon Sep 17 00:00:00 2001 From: Haelwenn Monnier Date: Sat, 7 Oct 2023 15:32:43 +0200 Subject: [PATCH] package.json: Switch from "main" to "exports" (#50) This allows to actually do `import balanced from 'balanced-match'` While currently you need to do `import balanced from 'balanced-match/index.js'` See: --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a10711..c9815c1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "git://github.com/juliangruber/balanced-match.git" }, "homepage": "https://github.com/juliangruber/balanced-match", - "main": "index.js", + "exports": "./index.js", "type": "module", "scripts": { "test": "standard --fix && node--test test/test.js",