use .js extension for require() as a preparation for future migration to ESM

This commit is contained in:
zadam
2023-11-22 19:34:48 +01:00
parent 722299dd26
commit cf99345962
189 changed files with 984 additions and 984 deletions

View File

@@ -1,5 +1,5 @@
const becca = require('../becca/becca');
const sql = require("./sql");
const becca = require('../becca/becca.js');
const sql = require('./sql.js');
/** @returns {string|null} */
function getOptionOrNull(name) {
@@ -73,7 +73,7 @@ function setOption(name, value) {
function createOption(name, value, isSynced) {
// to avoid circular dependency, need to find a better solution
const BOption = require('../becca/entities/boption');
const BOption = require('../becca/entities/boption.js');
new BOption({
name: name,