Skip to content

Commit

Permalink
chore: adjust build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 11, 2024
1 parent ba210ce commit 9d697a7
Show file tree
Hide file tree
Showing 21 changed files with 762 additions and 941 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
**node_modules**
node_modules
dist/
build/
/.pnp
Expand All @@ -17,6 +17,7 @@ build/
.env.test.local
.env.production.local
*.tsbuildinfo
*.tmp

npm-debug.log*

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.7.0-beta.10",
"version": "3.7.0-beta.9",
"private": true,
"sideEffects": false,
"type": "module",
Expand All @@ -13,9 +13,10 @@
"release:beta": "pnpm release:version --preid beta && pnpm release:build && pnpm standard-version -a --prerelease beta --skip.changelog",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private",
"release:build": "pnpm -r --parallel release:build",
"release:publish": "pnpm -r --parallel release:publish",
"release:publish:alpha": "pnpm -r --parallel release:publish:alpha",
"release:publish:beta": "pnpm -r --parallel release:publish:beta",
"release:publish": "pnpm -r publish --access public --no-git-checks --tag latest",
"release:publish:alpha": "pnpm -r publish --access public --no-git-checks --tag alpha",
"release:publish:beta": "pnpm -r publish --access public --no-git-checks --tag beta",
"release:clean": "pnpm -r --parallel build:postrelease",
"check": "biome check",
"check:write": "biome check --write",
"check:write:unsafe": "biome check --write --unsafe",
Expand Down
15 changes: 5 additions & 10 deletions packages/wallet-management/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
{
"name": "@lifi/wallet-management",
"version": "3.3.0-beta.10",
"version": "3.3.0-beta.9",
"description": "LI.FI Wallet Management solution.",
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.d.ts",
"sideEffects": false,
"scripts": {
"watch": "tsc -w -p ./tsconfig.json",
"build": "pnpm clean && pnpm build:esm && pnpm build:postcompile && pnpm build:clean",
"build": "pnpm clean && pnpm build:esm && pnpm build:clean",
"build:esm": "tsc --build",
"build:postcompile": "node ../../scripts/postcompile.js && cpy '../../*.md' 'src/**/*' '!src/**/*.d.ts' dist",
"build:prerelease": "node ../../scripts/prerelease.js && cpy '../../*.md' .",
"build:postrelease": "node ../../scripts/postrelease.js && rm -rf *.md",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo",
"release:build": "pnpm build",
"release:publish": "cd dist && pnpm publish --access public --no-git-checks --tag latest",
"release:publish:alpha": "cd dist && pnpm publish --access public --no-git-checks --tag alpha",
"release:publish:beta": "cd dist && pnpm publish --access public --no-git-checks --tag beta",
"release:build": "pnpm build && pnpm build:prerelease",
"clean": "pnpm build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"pre-push:validate": "pnpm check:types"
},
"publishConfig": {
"access": "public"
},
"author": "Eugene Chybisov <[email protected]>",
"homepage": "https://github.com/lifinance/widget",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-management/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"composite": true,
"declaration": true,
"sourceMap": true,
"outDir": "dist/_esm",
"outDir": "dist/esm",
"rootDir": "./src",
"module": "NodeNext",
"moduleResolution": "NodeNext",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@mui/material": "^5.16.7",
"@mui/system": "^5.16.7",
"@opensea/seaport-js": "4.0.4",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query": "^5.59.9",
"bignumber.js": "^9.1.2",
"ethers": "^6.13.3",
"events": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-playground-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@mui/material": "^5.16.7",
"@mui/material-nextjs": "^5.16.6",
"@mui/system": "^5.16.7",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query": "^5.59.9",
"core-js": "^3.38.1",
"next": "14.2.14",
"react": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-playground-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@lifi/widget-playground": "workspace:*",
"@mui/material": "^5.16.7",
"@mui/system": "^5.16.7",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query": "^5.59.9",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
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 @@ -32,19 +32,19 @@
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
"@mui/system": "^5.16.7",
"@rainbow-me/rainbowkit": "^2.0.1",
"@rainbow-me/rainbowkit": "^2.1.7",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.3",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query": "^5.59.9",
"bs58": "^6.0.0",
"csstype": "^3.1.3",
"lodash.isequal": "^4.5.0",
"microdiff": "^1.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"microdiff": "^1.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.21.21",
"wagmi": "^2.5.7",
"wagmi": "^2.12.17",
"zustand": "^4.5.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"declaration": true,
"noEmit": false,
"sourceMap": true,
"outDir": "dist/_esm",
"outDir": "dist/esm",
"rootDir": "./src",
"module": "ESNext",
"moduleResolution": "bundler",
Expand Down
17 changes: 6 additions & 11 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
{
"name": "@lifi/widget",
"version": "3.7.0-beta.10",
"version": "3.7.0-beta.9",
"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",
"types": "./src/index.d.ts",
"sideEffects": false,
"scripts": {
"watch": "tsc -w -p ./tsconfig.json",
"build": "pnpm clean && pnpm build:version && pnpm build:esm && pnpm build:postcompile && pnpm build:clean",
"build": "pnpm clean && pnpm build:version && pnpm build:esm && pnpm build:clean",
"build:esm": "tsc --build",
"build:postcompile": "node ../../scripts/postcompile.js && cpy '../../*.md' 'src/**/*' '!src/**/*.d.ts' dist",
"build:prerelease": "node ../../scripts/prerelease.js && cpy '../../*.md' .",
"build:postrelease": "node ../../scripts/postrelease.js && rm -rf *.md",
"build:version": "node ../../scripts/version.js",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo",
"release:build": "pnpm build",
"release:publish": "cd dist && pnpm publish --access public --no-git-checks --tag latest",
"release:publish:alpha": "cd dist && pnpm publish --access public --no-git-checks --tag alpha",
"release:publish:beta": "cd dist && pnpm publish --access public --no-git-checks --tag beta",
"release:build": "pnpm build && pnpm build:prerelease",
"clean": "pnpm build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"check:circular-deps": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx')",
"check:circular-deps-graph": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx') --image graph.svg",
"pre-push:validate": "pnpm check:types & pnpm check:circular-deps"
},
"publishConfig": {
"access": "public"
},
"author": "Eugene Chybisov <[email protected]>",
"homepage": "https://github.com/lifinance/widget",
"repository": {
Expand Down Expand Up @@ -60,7 +55,7 @@
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.3",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query": "^5.59.9",
"@tanstack/react-virtual": "^3.10.8",
"bs58": "^6.0.0",
"i18next": "^23.15.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/config/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const name = '@lifi/widget'
export const version = '3.7.0-beta.10'
export const version = '3.7.0-beta.9'
2 changes: 1 addition & 1 deletion packages/widget/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"composite": true,
"declaration": true,
"sourceMap": true,
"outDir": "dist/_esm",
"outDir": "dist/esm",
"rootDir": "./src",
"module": "NodeNext",
"moduleResolution": "NodeNext",
Expand Down
Loading

0 comments on commit 9d697a7

Please sign in to comment.