Use esbuild to build commonjs code.
This commit is contained in:
parent
624625693e
commit
ad4a033888
4 changed files with 1488 additions and 850 deletions
|
@ -6,10 +6,6 @@ A great solution for complex multiprocess **Neural Networking** in Node.JS
|
||||||
|
|
||||||
**npm install node-ipc**
|
**npm install node-ipc**
|
||||||
|
|
||||||
#### for commonjs or node <v14
|
|
||||||
|
|
||||||
set version to `<10.0.0` in your `package.json` for the node-ipc dep.
|
|
||||||
|
|
||||||
#### NPM Stats
|
#### NPM Stats
|
||||||
|
|
||||||
npm info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=)
|
npm info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=)
|
||||||
|
|
1269
node-ipc.cjs
Normal file
1269
node-ipc.cjs
Normal file
File diff suppressed because it is too large
Load diff
1057
package-lock.json
generated
1057
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -2,8 +2,8 @@
|
||||||
"name": "node-ipc",
|
"name": "node-ipc",
|
||||||
"version": "10.0.2",
|
"version": "10.0.2",
|
||||||
"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.js",
|
"module": "node-ipc.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"example": "example"
|
"example": "example"
|
||||||
},
|
},
|
||||||
|
@ -18,12 +18,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": {
|
||||||
|
"prepublish": "esbuild node-ipc.js --bundle --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/"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue