mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: add browsers entry point (#9846)
This commit is contained in:
parent
dec48a9592
commit
1a1e79d046
@ -11,6 +11,13 @@
|
|||||||
"bin": {
|
"bin": {
|
||||||
"@puppeteer/browsers": "lib/cjs/browsers.js"
|
"@puppeteer/browsers": "lib/cjs/browsers.js"
|
||||||
},
|
},
|
||||||
|
"main": "./lib/cjs/main.js",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": "./lib/esm/main.js",
|
||||||
|
"require": "./lib/cjs/main.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"wireit": {
|
"wireit": {
|
||||||
"build": {
|
"build": {
|
||||||
"command": "tsc -b && chmod a+x lib/cjs/browsers.js lib/esm/browsers.js",
|
"command": "tsc -b && chmod a+x lib/cjs/browsers.js lib/esm/browsers.js",
|
||||||
|
@ -21,8 +21,7 @@ import https from 'https';
|
|||||||
import os from 'os';
|
import os from 'os';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
import {Browser, BrowserPlatform} from '../../lib/cjs/browsers/browsers.js';
|
import {fetch, canFetch, Browser, BrowserPlatform} from '../../lib/cjs/main.js';
|
||||||
import {fetch, canFetch} from '../../lib/cjs/fetch.js';
|
|
||||||
|
|
||||||
import {testChromeBuildId, testFirefoxBuildId} from './versions.js';
|
import {testChromeBuildId, testFirefoxBuildId} from './versions.js';
|
||||||
|
|
||||||
|
@ -19,13 +19,14 @@ import fs from 'fs';
|
|||||||
import os from 'os';
|
import os from 'os';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
import {Browser, BrowserPlatform} from '../../lib/cjs/browsers/browsers.js';
|
|
||||||
import {fetch} from '../../lib/cjs/fetch.js';
|
|
||||||
import {
|
import {
|
||||||
CDP_WEBSOCKET_ENDPOINT_REGEX,
|
CDP_WEBSOCKET_ENDPOINT_REGEX,
|
||||||
computeExecutablePath,
|
computeExecutablePath,
|
||||||
launch,
|
launch,
|
||||||
} from '../../lib/cjs/launcher.js';
|
fetch,
|
||||||
|
Browser,
|
||||||
|
BrowserPlatform,
|
||||||
|
} from '../../lib/cjs/main.js';
|
||||||
|
|
||||||
import {testChromeBuildId, testFirefoxBuildId} from './versions.js';
|
import {testChromeBuildId, testFirefoxBuildId} from './versions.js';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user