From 1ed38af79abbe75038fabdae6d3fbb1ea2bf7a47 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Mon, 12 Oct 2020 07:56:29 +0100 Subject: [PATCH] chore(node): move install.ts into node/ (#6490) This file contains logic that is unique to the Node.js environment and therefore should be moved into the `node` sub-folder. --- install.js | 2 +- src/{ => node}/install.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => node}/install.ts (98%) diff --git a/install.js b/install.js index 5fe1314e4a6..11518a595f5 100644 --- a/install.js +++ b/install.js @@ -32,7 +32,7 @@ async function download() { const { downloadBrowser, logPolitely, - } = require('./lib/cjs/puppeteer/install'); + } = require('./lib/cjs/puppeteer/node/install'); if (process.env.PUPPETEER_SKIP_DOWNLOAD) { logPolitely( diff --git a/src/install.ts b/src/node/install.ts similarity index 98% rename from src/install.ts rename to src/node/install.ts index d2c9f1baa83..ca46f00e2e8 100644 --- a/src/install.ts +++ b/src/node/install.ts @@ -17,8 +17,8 @@ import os from 'os'; import https from 'https'; import ProgressBar from 'progress'; -import puppeteer from './index.js'; -import { PUPPETEER_REVISIONS } from './revisions.js'; +import puppeteer from '../index.js'; +import { PUPPETEER_REVISIONS } from '../revisions.js'; const supportedProducts = { chrome: 'Chromium',