From 7977460b56a9f3dd7a174bbc6217dcc787342315 Mon Sep 17 00:00:00 2001 From: Frans L Date: Wed, 27 Apr 2022 16:04:21 +0300 Subject: [PATCH] Fix package.json export required by some bundlers Fixes the issue: https://github.com/sindresorhus/p-queue/issues/145 A similar issue and fix can be found from instance here: https://github.com/uuidjs/uuid/pull/449 --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 52db7cc..d6b9a5e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,10 @@ "repository": "sindresorhus/p-queue", "funding": "https://github.com/sponsors/sindresorhus", "type": "module", - "exports": "./dist/index.js", + "exports": { + ".": "./dist/index.js", + "./package.json": "./package.json" + }, "engines": { "node": ">=12" },