mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: move fs.js to the node folder (#10055)
This commit is contained in:
parent
8e8c06ac7d
commit
704624eb20
@ -36,7 +36,8 @@ import bzip from 'unbzip2-stream';
|
|||||||
import {debug} from '../common/Debug.js';
|
import {debug} from '../common/Debug.js';
|
||||||
import {Product} from '../common/Product.js';
|
import {Product} from '../common/Product.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {rm} from '../util/fs.js';
|
|
||||||
|
import {rm} from './util/fs.js';
|
||||||
|
|
||||||
const debugFetcher = debug('puppeteer:fetcher');
|
const debugFetcher = debug('puppeteer:fetcher');
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ import {
|
|||||||
|
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {rm} from '../util/fs.js';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BrowserLaunchArgumentOptions,
|
BrowserLaunchArgumentOptions,
|
||||||
@ -34,6 +33,7 @@ import {
|
|||||||
} from './LaunchOptions.js';
|
} from './LaunchOptions.js';
|
||||||
import {ProductLauncher, ResolvedLaunchArgs} from './ProductLauncher.js';
|
import {ProductLauncher, ResolvedLaunchArgs} from './ProductLauncher.js';
|
||||||
import {PuppeteerNode} from './PuppeteerNode.js';
|
import {PuppeteerNode} from './PuppeteerNode.js';
|
||||||
|
import {rm} from './util/fs.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -23,7 +23,6 @@ import {Browser as SupportedBrowsers, createProfile} from '@puppeteer/browsers';
|
|||||||
|
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {rm} from '../util/fs.js';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BrowserLaunchArgumentOptions,
|
BrowserLaunchArgumentOptions,
|
||||||
@ -31,6 +30,7 @@ import {
|
|||||||
} from './LaunchOptions.js';
|
} from './LaunchOptions.js';
|
||||||
import {ProductLauncher, ResolvedLaunchArgs} from './ProductLauncher.js';
|
import {ProductLauncher, ResolvedLaunchArgs} from './ProductLauncher.js';
|
||||||
import {PuppeteerNode} from './PuppeteerNode.js';
|
import {PuppeteerNode} from './PuppeteerNode.js';
|
||||||
|
import {rm} from './util/fs.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export * from './assert.js';
|
export * from './assert.js';
|
||||||
export * from './fs.js';
|
|
||||||
export * from './DebuggableDeferredPromise.js';
|
export * from './DebuggableDeferredPromise.js';
|
||||||
export * from './DeferredPromise.js';
|
export * from './DeferredPromise.js';
|
||||||
export * from './ErrorLike.js';
|
export * from './ErrorLike.js';
|
||||||
|
@ -23,7 +23,7 @@ import {
|
|||||||
PuppeteerLaunchOptions,
|
PuppeteerLaunchOptions,
|
||||||
PuppeteerNode,
|
PuppeteerNode,
|
||||||
} from 'puppeteer-core/internal/node/PuppeteerNode.js';
|
} from 'puppeteer-core/internal/node/PuppeteerNode.js';
|
||||||
import {rmSync} from 'puppeteer-core/internal/util/fs.js';
|
import {rmSync} from 'puppeteer-core/internal/node/util/fs.js';
|
||||||
|
|
||||||
import {getTestState} from './mocha-utils.js';
|
import {getTestState} from './mocha-utils.js';
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ import {Protocol} from 'devtools-protocol';
|
|||||||
import expect from 'expect';
|
import expect from 'expect';
|
||||||
import {BrowserFetcher, TimeoutError} from 'puppeteer';
|
import {BrowserFetcher, TimeoutError} from 'puppeteer';
|
||||||
import {Page} from 'puppeteer-core/internal/api/Page.js';
|
import {Page} from 'puppeteer-core/internal/api/Page.js';
|
||||||
import {rmSync} from 'puppeteer-core/internal/util/fs.js';
|
import {rmSync} from 'puppeteer-core/internal/node/util/fs.js';
|
||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
|
|
||||||
import {getTestState, itOnlyRegularInstall} from './mocha-utils.js';
|
import {getTestState, itOnlyRegularInstall} from './mocha-utils.js';
|
||||||
|
@ -33,8 +33,8 @@ import {
|
|||||||
PuppeteerLaunchOptions,
|
PuppeteerLaunchOptions,
|
||||||
PuppeteerNode,
|
PuppeteerNode,
|
||||||
} from 'puppeteer-core/internal/node/PuppeteerNode.js';
|
} from 'puppeteer-core/internal/node/PuppeteerNode.js';
|
||||||
|
import {rmSync} from 'puppeteer-core/internal/node/util/fs.js';
|
||||||
import {isErrorLike} from 'puppeteer-core/internal/util/ErrorLike.js';
|
import {isErrorLike} from 'puppeteer-core/internal/util/ErrorLike.js';
|
||||||
import {rmSync} from 'puppeteer-core/internal/util/fs.js';
|
|
||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
|
|
||||||
import {extendExpectWithToBeGolden} from './utils.js';
|
import {extendExpectWithToBeGolden} from './utils.js';
|
||||||
|
Loading…
Reference in New Issue
Block a user