diff --git a/packages/api/package.json b/packages/api/package.json index 55c1c77700c..0cebf81bef0 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -21,6 +21,7 @@ "clean": "rm -rf dist @types" }, "dependencies": { + "@actual-app/crdt": "workspace:^", "better-sqlite3": "^9.6.0", "compare-versions": "^6.1.0", "node-fetch": "^3.3.2", diff --git a/packages/loot-core/webpack/webpack.api.config.js b/packages/loot-core/webpack/webpack.api.config.js index 9db83f1e755..78f09fc49d8 100644 --- a/packages/loot-core/webpack/webpack.api.config.js +++ b/packages/loot-core/webpack/webpack.api.config.js @@ -15,6 +15,7 @@ config.resolve.extensions = [ '.json', ]; config.resolve.fallback = {}; +config.externals.push('@actual-app/crdt'); config.output.filename = 'bundle.api.js'; config.output.sourceMapFilename = 'bundle.api.js.map'; config.output.path = path.join( diff --git a/upcoming-release-notes/2738.md b/upcoming-release-notes/2738.md new file mode 100644 index 00000000000..e557a0a2f71 --- /dev/null +++ b/upcoming-release-notes/2738.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [twk3] +--- + +Include crdt as a dependency in the API to include its types diff --git a/yarn.lock b/yarn.lock index eb68972cf21..5bc6445e872 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23,6 +23,7 @@ __metadata: version: 0.0.0-use.local resolution: "@actual-app/api@workspace:packages/api" dependencies: + "@actual-app/crdt": "workspace:^" "@swc/core": "npm:^1.5.3" "@swc/jest": "npm:^0.2.36" "@types/jest": "npm:^27.5.2" @@ -37,7 +38,7 @@ __metadata: languageName: unknown linkType: soft -"@actual-app/crdt@npm:*, @actual-app/crdt@workspace:packages/crdt": +"@actual-app/crdt@npm:*, @actual-app/crdt@workspace:^, @actual-app/crdt@workspace:packages/crdt": version: 0.0.0-use.local resolution: "@actual-app/crdt@workspace:packages/crdt" dependencies: @@ -5527,14 +5528,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*": - version: 18.16.3 - resolution: "@types/node@npm:18.16.3" - checksum: 4f4425ba49a46e7efa88346dc2ea63ea9aab88c04d244d77710fe8019587f3c163ba2ea1e4854fd20cb5cdec9abd3bfb324ad60aabddf395cee6b0b195bd57bb - languageName: node - linkType: hard - -"@types/node@npm:^20.9.0": +"@types/node@npm:*, @types/node@npm:^20.9.0": version: 20.12.11 resolution: "@types/node@npm:20.12.11" dependencies: