mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: enforce file extensions on imports (#6202)
* chore: enforce file extensions on imports To make our output agnostic it should include file extensions in the output, as per the ESM spec. It's a bit odd for Node packages but makes it easier to publish a browser build.
This commit is contained in:
@@ -39,32 +39,32 @@ const fs = require('fs');
|
||||
* part of the TSDoc migration.
|
||||
*/
|
||||
const MODULES_TO_CHECK_FOR_COVERAGE = {
|
||||
Accessibility: '../src/common/Accessibility',
|
||||
Browser: '../src/common/Browser',
|
||||
BrowserContext: '../src/common/Browser',
|
||||
BrowserFetcher: '../src/node/BrowserFetcher',
|
||||
CDPSession: '../src/common/Connection',
|
||||
ConsoleMessage: '../src/common/ConsoleMessage',
|
||||
Coverage: '../src/common/Coverage',
|
||||
Dialog: '../src/common/Dialog',
|
||||
ElementHandle: '../src/common/JSHandle',
|
||||
ExecutionContext: '../src/common/ExecutionContext',
|
||||
EventEmitter: '../src/common/EventEmitter',
|
||||
FileChooser: '../src/common/FileChooser',
|
||||
Frame: '../src/common/FrameManager',
|
||||
JSHandle: '../src/common/JSHandle',
|
||||
Keyboard: '../src/common/Input',
|
||||
Mouse: '../src/common/Input',
|
||||
Page: '../src/common/Page',
|
||||
Puppeteer: '../src/common/Puppeteer',
|
||||
HTTPRequest: '../src/common/HTTPRequest',
|
||||
HTTPResponse: '../src/common/HTTPResponse',
|
||||
SecurityDetails: '../src/common/SecurityDetails',
|
||||
Target: '../src/common/Target',
|
||||
TimeoutError: '../src/common/Errors',
|
||||
Touchscreen: '../src/common/Input',
|
||||
Tracing: '../src/common/Tracing',
|
||||
WebWorker: '../src/common/WebWorker',
|
||||
Accessibility: '../lib/cjs/common/Accessibility',
|
||||
Browser: '../lib/cjs/common/Browser',
|
||||
BrowserContext: '../lib/cjs/common/Browser',
|
||||
BrowserFetcher: '../lib/cjs/node/BrowserFetcher',
|
||||
CDPSession: '../lib/cjs/common/Connection',
|
||||
ConsoleMessage: '../lib/cjs/common/ConsoleMessage',
|
||||
Coverage: '../lib/cjs/common/Coverage',
|
||||
Dialog: '../lib/cjs/common/Dialog',
|
||||
ElementHandle: '../lib/cjs/common/JSHandle',
|
||||
ExecutionContext: '../lib/cjs/common/ExecutionContext',
|
||||
EventEmitter: '../lib/cjs/common/EventEmitter',
|
||||
FileChooser: '../lib/cjs/common/FileChooser',
|
||||
Frame: '../lib/cjs/common/FrameManager',
|
||||
JSHandle: '../lib/cjs/common/JSHandle',
|
||||
Keyboard: '../lib/cjs/common/Input',
|
||||
Mouse: '../lib/cjs/common/Input',
|
||||
Page: '../lib/cjs/common/Page',
|
||||
Puppeteer: '../lib/cjs/common/Puppeteer',
|
||||
HTTPRequest: '../lib/cjs/common/HTTPRequest',
|
||||
HTTPResponse: '../lib/cjs/common/HTTPResponse',
|
||||
SecurityDetails: '../lib/cjs/common/SecurityDetails',
|
||||
Target: '../lib/cjs/common/Target',
|
||||
TimeoutError: '../lib/cjs/common/Errors',
|
||||
Touchscreen: '../lib/cjs/common/Input',
|
||||
Tracing: '../lib/cjs/common/Tracing',
|
||||
WebWorker: '../lib/cjs/common/WebWorker',
|
||||
};
|
||||
|
||||
function traceAPICoverage(apiCoverage, className, modulePath) {
|
||||
|
||||
Reference in New Issue
Block a user