Skip to content

Commit c2d8ee7

Browse files
committed
wip: next conf changes
1 parent a440a76 commit c2d8ee7

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

components/bridge-form/bridge-form.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { networks } from '@/utils/networksConfig'
1313
import { MainButton } from '@/components/main-button'
1414
import { BridgeInput } from '@/components/bridge-input'
1515
import { useBridgeInfo } from '@/hooks/use-bridge-info'
16-
import { getDeployments } from '@tari-project/wxtm-bridge-contracts/deployments'
16+
import { getDeployments } from '@tari-project/wxtm-bridge-contracts/deployments/index'
1717
import { parseToMaxAllowed } from '@/utils/parse-wxtm-token-amount'
1818
import { formatNumber, FormatPreset } from '@/utils/formatters'
1919
import { useTranslation } from 'react-i18next'

hooks/use-bridge-to-tari.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import useTariAccountStore from '@/store/account'
22
import { microXtmToXtm, parseWxtmTokenAmount } from '@/utils/parse-wxtm-token-amount'
3-
import { getDeployments } from '@tari-project/wxtm-bridge-contracts/deployments'
3+
import { getDeployments } from '@tari-project/wxtm-bridge-contracts/deployments/index'
44
import { TokensUnwrappedService, UserTransactionDTO } from '@tari-project/wxtm-bridge-backend-api'
55
import { WXTM__factory, WXTMBridge__factory } from '@tari-project/wxtm-bridge-contracts/typechain/factories/contracts'
66
import { ethers } from 'ethers'

next.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import type { NextConfig } from 'next'
22

33
const nextConfig: NextConfig = {
4+
transpilePackages: ['@tari-project/wxtm-bridge-contracts'],
45
images: {
56
loaderFile: './utils/imageLoader.ts',
67
path: process.env.NEXT_PUBLIC_PATH,
78
},
89
output: 'export',
9-
typescript: {
10-
ignoreBuildErrors: true,
11-
},
1210
}
1311

1412
export default nextConfig

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"dev": "next dev --debug",
7+
"dev": "next dev",
88
"build": "next build --debug",
99
"start": "next start",
1010
"lint": "eslint .",

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"noEmit": true,
88
"esModuleInterop": true,
99
"module": "esnext",
10-
"moduleResolution": "node",
10+
"moduleResolution": "bundler",
1111
"resolveJsonModule": true,
1212
"isolatedModules": true,
1313
"jsx": "react-jsx",
@@ -19,8 +19,9 @@
1919
],
2020
"paths": {
2121
"@/*": ["./*"]
22-
}
22+
},
23+
"allowJs": true
2324
},
24-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
25+
"include": ["next-env.d.ts", "./**/*.ts", "./**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
2526
"exclude": ["node_modules"]
2627
}

types/contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { type DeployedChains } from '@tari-project/wxtm-bridge-contracts/deployments'
1+
import { type DeployedChains } from '@tari-project/wxtm-bridge-contracts/deployments/index'
22

33
export { DeployedChains }

0 commit comments

Comments
 (0)