Merge pull request #219 from tripodsgames/cjs

V10 cjs compatibility.
This commit is contained in:
Brandon Nozaki Miller 2021-09-15 11:18:48 -07:00 committed by GitHub
commit 7a614ce9be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 228 additions and 849 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/node_modules/ /node_modules/
/nbproject /nbproject
npm-debug.log npm-debug.log
node-ipc.cjs

View file

@ -4,11 +4,11 @@ node-ipc
A great solution for complex multiprocess **Neural Networking** in Node.JS A great solution for complex multiprocess **Neural Networking** in Node.JS
**npm install node-ipc** `npm install node-ipc`
#### for commonjs or node <v14 #### for node <v14
set version to `<10.0.0` in your `package.json` for the node-ipc dep. `npm install node-ipc@^9.0.0`
#### NPM Stats #### NPM Stats

1057
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,14 @@
{ {
"name": "node-ipc", "name": "node-ipc",
"version": "10.0.2", "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", "type": "module",
"main": "node-ipc.js", "main": "node-ipc.cjs",
"module": "node-ipc.js",
"exports": {
"import": "./node-ipc.js",
"require": "./node-ipc.cjs"
},
"directories": { "directories": {
"example": "example" "example": "example"
}, },
@ -18,12 +23,14 @@
}, },
"devDependencies": { "devDependencies": {
"c8": "^7.7.3", "c8": "^7.7.3",
"esbuild": "^0.12.28",
"lcov2badge": "^0.1.2", "lcov2badge": "^0.1.2",
"node-cmd": "^4.0.0", "node-cmd": "^4.0.0",
"node-http-server": "^8.1.4", "node-http-server": "^8.1.4",
"vanilla-test": "^1.4.8" "vanilla-test": "^1.4.8"
}, },
"scripts": { "scripts": {
"prepare": "esbuild node-ipc.js --bundle --format=cjs --target=es2018 --platform=node --outfile=node-ipc.cjs",
"test": "npm i && c8 -r lcov -r html node test/CI.js && c8 report && node ./lcov.js", "test": "npm i && c8 -r lcov -r html node test/CI.js && c8 report && node ./lcov.js",
"coverage": "echo 'See your coverage report at http://localhost:8080' && node-http-server port=8080 root=./coverage/" "coverage": "echo 'See your coverage report at http://localhost:8080' && node-http-server port=8080 root=./coverage/"
}, },
@ -59,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/"
} }