diff --git a/index.js b/index.js index b17f111..e1542a1 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ import * as server from './server.js'; import * as lights from './lights.js'; -import * as fs from 'fs'; +import * from 'fs'; const cfg = JSON.parse(fs.readFileSync('./config.json')); diff --git a/lights.js b/lights.js index df3b0e0..2645ae1 100644 --- a/lights.js +++ b/lights.js @@ -1,6 +1,6 @@ -import ws281x from 'rpi-ws281x'; -import * as fs from 'fs'; -import Logger, { levels } from './logger.js'; +import ws281x from 'rpi-ws281x' +import * as fs from 'fs' +import Logger, { levels } from './logger.js' const cfg = JSON.parse(fs.readFileSync('./config.json')); const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO);