chore: fix broken builds

This commit is contained in:
Tom French 2022-05-07 01:49:15 +01:00 committed by James Long
parent ce5ee1b877
commit b41ee56c81
3 changed files with 9 additions and 5 deletions

View file

@ -2,8 +2,8 @@ const d = require('date-fns');
const normalizePathSep = require('slash');
const uuid = require('uuid');
const AdmZip = require('adm-zip');
const actual = require('@actual-app/api/methods');
const { amountToInteger } = require('@actual-app/api/utils');
const actual = require('@actual-app/api');
const amountToInteger = actual.utils.amountToInteger;
// Utils

View file

@ -1,7 +1,6 @@
const d = require('date-fns');
const uuid = require('uuid');
const actual = require('@actual-app/api/methods');
const { amountToInteger } = require('@actual-app/api/utils');
const actual = require('@actual-app/api');
function amountFromYnab(amount) {
// ynabs multiplies amount by 1000 and actual by 100

View file

@ -58,5 +58,10 @@ module.exports = {
new webpack.IgnorePlugin({
resourceRegExp: /worker_threads|original-fs/
})
]
],
node: {
dgram: "empty",
net: 'empty',
tls: 'empty',
},
};