Skip to content

Commit

Permalink
update yarn config (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorian1te authored May 22, 2024
1 parent 5335a21 commit 53b8042
Show file tree
Hide file tree
Showing 22 changed files with 9,986 additions and 10,841 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ jobs:

- name: Run build
env:
NODE_OPTIONS: --max-old-space-size=4096
NODE_OPTIONS: --max-old-space-size=7168
run: yarn build
8 changes: 4 additions & 4 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { IntlProvider } from 'react-intl'
import { getMessagesByLocale } from '../src/renderer/i18n'

import * as mockApi from '../src/shared/mock/api'
import type { DecoratorFn } from '@storybook/react';
import type { Decorator } from '@storybook/react';

import "../src/renderer/index.css"

Expand All @@ -26,20 +26,20 @@ const _darkTheme = { name: 'Dark', ...themes.dark }
const locale = Locale.EN
const messages = getMessagesByLocale(locale)

const providerDecorator: DecoratorFn = (Story) => (
const providerDecorator: Decorator = (Story) => (
<AppProvider>
{/* We use IntlProvider instead of our our custom I18nProvider to provide messages, but w/o dependencies to Electron/Node source, which can't run in storybook */}
<IntlProvider locale={locale} messages={messages} defaultLocale={locale}>
<ThemeProvider theme={lightTheme}>
<Styled.AppWrapper><Story/></Styled.AppWrapper>
<Styled.AppWrapper ><Story/></Styled.AppWrapper>
</ThemeProvider>
</IntlProvider>
</AppProvider>
)

// Creates a `Router` decorator
// based on https://divotion.com/blog/typescript-react-router-v6-inside-storybook-stories
const reactRouterDecorator: DecoratorFn = (Story) => {
const reactRouterDecorator: Decorator = (Story) => {
return (
<MemoryRouter>
<Routes>
Expand Down
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.3.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.2.3.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
7 changes: 0 additions & 7 deletions openapitools.json

This file was deleted.

39 changes: 14 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"force-rebuild-native-deps": "rimraf ./node_modules/prebuild-install",
"dev:app": "cross-env BROWSER=none yarn start:web",
"dev:electron": "wait-on tcp:127.0.0.1:3000 && nodemon -I --watch ./src/main/ --exec electron .",
"build": "cross-env NODE_OPTIONS='--max-old-space-size=7168' CI=false PUBLIC_URL=./ craco build",
"build": "cross-env --max-old-space-size=8192 CI=false PUBLIC_URL=./ craco build",
"prebuild": "./node_modules/.bin/webpack --config webpack.main.js --mode production",
"test": "./node_modules/.bin/jest",
"package": "yarn prebuild && yarn build && yarn package:electron",
Expand Down Expand Up @@ -71,20 +71,16 @@
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@asgardex/asgardex-theme": "^0.1.2",
"@cosmjs/stargate": "^0.28.10",
"@cosmos-client/core": "0.46.1",
"@craco/craco": "^7.0.0",
"@devexperts/remote-data-ts": "^2.1.1",
"@devexperts/rx-utils": "^1.0.0-alpha.14",
"@devexperts/utils": "^1.0.0-alpha.14",
"@headlessui/react": "^1.6.6",
"@heroicons/react": "^2.0.12",
"@ledgerhq/hw-app-btc": "^10.1.1",
"@ledgerhq/hw-app-cosmos": "^6.29.1",
"@ledgerhq/hw-app-eth": "^6.35.1 ",
"@ledgerhq/hw-transport": "^6.30.1",
"@ledgerhq/hw-transport-node-hid-singleton": "^6.30.1",
"@psf/bitcoincashjs-lib": "^4.0.2",
"@types/electron-devtools-installer": "^2.2.2",
"@xchainjs/ledger-thorchain": "0.2.0",
"@xchainjs/xchain-arbitrum": "0.1.7",
Expand All @@ -94,39 +90,33 @@
"@xchainjs/xchain-bsc": "0.5.0",
"@xchainjs/xchain-client": "0.16.7",
"@xchainjs/xchain-cosmos": "1.1.3",
"@xchainjs/xchain-cosmos-sdk": "0.2.10",
"@xchainjs/xchain-cosmos-sdk": "^0.2.10",
"@xchainjs/xchain-crypto": "0.3.4",
"@xchainjs/xchain-dash": "0.3.5",
"@xchainjs/xchain-doge": "0.7.19",
"@xchainjs/xchain-ethereum": "0.32.0",
"@xchainjs/xchain-evm": "0.5.0",
"@xchainjs/xchain-evm-providers": "^0.1.8",
"@xchainjs/xchain-evm-providers": "^0.1.12",
"@xchainjs/xchain-kujira": "0.1.18",
"@xchainjs/xchain-litecoin": "0.14.5",
"@xchainjs/xchain-mayachain": "1.0.7",
"@xchainjs/xchain-mayachain-query": "0.1.15",
"@xchainjs/xchain-mayamidgard": "0.1.2",
"@xchainjs/xchain-mayamidgard": "0.1.4",
"@xchainjs/xchain-mayamidgard-query": "0.1.13",
"@xchainjs/xchain-mayanode": "0.1.6",
"@xchainjs/xchain-midgard": "0.5.5",
"@xchainjs/xchain-midgard-query": "0.1.15",
"@xchainjs/xchain-midgard": "0.5.7",
"@xchainjs/xchain-midgard-query": "0.1.18",
"@xchainjs/xchain-thorchain": "1.0.10",
"@xchainjs/xchain-thorchain-query": "0.7.13",
"@xchainjs/xchain-thornode": "0.3.15",
"@xchainjs/xchain-util": "0.13.6",
"@xchainjs/xchain-utxo": "0.1.9",
"@xchainjs/xchain-utxo-providers": "0.2.14",
"@xchainjs/xchain-utxo-providers": "0.2.17",
"antd": "^4.20.7",
"axios": "1.3.6",
"axios-retry": "^3.2.5",
"bchaddrjs": "^0.5.2",
"bech32-buffer": "^0.2.0",
"bignumber.js": "9.0.0",
"bitcoinjs-lib": "^5.2.0",
"caniuse-lite": "^1.0.30001346",
"chart.js": "^3.8.0",
"coininfo": "5.1.0",
"coinselect": "3.1.12",
"cosmos-client": "0.39.2",
"dayjs": "^1.11.10",
"dotenv": "^16.4.5",
Expand Down Expand Up @@ -183,13 +173,11 @@
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react-intl": "^3.0.0",
"@types/secp256k1": "^4.0.3",
"@types/secp256k1": "^4.0.6",
"@types/styled-components": "^5.1.25",
"ansis": "^1.5.5",
"assert": "^2.0.0",
"autoprefixer": "^10.4.8",
"browserify-fs": "^1.0.0",
"buffer": "^6.0.3",
"concurrently": "^7.2.1",
"cross-env": "^7.0.3",
"crypto-browserify": "^3.12.0",
Expand Down Expand Up @@ -218,9 +206,9 @@
"testcafe-browser-provider-electron": "^0.0.18",
"testcafe-react-selectors": "^4.1.5",
"ts-jest": "^29.1.2",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"typescript": "4.9.5",
"wait-on": "^6.0.1",
"webpack-cli": "^4.10.0",
"webpack-node-externals": "^3.0.0"
Expand All @@ -232,7 +220,8 @@
"resolutions": {
"@svgr/webpack": "^6.2.1",
"@ledgerhq/hw-transport": "6.30.6",
"bignumber.js": "^9.0.0"
"bignumber.js": "^9.0.0",
"secp256k1": "4.0.3"
},
"packageManager": "yarn@3.2.3"
"packageManager": "yarn@4.2.2"
}
5 changes: 0 additions & 5 deletions src/renderer/assets/svg/asset-luna.svg

This file was deleted.

Loading

0 comments on commit 53b8042

Please sign in to comment.