chore: skip building on install (#9902)
This commit is contained in:
parent
c6a9404bb4
commit
5f72c8bac1
@ -24,15 +24,15 @@
|
|||||||
* necessary.
|
* necessary.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const {execSync} = require('child_process');
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
// Need to ensure TS is compiled before loading the installer
|
// Need to ensure TS is compiled before loading the installer
|
||||||
if (!fs.existsSync(path.join(__dirname, 'lib'))) {
|
if (!fs.existsSync(path.join(__dirname, 'lib'))) {
|
||||||
console.log('It seems we are installing from the git repo.');
|
console.warn(
|
||||||
console.log('Building install tools from scratch...');
|
'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.'
|
||||||
execSync('npm run build --workspace puppeteer');
|
);
|
||||||
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user