Skip to content

Commit

Permalink
chore: bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Dec 6, 2023
1 parent ad38ac7 commit c57b389
Show file tree
Hide file tree
Showing 12 changed files with 215 additions and 208 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"@types/eslint": "^8.44.8",
"@types/events": "^3.0.3",
"@types/node": "^20.10.3",
"@types/react": "^18.2.41",
"@types/react": "^18.2.42",
"@types/react-dom": "^18.2.17",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"cpy-cli": "^5.0.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
13 changes: 7 additions & 6 deletions packages/wallet-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
"version": "3.0.0-alpha.1",
"description": "LI.FI Wallet Management solution.",
"type": "module",
"main": "./src/index.js",
"module": "./src/index.js",
"main": "./src/index.ts",
"module": "./src/index.ts",
"types": "./src/index.d.ts",
"sideEffects": false,
"scripts": {
"watch": "tsc -w -p ./tsconfig.json",
"build": "yarn clean && yarn build:esm && yarn build:format-package-json && yarn build:clean",
"build:esm": "tsc --project ./tsconfig.json --module es2020",
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:format-package-json && yarn build:clean",
"build:esm": "tsc --build",
"build:cjs": "tsc --build ./tsconfig.cjs.json",
"build:format-package-json": "node ../../scripts/format-package-json.js && cpy 'src/**/*' dist/src",
"build:clean": "rm -rf tsconfig.tsbuildinfo src/tsconfig.tsbuildinfo dist/src/tsconfig.tsbuildinfo",
"build:clean": "rm -rf tsconfig.tsbuildinfo dist/src/tsconfig.tsbuildinfo dist/src/tsconfig.cjs.tsbuildinfo",
"clean": "yarn build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"pre-commit": "lint-staged",
Expand Down Expand Up @@ -53,7 +54,7 @@
"lifi"
],
"dependencies": {
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/sdk": "^3.0.0-alpha.37",
"react": "^18.2.0",
"wagmi": "^2.0.0-beta.5"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/wallet-management/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"outDir": "dist/src/_cjs",
},
}
5 changes: 3 additions & 2 deletions packages/wallet-management/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"declaration": true,
"noEmit": false,
"sourceMap": true,
"sourceRoot": "../",
"outDir": "dist/src/_esm",
"rootDir": "./src"
"rootDir": "./src",
},
"include": [
"./src/**/*",
"./src/**/*.json"
"./src/**/*.json",
],
}
10 changes: 5 additions & 5 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"dependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/sdk": "^3.0.0-alpha.37",
"@lifi/wallet-management": "^3.0.0-alpha.1",
"@lifi/widget": "^3.0.0-alpha.3",
"@mui/icons-material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.154",
"@mui/material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.155",
"@mui/material": "^5.14.20",
"@opensea/seaport-js": "2.0.8",
"@tanstack/react-query": "^5.12.2",
"bignumber.js": "^9.1.2",
Expand All @@ -43,9 +43,9 @@
"wagmi": "^2.0.0-beta.5"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.0",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.3.2",
"vite": "^5.0.5",
"vite": "^5.0.6",
"web-vitals": "^3.5.0"
},
"eslintConfig": {
Expand Down
12 changes: 6 additions & 6 deletions packages/widget-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@
},
"author": "Eugene Chybisov <[email protected]>",
"dependencies": {
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/sdk": "^3.0.0-alpha.37",
"@lifi/wallet-management": "^3.0.0-alpha.1",
"@lifi/widget": "^3.0.0-alpha.3",
"@mui/icons-material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.154",
"@mui/material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.155",
"@mui/material": "^5.14.20",
"@tanstack/react-query": "^5.12.2",
"ethers": "^5.7.2",
"events": "^3.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.1",
"viem": "^2.0.0-beta.6",
"viem": "^2.0.0-beta.11",
"wagmi": "^2.0.0-beta.5"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.0",
"@vitejs/plugin-react": "^4.2.1",
"source-map-explorer": "^2.5.3",
"typescript": "^5.3.2",
"vite": "^5.0.5",
"vite": "^5.0.6",
"web-vitals": "^3.5.0"
},
"eslintConfig": {
Expand Down
21 changes: 11 additions & 10 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
"version": "3.0.0-alpha.3",
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
"type": "module",
"main": "./src/index.js",
"module": "./src/index.js",
"main": "./src/index.ts",
"module": "./src/index.ts",
"types": "./src/index.d.ts",
"sideEffects": false,
"scripts": {
"watch": "tsc -w -p ./tsconfig.json",
"build": "yarn clean && yarn build:version && yarn build:esm && yarn build:format-package-json && yarn build:clean",
"build:esm": "tsc --project ./tsconfig.json --module es2020",
"build": "yarn clean && yarn build:version && yarn build:esm && yarn build:cjs && yarn build:format-package-json && yarn build:clean",
"build:esm": "tsc --build",
"build:cjs": "tsc --build ./tsconfig.cjs.json",
"build:format-package-json": "node ../../scripts/format-package-json.js && cpy 'src/**/*' dist/src",
"build:version": "node ../../scripts/version.js",
"build:clean": "rm -rf tsconfig.tsbuildinfo src/tsconfig.tsbuildinfo dist/src/tsconfig.tsbuildinfo",
"build:clean": "rm -rf tsconfig.tsbuildinfo dist/src/tsconfig.tsbuildinfo dist/src/tsconfig.cjs.tsbuildinfo",
"clean": "yarn build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"pre-commit": "lint-staged",
Expand Down Expand Up @@ -55,17 +56,17 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/sdk": "^3.0.0-alpha.37",
"@lifi/wallet-management": "^3.0.0-alpha.1",
"@mui/icons-material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.154",
"@mui/material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.155",
"@mui/material": "^5.14.20",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-wallets": "^0.19.23",
"@solana/web3.js": "^1.87.6",
"@tanstack/react-query": "^5.12.2",
"@tanstack/react-virtual": "^3.0.0",
"@tanstack/react-virtual": "^3.0.1",
"i18next": "^23.7.7",
"microdiff": "^1.3.2",
"mitt": "^3.0.1",
Expand All @@ -77,7 +78,7 @@
"react-router-dom": "^6.20.1",
"react-timer-hook": "^3.0.7",
"uuid": "^9.0.1",
"viem": "^2.0.0-beta.6",
"viem": "^2.0.0-beta.11",
"wagmi": "^2.0.0-beta.5",
"zustand": "^4.4.7"
},
Expand Down
13 changes: 13 additions & 0 deletions packages/widget/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"outDir": "dist/src/_cjs",
},
"references": [
{
"path": "../wallet-management/tsconfig.json"
},
]
}
3 changes: 1 addition & 2 deletions packages/widget/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"sourceMap": true,
"outDir": "dist/src/_esm",
"rootDir": "./src",
"baseUrl": "../../"
},
"include": [
"./src/**/*",
"./src/**/*.json"
"./src/**/*.json",
],
"references": [
{
Expand Down
11 changes: 1 addition & 10 deletions scripts/format-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,9 @@ async function createPackageFile() {

const newPackageData = {
...packageDataOther,
private: false,
exports: {
'.': {
types: './src/_esm/index.d.ts',
default: './src/_esm/index.js',
},
'./package.json': './package.json',
},
main: './src/_esm/index.js',
main: './src/_cjs/index.js',
module: './src/_esm/index.js',
types: './src/_esm/index.d.ts',
typings: './src/_esm/index.d.ts',
};

const targetPath = path.resolve(buildPath, './package.json');
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"@lifi/widget/*": [
"./packages/widget/src/*"
]
],
}
},
"exclude": [
Expand Down
Loading

0 comments on commit c57b389

Please sign in to comment.