From 083546305f61b44c562c5cc0027aec0944f533a1 Mon Sep 17 00:00:00 2001 From: tripodsgames Date: Wed, 15 Sep 2021 11:06:48 -0300 Subject: [PATCH] Fix ESM and Commonjs compatibility. --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c6201e..12550da 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,13 @@ "name": "node-ipc", "version": "10.1.0", "description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", + "type": "module", "main": "node-ipc.cjs", "module": "node-ipc.js", + "exports": { + "import": "./node-ipc.js", + "require": "./node-ipc.cjs" + }, "directories": { "example": "example" }, @@ -61,4 +66,4 @@ "url": "https://github.com/RIAEvangelist/node-ipc/issues" }, "homepage": "http://riaevangelist.github.io/node-ipc/" -} +} \ No newline at end of file