Sometimes you need to change ourbigbook files like index.js when working on a new extension feature.
TODO: we don't have a neat way to handle this now. Currently;
vscode/package.json
uses fixedand therefore does not pick up changes made to index.js.
vscode/package.json
uses fixed
ourbigbook
versions such as: "dependencies": {
"ourbigbook": "0.9.11"
To work around that, you can hack that line to:and:
"dependencies": {
"ourbigbook": ".."
cd vscode
npm install
The reason we don't use the is failing with:One thing we could do is to play it really nasty and hack
..
by default is that we are unable to release the extension with the ..
for an unknown reason because then:npx vsce package
Executing prepublish script 'npm run vscode:prepublish'...
> ourbigbook-vscode@0.0.26 vscode:prepublish
> npm run compile
> ourbigbook-vscode@0.0.26 compile
> tsc -p ./
ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! code ELSPROBLEMS
npm ERR! invalid: katex@v0.11.1 /home/ciro/bak/git/ourbigbook/node_modules/katex
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ciro/.npm/_logs/2024-08-05T15_51_22_124Z-debug-0.log
..
to a fixed version for relese, then hack it back to ..
immediately, always requiring a ourbigbook release for each vscode release.If you use the otherwise the error does not go away.
..
hack, besides undoing the ..
change, before releasing you have to:cd vscode
rm -rf node_modules package-lock.json