1j01 / 98

πŸ’Ώ Web-based Windows 98 desktop recreation β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–“β–ˆβ–“β–“β–’β–“β–’β–’β–‘β–’β–‘β–‘β–‘πŸ—•οΈŽπŸ——οΈŽπŸ—™οΈŽ

Home Page:https://98.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make_http_index file not found, clears filesystem-index.json

ishaan-sangwan opened this issue Β· comments

when running npm start
make-fs-index command in package.json is run

"make-fs-index": "make_http_index | json > filesystem-index.json"

but there is not make_http_index shell file thus return nothing which deletes the content in filesystem-index.json making the file system crash
image

This script currently assumes browserfs@2.0.0 is installed globally. npm i -g browserfs@2.0.0

I noted this here, but it's not very discoverable as a note:

98/package.json

Lines 55 to 58 in 361bd75

"make-fs-index": "make_http_index | json > filesystem-index.json",
"make-fs-index @NOTE": "browserfs@2.0.0 is currently assumed to be installed globally",
"make-fs-index @TODO 1": "Keep this file out of repo, and generate it on deploy.",
"make-fs-index @TODO 2": "Ignore gitignored files, including globally gitignored files... I'm sure there's a way to base it off of what things are checked in to git. git ls-files, or git ls-tree, ideally with the contents after staged changes would be applied (is there a 'tree-ish' for that?)",

I'm sure this situation will be improved when overhauling the filesystem, needed to fix other problems with it.