From fe30449861bf852b3cd845ed574c7163068c9507 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 1 Mar 2022 16:56:02 +1100 Subject: [PATCH] Add exports field for node While this library targets the browser, it is sometimes helpful to use it in need for experiments. For example: https://github.com/status-im/js-waku/pull/588 --- CHANGELOG.md | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5584314ce..fb31a2088a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Add `exports` to `package.json` for NodeJS usage (not officially supported but helpful for experiments). + ### Fixed - Handle errors thrown by `bytesToUtf8`. diff --git a/package.json b/package.json index 3e1e8d4d03..df027c7ab9 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "build/main/index.js", "typings": "build/main/index.d.ts", "module": "build/esm/index.js", + "exports": "./", "repository": "https://github.com/status-im/js-waku", "license": "MIT OR Apache-2.0", "keywords": [