Closed danielweck closed 6 years ago
TODO: use inline JSON editing like:
cpy ./package.json dist/electron/ &&
json -I -f dist/electron/package.json -e "this.build=undefined" &&
json -I -f dist/electron/package.json -e "this.scripts=undefined" &&
json -I -f dist/electron/package.json -e "this.importSort=undefined" &&
json -I -f dist/electron/package.json -e "this.devDependencies=undefined" &&
json -I -f dist/electron/package.json -e "this.optionalDependencies=undefined" &&
json -I -f dist/electron/package.json -e "this.peerDependencies=undefined" &&
json -I -f dist/electron/package.json -e "this.bundleDependencies=undefined" &&
json -I -f dist/electron/package.json -e "this.dependencies={ conf: \\"latest\\", bindings: \\"latest\\" }" &&
json -I -f dist/electron/package.json -e "this.types=undefined" &&
json -I -f dist/electron/package.json -e "this.bin=undefined" &&
json -I -f dist/electron/package.json -e "this.main=\\"main.js\\"" &&
json -I -f dist/electron/package.json -e "this.files=undefined"
Notably,
dependencies
:https://github.com/edrlab/r2-streamer-js/blob/develop/package-now.json#L9
vs.
https://github.com/edrlab/r2-streamer-js/blob/develop/package.json#L48