add npm postinstall command to install archivebox via pip
This commit is contained in:
parent
5492c204b8
commit
41d6a09719
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue