1
0
Fork 0

add npm postinstall command to install archivebox via pip

This commit is contained in:
Nick Sweeting 2021-04-01 03:32:19 -04:00
parent 5492c204b8
commit 41d6a09719

View file

@ -6,10 +6,12 @@
"repository": "github:ArchiveBox/ArchiveBox",
"license": "MIT",
"scripts": {
"archivebox": "./bin/archive"
"archivebox": "python3 -m archivebox",
"selfupdate": "python3 -m pip install --upgrade archivebox && npm install --no-audit --no-fund --loglevel=error",
"postinstall": "archivebox version --quiet || (python3 -m pip install archivebox && archivebox --version)"
},
"bin": {
"archivebox-node": "./bin/archive",
"archivebox": "python3 -m archivebox",
"single-file": "./node_modules/.bin/single-file",
"readability-extractor": "./node_modules/.bin/readability-extractor",
"mercury-parser": "./node_modules/.bin/mercury-parser"