-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better dev experience for JS generated file hashes #7975
Conversation
Deployed docs
|
@@ -12,7 +12,8 @@ | |||
], | |||
"scripts": { | |||
"build:types": "tsc --noEmit && dts-buddy", | |||
"build": "npm run build:types" | |||
"build": "npm run build:types", | |||
"build:no-check": "npm run build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does the same thing as build
, it's only here for compatibility with running the same command across all packages in the yarn workspace (yarn --cwd rerun_js workspaces run build:no-check
would fail on the web-viewer-react
package otherwise)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great comment - it should be comited :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it would be nice if it was possible to put comments in JSON. i'm not sure where else to put it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh right 🤦 God damn JSON
"js-install", | ||
] } | ||
|
||
js-update-hashes = { cmd = "node rerun_js/web-viewer/build-wasm.mjs --update-hashes", depends_on = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstring! Update what hashes? Why and when would they need updating?
@@ -12,7 +12,8 @@ | |||
], | |||
"scripts": { | |||
"build:types": "tsc --noEmit && dts-buddy", | |||
"build": "npm run build:types" | |||
"build": "npm run build:types", | |||
"build:no-check": "npm run build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great comment - it should be comited :)
Honestly, I think my solution to this problem ( |
What
pixi run js-build-*
, more generally appending:no-check
to the npmbuild
commands will do the same)pixi run js-update-hashes
.Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerCHANGELOG.md
and the migration guideTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.