Skip to content

Commit

Permalink
chore(node): move install.ts into node/ (puppeteer#6490)
Browse files Browse the repository at this point in the history
This file contains logic that is unique to the Node.js environment and therefore should be moved into the `node` sub-folder.
  • Loading branch information
TimvdLippe authored Oct 12, 2020
1 parent e94a1e8 commit 1ed38af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/install.ts → src/node/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1ed38af

Please sign in to comment.