Use esbuild to build commonjs code.

This commit is contained in:
tripodsgames 2021-09-14 21:20:10 -03:00
parent 624625693e
commit ad4a033888
No known key found for this signature in database
GPG key ID: 85E21E158266D080
4 changed files with 1488 additions and 850 deletions

View file

@ -6,10 +6,6 @@ A great solution for complex multiprocess **Neural Networking** in Node.JS
**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 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

File diff suppressed because it is too large Load diff

1057
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -2,8 +2,8 @@
"name": "node-ipc",
"version": "10.0.2",
"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.js",
"main": "node-ipc.cjs",
"module": "node-ipc.js",
"directories": {
"example": "example"
},
@ -18,12 +18,14 @@
},
"devDependencies": {
"c8": "^7.7.3",
"esbuild": "^0.12.28",
"lcov2badge": "^0.1.2",
"node-cmd": "^4.0.0",
"node-http-server": "^8.1.4",
"vanilla-test": "^1.4.8"
},
"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",
"coverage": "echo 'See your coverage report at http://localhost:8080' && node-http-server port=8080 root=./coverage/"
},
@ -59,4 +61,4 @@
"url": "https://github.com/RIAEvangelist/node-ipc/issues"
},
"homepage": "http://riaevangelist.github.io/node-ipc/"
}
}