Lint scripts dir

This commit is contained in:
David Baker
2020-02-17 14:49:26 +00:00
parent 046170e3ec
commit 5fc72e8f73
9 changed files with 21 additions and 26 deletions

View File

@@ -7,11 +7,11 @@
const fs = require('fs').promises;
const asar = require('asar');
const child_process = require('child_process');
const childProcess = require('child_process');
async function main() {
try {
const webappDir = await fs.stat('webapp.asar');
await fs.stat('webapp.asar');
} catch (e) {
console.log("No 'webapp.asar' found. Run 'yarn run fetch'");
return 1;
@@ -22,7 +22,7 @@ async function main() {
// set version in package.json: electron-builder will use this to populate
// all the various version fields
await new Promise((resolve, reject) => {
child_process.execFile('yarn', [
childProcess.execFile('yarn', [
'version',
'-s',
'--no-git-tag-version', // This also means "don't commit to git" as it turns out