Skip to content

Commit

Permalink
chore: update publish config (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov authored Dec 7, 2023
1 parent 6a31e9d commit affcd51
Show file tree
Hide file tree
Showing 54 changed files with 680 additions and 607 deletions.
21 changes: 18 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
{
"npmClient": "yarn",
"packages": ["packages/*"],
"ignoreChanges": ["**/*.md"],
"packages": [
"packages/*"
],
"ignoreChanges": [
"**/*.md"
],
"command": {
"version": {
"ignoreChanges": ["**/*.md"]
"ignoreChanges": [
"**/*.md"
]
},
"publish": {
"directory": "{workspaceRoot}/{projectRoot}/dist",
"assets": [
{
"from": "../../*.md",
"to": "./"
}
]
}
},
"changelogPreset": "conventionalcommits",
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"version": "3.0.0-alpha.0",
"version": "3.0.0-alpha.8",
"private": true,
"sideEffects": false,
"type": "module",
"packageManager": "yarn@4.0.2",
"workspaces": [
"packages/*"
Expand All @@ -17,9 +18,9 @@
"release:version:before": "node scripts/private-version before",
"release:version:after": "yarn release:build && node scripts/private-version after",
"release:build": "lerna run build --no-private",
"release:publish": "lerna publish from-package --dist-tag latest --contents build --no-verify-access --yes",
"release:publish:alpha": "lerna publish from-package --dist-tag alpha --contents build --no-verify-access --yes",
"release:publish:beta": "lerna publish from-package --dist-tag beta --contents build --no-verify-access --yes"
"release:publish": "lerna publish from-package --dist-tag latest --no-verify-access --yes",
"release:publish:alpha": "lerna publish from-package --dist-tag alpha --no-verify-access --yes",
"release:publish:beta": "lerna publish from-package --dist-tag beta --no-verify-access --yes"
},
"standard-version": {
"scripts": {
Expand All @@ -33,15 +34,15 @@
"@testing-library/user-event": "^14.5.1",
"@types/eslint": "^8.44.8",
"@types/events": "^3.0.3",
"@types/node": "^20.10.1",
"@types/react": "^18.2.39",
"@types/node": "^20.10.3",
"@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.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.29.0",
Expand Down
19 changes: 12 additions & 7 deletions packages/wallet-management/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"name": "@lifi/wallet-management",
"version": "3.0.0-alpha.0",
"version": "3.0.0-alpha.4",
"description": "LI.FI Wallet Management solution.",
"sideEffects": false,
"type": "module",
"main": "./src/index.ts",
"module": "./src/index.ts",
"types": "./index.d.ts",
"types": "./src/index.d.ts",
"sideEffects": false,
"scripts": {
"watch": "tsc -w -p ./tsconfig.json",
"build": "tsc --build --clean && tsc --build && tsc --build tsconfig.cjs.json && yarn build:copy-files",
"build:copy-files": "node ../../scripts/copy-files.js && cpy 'src/**/*' '!src/**/*.ts*' build && cpy 'src/**/*' '!src/**/*.ts*' build/cjs",
"clean": "rm -rf build tsconfig.tsbuildinfo",
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:postcompile && yarn build:clean",
"build:esm": "tsc --build",
"build:cjs": "tsc --build ./tsconfig.cjs.json",
"build:postcompile": "node ../../scripts/postcompile.js --skip-mui && cpy 'src/**/*' dist",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo ./dist/tsconfig.cjs.tsbuildinfo",
"clean": "yarn build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"pre-commit": "lint-staged",
"lint": "eslint --ext .tsx --ext .ts ./src",
"lint:fix": "eslint --ext .tsx --ext .ts ./src --fix",
Expand Down Expand Up @@ -49,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
5 changes: 3 additions & 2 deletions packages/wallet-management/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig",
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"outDir": "build/cjs",
"moduleResolution": "Node",
"outDir": "dist/_cjs",
},
}
9 changes: 5 additions & 4 deletions packages/wallet-management/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"noEmit": false,
"outDir": "build",
"rootDir": "./src"
"sourceMap": true,
"outDir": "dist/_esm",
"rootDir": "./src",
},
"include": [
"./src/**/*",
"./src/**/*.json"
"./src/**/*.json",
],
}
20 changes: 10 additions & 10 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/widget-embedded",
"version": "1.0.152",
"version": "1.0.160",
"type": "module",
"scripts": {
"analyze": "source-map-explorer 'dist/assets/*.js' --no-border-checks",
Expand All @@ -26,26 +26,26 @@
"dependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/wallet-management": "^3.0.0-alpha.0",
"@lifi/widget": "^3.0.0-alpha.0",
"@lifi/sdk": "^3.0.0-alpha.37",
"@lifi/wallet-management": "^3.0.0-alpha.4",
"@lifi/widget": "^3.0.0-alpha.8",
"@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.0",
"@tanstack/react-query": "^5.12.2",
"bignumber.js": "^9.1.2",
"ethers": "^5.7.2",
"events": "^3.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.0",
"react-router-dom": "^6.20.1",
"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.4",
"vite": "^5.0.6",
"web-vitals": "^3.5.0"
},
"eslintConfig": {
Expand Down
22 changes: 11 additions & 11 deletions packages/widget-playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/widget-playground",
"version": "1.0.152",
"version": "1.0.160",
"type": "module",
"scripts": {
"analyze": "source-map-explorer 'dist/assets/*.js' --no-border-checks",
Expand All @@ -24,26 +24,26 @@
},
"author": "Eugene Chybisov <eugene@li.finance>",
"dependencies": {
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/wallet-management": "^3.0.0-alpha.0",
"@lifi/widget": "^3.0.0-alpha.0",
"@lifi/sdk": "^3.0.0-alpha.37",
"@lifi/wallet-management": "^3.0.0-alpha.4",
"@lifi/widget": "^3.0.0-alpha.8",
"@mui/icons-material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.154",
"@mui/material": "^5.14.19",
"@tanstack/react-query": "^5.12.0",
"@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.0",
"viem": "^2.0.0-beta.6",
"react-router-dom": "^6.20.1",
"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.4",
"vite": "^5.0.6",
"web-vitals": "^3.5.0"
},
"eslintConfig": {
Expand Down
6 changes: 4 additions & 2 deletions packages/widget-playground/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
"include": [
"vite.config.ts"
]
}
34 changes: 19 additions & 15 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"name": "@lifi/widget",
"version": "3.0.0-alpha.0",
"version": "3.0.0-alpha.8",
"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.ts",
"module": "./src/index.ts",
"types": "./index.d.ts",
"types": "./src/index.d.ts",
"sideEffects": false,
"scripts": {
"watch": "tsc -w -p ./tsconfig.json",
"build": "tsc --build --clean && yarn build:version && tsc --build && tsc --build tsconfig.cjs.json && yarn build:copy-files",
"build:copy-files": "node ../../scripts/copy-files.js && cpy 'src/**/*' '!src/**/*.ts*' build && cpy 'src/**/*' '!src/**/*.ts*' build/cjs",
"build": "yarn clean && yarn build:version && yarn build:esm && yarn build:cjs && yarn build:postcompile && yarn build:clean",
"build:esm": "tsc --build",
"build:cjs": "tsc --build ./tsconfig.cjs.json",
"build:postcompile": "node ../../scripts/postcompile.js && cpy 'src/**/*' dist",
"build:version": "node ../../scripts/version.js",
"clean": "rm -rf build tsconfig.tsbuildinfo",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo ./dist/tsconfig.cjs.tsbuildinfo",
"clean": "yarn build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"pre-commit": "lint-staged",
"lint": "eslint --ext .tsx --ext .ts ./src",
Expand Down Expand Up @@ -51,17 +56,17 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@lifi/sdk": "^3.0.0-alpha.36",
"@lifi/wallet-management": "^3.0.0-alpha.0",
"@lifi/sdk": "^3.0.0-alpha.37",
"@lifi/wallet-management": "^3.0.0-alpha.4",
"@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.0",
"@tanstack/react-virtual": "^3.0.0-beta.68",
"@tanstack/react-query": "^5.12.2",
"@tanstack/react-virtual": "^3.0.1",
"i18next": "^23.7.7",
"microdiff": "^1.3.2",
"mitt": "^3.0.1",
Expand All @@ -70,10 +75,10 @@
"react-hook-form": "^7.48.2",
"react-i18next": "^13.5.0",
"react-intersection-observer": "^9.5.3",
"react-router-dom": "^6.20.0",
"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 All @@ -93,6 +98,5 @@
},
"eslintConfig": {
"extends": "../../.eslintrc"
},
"sideEffects": false
}
}
36 changes: 2 additions & 34 deletions packages/widget/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
'use client';
import { forwardRef, useMemo } from 'react';
import { AppDefault } from './AppDefault';
import type { WidgetDrawer } from './AppDrawer';
import { AppDrawer } from './AppDrawer';
import { AppProvider } from './AppProvider';
import { AppRoutes } from './AppRoutes';
import {
AppContainer,
AppExpandedContainer,
FlexContainer,
} from './components/AppContainer';
import { Header } from './components/Header';
import { Initializer } from './components/Initializer';
import { PoweredBy } from './components/PoweredBy';
import { RoutesExpanded } from './components/Routes';
import { useExpandableVariant } from './hooks';
import { useWidgetConfig } from './providers';
import type { WidgetConfig, WidgetProps } from './types';
import { ElementId, createElementId } from './utils';

export const App = forwardRef<WidgetDrawer, WidgetProps>(
({ elementRef, open, integrator, ...other }, ref) => {
Expand All @@ -38,24 +27,3 @@ export const App = forwardRef<WidgetDrawer, WidgetProps>(
);
},
);

export const AppDefault = () => {
const { elementId } = useWidgetConfig();
const expandable = useExpandableVariant();

return (
<AppExpandedContainer
id={createElementId(ElementId.AppExpandedContainer, elementId)}
>
<AppContainer>
<Header />
<FlexContainer disableGutters>
<AppRoutes />
</FlexContainer>
<PoweredBy />
<Initializer />
</AppContainer>
{expandable ? <RoutesExpanded /> : null}
</AppExpandedContainer>
);
};
Loading

0 comments on commit affcd51

Please sign in to comment.