readium / r2-streamer-js

NodeJS Readium2 "streamer"
BSD 3-Clause "New" or "Revised" License
21 stars 10 forks source link

Now.sh `package.json` is out of date #17

Closed danielweck closed 6 years ago

danielweck commented 6 years ago

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

danielweck commented 6 years ago

TODO: use inline JSON editing like:

https://github.com/edrlab/r2-testapp-js/blob/0f504dfe082124b3e841dd0033e1eb0d02777fd0/package-scripts.cson#L27-L39

    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"