Always pull in API package from workspace (fixes #378)

This commit is contained in:
James Long 2022-11-09 23:33:23 -05:00
parent bf03dfc1cc
commit a72ee51e1a
4 changed files with 6 additions and 42 deletions

View file

@ -16,7 +16,7 @@
"bin": "./index.js", "bin": "./index.js",
"homepage": "https://github.com/actualbudget/actual/tree/master/packages/import-ynab4#readme", "homepage": "https://github.com/actualbudget/actual/tree/master/packages/import-ynab4#readme",
"dependencies": { "dependencies": {
"@actual-app/api": "^1.0.0", "@actual-app/api": "*",
"adm-zip": "^0.5.9", "adm-zip": "^0.5.9",
"date-fns": "2.0.0-alpha.27", "date-fns": "2.0.0-alpha.27",
"slash": "3.0.0", "slash": "3.0.0",

View file

@ -16,7 +16,7 @@
"bin": "./index.js", "bin": "./index.js",
"homepage": "https://github.com/actualbudget/actual/tree/master/packages/import-ynab5#readme", "homepage": "https://github.com/actualbudget/actual/tree/master/packages/import-ynab5#readme",
"dependencies": { "dependencies": {
"@actual-app/api": "^1.0.0", "@actual-app/api": "*",
"date-fns": "2.0.0-alpha.27", "date-fns": "2.0.0-alpha.27",
"uuid": "3.3.2" "uuid": "3.3.2"
} }

View file

@ -17,6 +17,7 @@ function init(socketName, handlers) {
ipc.serve(() => { ipc.serve(() => {
ipc.server.on('message', (data, socket) => { ipc.server.on('message', (data, socket) => {
console.log('[msg]', data)
let msg = data; let msg = data;
let { id, name, args, undoTag, catchErrors } = msg; let { id, name, args, undoTag, catchErrors } = msg;

View file

@ -22,21 +22,11 @@ __metadata:
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@actual-app/api@npm:^1.0.0":
version: 1.1.3
resolution: "@actual-app/api@npm:1.1.3"
dependencies:
node-ipc: 9.1.1
uuid: 3.3.2
checksum: e7fccff7583d64ac908eb7a7c93226200fd75af92b9fe9718b6e3fe0d004d92d79d87485e212b0d3d86cb685827e6733c939ece799156eea64db886bf1457a94
languageName: node
linkType: hard
"@actual-app/import-ynab4@*, @actual-app/import-ynab4@workspace:packages/import-ynab4": "@actual-app/import-ynab4@*, @actual-app/import-ynab4@workspace:packages/import-ynab4":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@actual-app/import-ynab4@workspace:packages/import-ynab4" resolution: "@actual-app/import-ynab4@workspace:packages/import-ynab4"
dependencies: dependencies:
"@actual-app/api": ^1.0.0 "@actual-app/api": "*"
adm-zip: ^0.5.9 adm-zip: ^0.5.9
date-fns: 2.0.0-alpha.27 date-fns: 2.0.0-alpha.27
slash: 3.0.0 slash: 3.0.0
@ -50,7 +40,7 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@actual-app/import-ynab5@workspace:packages/import-ynab5" resolution: "@actual-app/import-ynab5@workspace:packages/import-ynab5"
dependencies: dependencies:
"@actual-app/api": ^1.0.0 "@actual-app/api": "*"
date-fns: 2.0.0-alpha.27 date-fns: 2.0.0-alpha.27
uuid: 3.3.2 uuid: 3.3.2
bin: bin:
@ -8844,7 +8834,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"easy-stack@npm:^1.0.0, easy-stack@npm:^1.0.1": "easy-stack@npm:^1.0.1":
version: 1.0.1 version: 1.0.1
resolution: "easy-stack@npm:1.0.1" resolution: "easy-stack@npm:1.0.1"
checksum: 161a99e497b3857b0be4ec9e1ebbe90b241ea9d84702f9881b8e5b3f6822065b8c4e33436996935103e191bffba3607de70712a792f4d406a050def48c6bc381 checksum: 161a99e497b3857b0be4ec9e1ebbe90b241ea9d84702f9881b8e5b3f6822065b8c4e33436996935103e191bffba3607de70712a792f4d406a050def48c6bc381
@ -13813,13 +13803,6 @@ jest-snapshot@test:
languageName: node languageName: node
linkType: hard linkType: hard
"js-message@npm:1.0.5":
version: 1.0.5
resolution: "js-message@npm:1.0.5"
checksum: fd2fc8837a88a115aa2fa859bf5c13d9b335fd7eeba8426c44da6eb006b04c52cfe6675b3c27d6b112ffc51dadb8bc51d58340c3a3aa5c555d7da6bdc72ce9c0
languageName: node
linkType: hard
"js-message@npm:1.0.7": "js-message@npm:1.0.7":
version: 1.0.7 version: 1.0.7
resolution: "js-message@npm:1.0.7" resolution: "js-message@npm:1.0.7"
@ -13827,15 +13810,6 @@ jest-snapshot@test:
languageName: node languageName: node
linkType: hard linkType: hard
"js-queue@npm:2.0.0":
version: 2.0.0
resolution: "js-queue@npm:2.0.0"
dependencies:
easy-stack: ^1.0.0
checksum: 8f8e589cc20fd3bc3067db73ecaac77b55411c3ac58fdd6882868924ee19ab4203d19e68d3ec680c5c8f5e8282e30dafa377014dbec05c3f2d33be4596f4fb65
languageName: node
linkType: hard
"js-queue@npm:2.0.2": "js-queue@npm:2.0.2":
version: 2.0.2 version: 2.0.2
resolution: "js-queue@npm:2.0.2" resolution: "js-queue@npm:2.0.2"
@ -16222,17 +16196,6 @@ jest-snapshot@test:
languageName: node languageName: node
linkType: hard linkType: hard
"node-ipc@npm:9.1.1":
version: 9.1.1
resolution: "node-ipc@npm:9.1.1"
dependencies:
event-pubsub: 4.3.0
js-message: 1.0.5
js-queue: 2.0.0
checksum: 2b66099d1976e4328d34ae7fec853d3969ca337b52b5aefb48ae1d19387c37d6716c2b98d4a4934ec24aa79f0441721961d6c1beb858c294ad6a7a97ddf5460d
languageName: node
linkType: hard
"node-ipc@npm:9.1.4": "node-ipc@npm:9.1.4":
version: 9.1.4 version: 9.1.4
resolution: "node-ipc@npm:9.1.4" resolution: "node-ipc@npm:9.1.4"