Skip to content
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

Merged
merged 2 commits into from Apr 28, 2020

Conversation

jackfranklin
Copy link
Collaborator

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.

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.
});

const protocolOutputPath = path.join(__dirname, '..', '..', 'src', 'protocol.d.ts');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability:

Suggested change
const protocolOutputPath = path.join(__dirname, '..', '..', 'src', 'protocol.d.ts');
const protocolOutputPath = path.join(__dirname, '../../src/protocol.d.ts');

Copy link
Collaborator Author

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.

Copy link
Member

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.)

Copy link
Member

@mathiasbynens mathiasbynens left a 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>
@jackfranklin jackfranklin merged commit 3bf9bd1 into master Apr 28, 2020
@jackfranklin jackfranklin deleted the enforce-protocol-up-to-date branch April 28, 2020 14:42
mathiasbynens added a commit that referenced this pull request May 4, 2020
mathiasbynens added a commit that referenced this pull request May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants