Fix ESM and Commonjs compatibility.

This commit is contained in:
tripodsgames 2021-09-15 11:06:48 -03:00
parent 98c6fc8140
commit 083546305f
No known key found for this signature in database
GPG Key ID: 85E21E158266D080
1 changed files with 6 additions and 1 deletions

View File

@ -2,8 +2,13 @@
"name": "node-ipc", "name": "node-ipc",
"version": "10.1.0", "version": "10.1.0",
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", "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", "main": "node-ipc.cjs",
"module": "node-ipc.js", "module": "node-ipc.js",
"exports": {
"import": "./node-ipc.js",
"require": "./node-ipc.cjs"
},
"directories": { "directories": {
"example": "example" "example": "example"
}, },
@ -61,4 +66,4 @@
"url": "https://github.com/RIAEvangelist/node-ipc/issues" "url": "https://github.com/RIAEvangelist/node-ipc/issues"
}, },
"homepage": "http://riaevangelist.github.io/node-ipc/" "homepage": "http://riaevangelist.github.io/node-ipc/"
} }