Skip to content
Snippets Groups Projects
Commit b41ee56c authored by Tom French's avatar Tom French Committed by James Long
Browse files

chore: fix broken builds

parent ce5ee1b8
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ const d = require('date-fns'); ...@@ -2,8 +2,8 @@ const d = require('date-fns');
const normalizePathSep = require('slash'); const normalizePathSep = require('slash');
const uuid = require('uuid'); const uuid = require('uuid');
const AdmZip = require('adm-zip'); const AdmZip = require('adm-zip');
const actual = require('@actual-app/api/methods'); const actual = require('@actual-app/api');
const { amountToInteger } = require('@actual-app/api/utils'); const amountToInteger = actual.utils.amountToInteger;
// Utils // Utils
......
const d = require('date-fns'); const d = require('date-fns');
const uuid = require('uuid'); const uuid = require('uuid');
const actual = require('@actual-app/api/methods'); const actual = require('@actual-app/api');
const { amountToInteger } = require('@actual-app/api/utils');
function amountFromYnab(amount) { function amountFromYnab(amount) {
// ynabs multiplies amount by 1000 and actual by 100 // ynabs multiplies amount by 1000 and actual by 100
......
...@@ -58,5 +58,10 @@ module.exports = { ...@@ -58,5 +58,10 @@ module.exports = {
new webpack.IgnorePlugin({ new webpack.IgnorePlugin({
resourceRegExp: /worker_threads|original-fs/ resourceRegExp: /worker_threads|original-fs/
}) })
] ],
node: {
dgram: "empty",
net: 'empty',
tls: 'empty',
},
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment