Set target to cjs.

This commit is contained in:
tripodsgames 2021-09-14 21:26:08 -03:00
parent ad4a033888
commit de80f537ef
No known key found for this signature in database
GPG Key ID: 85E21E158266D080
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
"vanilla-test": "^1.4.8"
},
"scripts": {
"prepublish": "esbuild node-ipc.js --bundle --target=es2018 --platform=node --outfile=node-ipc.cjs",
"prepublish": "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",
"coverage": "echo 'See your coverage report at http://localhost:8080' && node-http-server port=8080 root=./coverage/"
},