Skip to content

Commit

Permalink
Merge pull request #8392 from Agoric/mhofman/fix-solo-wallet-ui
Browse files Browse the repository at this point in the history
fix: solo lookup of wallet UI
  • Loading branch information
mergify[bot] authored Sep 28, 2023
2 parents 4ffd2ad + 1ac063e commit bf2e680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/solo/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,14 @@ const start = async (basedir, argv) => {
const { 'agoric-wallet': { htmlBasedir = 'ui/build', deploy = [] } = {} } =
JSON.parse(fs.readFileSync(pjs, 'utf-8'));

const htmlBasePath = String(htmlBasedir).replace(
/^\.\.\/\.\.\/node_modules\//,
'',
);

const agWallet = path.dirname(pjs);
const agWalletHtml = path.resolve(agWallet, htmlBasedir);
const agWalletHtmlUrl = await importMetaResolve(htmlBasePath, packageUrl);
const agWalletHtml = new URL(agWalletHtmlUrl).pathname;

let hostport;
await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"author": "Agoric",
"agoric-wallet": {
"htmlBasedir": "../../node_modules/@agoric/wallet-ui/build",
"htmlBasedir": "@agoric/wallet-ui/build",
"deploy": [
"./api/deploy.js"
]
Expand Down

0 comments on commit bf2e680

Please sign in to comment.