Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions invofi/apps/frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ const nextConfig = {
};
}
// Task 15: @invofi/sdk is consumed from source via tsconfig paths, so its
// `@stellar/stellar-sdk` import must resolve to THIS app's copy (the SDK's
// own node_modules isn't installed in CI). Pin it for webpack too.
// dependencies must resolve to THIS app's copy (the SDK's own
// node_modules isn't installed in CI). Pin them for webpack too.
// `idb` (Task 218) is the offline-cache module's only other bare import.
config.resolve.alias = {
...config.resolve.alias,
'@stellar/stellar-sdk': path.resolve(__dirname, 'node_modules/@stellar/stellar-sdk'),
idb: path.resolve(__dirname, 'node_modules/idb'),
};
return config;
},
Expand Down
20 changes: 16 additions & 4 deletions invofi/apps/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions invofi/apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@lobstrco/signer-extension-api": "^2.0.0",
"@stellar/stellar-sdk": "^16.2.0",
"@tanstack/react-query": "^5.101.2",
"idb": "^8.0.3",
"lucide-react": "^0.577.0",
"clsx": "^2.1.1",
"tailwind-merge": "^2.5.2",
Expand Down
3 changes: 2 additions & 1 deletion invofi/apps/frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"paths": {
"@/*": ["./src/*"],
"@invofi/sdk": ["../sdk/src/index.ts"],
"@stellar/stellar-sdk": ["./node_modules/@stellar/stellar-sdk"]
"@stellar/stellar-sdk": ["./node_modules/@stellar/stellar-sdk"],
"idb": ["./node_modules/idb"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
Expand Down
8 changes: 5 additions & 3 deletions invofi/apps/frontend/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ export default defineConfig({
// resolve it too (#223).
'@invofi/sdk': path.resolve(__dirname, '../sdk/src/index.ts'),
// The SDK's own node_modules isn't installed in CI, so its
// `@stellar/stellar-sdk` import must resolve to this app's copy —
// same reasoning as the webpack alias in next.config.mjs, mirrored
// here for Vitest.
// `@stellar/stellar-sdk` and `idb` (Task 218, cache.ts) imports must
// resolve to this app's copy — same reasoning as the webpack alias in
// next.config.mjs / the tsconfig.json paths entries, mirrored here
// for Vitest.
'@stellar/stellar-sdk': path.resolve(__dirname, 'node_modules/@stellar/stellar-sdk'),
idb: path.resolve(__dirname, 'node_modules/idb'),
},
},
});
62 changes: 19 additions & 43 deletions invofi/apps/sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion invofi/apps/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"test:watch": "vitest"
},
"dependencies": {
"@stellar/stellar-sdk": "^16.0.1"
"@stellar/stellar-sdk": "^16.0.1",
"idb": "^8.0.3"
},
"devDependencies": {
"@types/node": "^22.5.4",
"fake-indexeddb": "^6.2.5",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
}
Expand Down
Loading