chore: improve readability for path strings (#5805)

This addresses the feedback from https://github.com/puppeteer/puppeteer/pull/5762#discussion_r416554314.
This commit is contained in:
Mathias Bynens 2020-05-05 14:18:41 +02:00 committed by GitHub
parent d8d1f6ff7c
commit eed7d94a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ export default Protocol;
return {output, version};
});
const protocolOutputPath = path.join(__dirname, '..', '..', 'src', 'protocol.d.ts');
const protocolOutputPath = path.join(__dirname, '../../src/protocol.d.ts');
const relativeProtocolOutputPath = path.relative(process.cwd(), protocolOutputPath);
const writeOutputToDisk = ({output, version}) => {