jiuyiUniapp/service/node_modules/chrome-launcher/compiled-check.js

14 lines
339 B
JavaScript

'use strict'
const fs = require('fs');
const path = require('path');
module.exports = function(filename) {
if (!fs.existsSync(path.join(__dirname, filename))) {
console.log(
'Oops! Looks like the chrome-launcher files needs to be compiled. Please run:');
console.log(' yarn; yarn build;');
process.exit(1);
}
}