mirror of
https://github.com/hanzoai/account-sdk.git
synced 2026-09-24 16:55:42 +00:00
* initial playground * fully featured for local use * use npm latest import * better abstractions * refactor(e2e-test): remove redundant logging and unused connection helpers - Remove redundant addLog calls from test files (status updates already provide this info) - Remove unused ensureConnection helper from useConnectionState - Clean up imports and types across test framework - Update documentation to reflect simplified logging approach * skipmodal * clean up feedback abstraction * Add SCW release test suite with wallet URL configuration * Fix lint errors * Revert changes outside examples directory * remove useless docs * fix ci * clean up * fix ci * Revert formatting changes (import reordering) unrelated to e2e test suite * Remove backup file from e2e test suite * file wide any exemption * fix CI * remove unnecessary configs * udpate example * fix ci * remove weird placeholders * remove unwanted diff * Fix CI failures from formatter and pay test expectations. Update next.config formatting to satisfy Biome and align pay unit tests with the new translatePaymentToSendCalls argument shape. Made-with: Cursor * Restore pay dataSuffix test coverage to match master. Re-add the invalid dataSuffix unit test and translatePaymentToSendCalls expectation removed by an earlier cleanup commit, eliminating unintended SDK test drift from this PR. Made-with: Cursor * Fix SDK source reload and remove noExplicitAny suppressions. Ensure e2e SDK source toggles actually reload SDK/provider state and replace old noExplicitAny biome-ignore workarounds in RpcMethodCard with explicit narrowing for request/response data. Made-with: Cursor
33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
import { existsSync } from 'node:fs';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
const npmAliasPackageJsonPath = path.join(
|
|
__dirname,
|
|
'../../node_modules/@base-org/account-npm/package.json'
|
|
);
|
|
const hasPublishedSdkAlias = existsSync(npmAliasPackageJsonPath);
|
|
|
|
export default {
|
|
output: 'export',
|
|
basePath: process.env.NODE_ENV === 'production' ? '/account-sdk' : undefined,
|
|
pageExtensions: ['page.tsx', 'page.ts', 'page.js', 'page.jsx'],
|
|
eslint: {
|
|
// Ignore eslint for `next lint`.
|
|
// GitHub discussion for supporting biome: https://github.com/vercel/next.js/discussions/59347
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
webpack: (config) => {
|
|
if (!hasPublishedSdkAlias) {
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'@base-org/account-npm': '@base-org/account',
|
|
'@base-org/account-npm/spend-permission': '@base-org/account/spend-permission',
|
|
};
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|