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
chore: enforce src/protocol.d.ts is in sync #5762
Conversation
On CI we run `npm run compare-protocol-d-ts` which checks that the file on disk is up to date with the protocol we fetch from the browser.
1a0296b
to
fd691dd
Compare
}); | ||
|
||
const protocolOutputPath = path.join(__dirname, '..', '..', 'src', 'protocol.d.ts'); |
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.
Readability:
const protocolOutputPath = path.join(__dirname, '..', '..', 'src', 'protocol.d.ts'); | |
const protocolOutputPath = path.join(__dirname, '../../src/protocol.d.ts'); |
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.
I'd rather leave this as is so it works should anyone run this on Windows.
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.
path.join
normalizes, so it would still work on Windows. (I would not have suggested this change 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.
LGTM % nits
Co-Authored-By: Mathias Bynens <mathias@qiwi.be>
This addresses the feedback from #5762 (comment).
This addresses the feedback from #5762 (comment).
On CI we run
npm run compare-protocol-d-ts
which checks that the fileon disk is up to date with the protocol we fetch from the browser.