Skip to content

Commit

Permalink
Fix F-Droid build again
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Feb 7, 2019
1 parent 56f3f70 commit e34c516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const BuildCache = require('./BuildCache.js')

const path = require("path")
const fs = Promise.Promise.promisifyAll(require("fs-extra"))
const chokidar = require('chokidar')
const babel = Promise.promisifyAll(require("babel-core"))

const srcDir = "src"
Expand Down Expand Up @@ -39,6 +38,7 @@ class Builder {
*/
build(srcDirs, watch) {
return new Promise((resolve, reject) => {
const chokidar = require('chokidar')
let watcher = chokidar.watch(srcDirs, {ignoreInitial: true, followSymlinks: true, cwd: this.baseDir})
.on('change', (file) => this._translateIfChanged(file).then(() => watch()))
.on('add', (file) => this._translateIfChanged(file).then(() => watch()))
Expand Down

0 comments on commit e34c516

Please sign in to comment.