Files
safe-wallet/apps/web/package.json
T
Hanzo AI fb9b95d50c feat(brand): per-brand build configs and asset pipeline
apps/web/package.json gains build:safe / build:lux / build:hanzo
scripts. Each runs scripts/select-brand.sh <slug> (which copies
.env.<slug> -> .env.local, brand/<slug>/ -> brand/active/, and the
per-brand manifest.json over safe.webmanifest) then `yarn build`.

scripts/codemod-brand-urls.mjs is the Pass 1 driver kept in-tree so
future merges with upstream can re-run it. .gitignore covers the
brand/active output dir.

HANZO_WHITELABEL.md updated with the per-brand invocation, the
canonical pattern table, the protocol-vs-brand boundary, and how
to add a new brand (env + asset dir + one package.json script — no
source edits).
2026-05-15 02:59:47 -07:00

225 lines
9.5 KiB
JSON

{
"name": "@safe-global/web",
"homepage": "https://github.com/safe-global/safe-wallet-web",
"license": "GPL-3.0",
"version": "1.88.0",
"type": "module",
"scripts": {
"dev": "cross-env USE_RSPACK=1 next dev",
"dev:full": "cross-env USE_RSPACK=0 ENABLE_PWA=1 ENABLE_EXPERIMENTAL_OPTIMIZATIONS=1 next dev",
"start": "next dev",
"build": "yarn fetch-chains && next build",
"build:safe": "../../scripts/select-brand.sh safe && yarn build",
"build:lux": "../../scripts/select-brand.sh lux && yarn build",
"build:hanzo": "../../scripts/select-brand.sh hanzo && yarn build",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"type-check": "tsc --noEmit",
"prettier": "prettier --check . --config ../../.prettierrc --ignore-path ../../.prettierignore",
"prettier:fix": "prettier --write . --config ../../.prettierrc --ignore-path ../../.prettierignore",
"fix": "yarn lint:fix && ts-prune && yarn prettier:fix",
"knip": "knip",
"knip:exports": "knip --exports",
"test": "cross-env TZ=CET LC_ALL=C DEBUG_PRINT_LIMIT=30000 NODE_ENV=test jest",
"test:ci": "cross-env NODE_ENV=test yarn test --ci --silent --coverage --json --watchAll=false --testLocationInResults --outputFile=report.json",
"test:coverage": "cross-env NODE_ENV=test yarn test --coverage --watchAll=false",
"test:scaffold": "node ../../scripts/test-scaffold.mjs",
"cmp": "./scripts/cmp.sh",
"routes": "node scripts/generate-routes.js > src/config/routes.ts && prettier -w src/config/routes.ts && cat src/config/routes.ts",
"css-vars": "npx -y tsx ./scripts/css-vars.ts > ./src/styles/vars.css && prettier -w src/styles/vars.css",
"fetch-chains": "npx -y tsx ./scripts/fetch-chains.ts",
"generate-types": "typechain --target ethers-v6 --out-dir ../../packages/utils/src/types/contracts ../../node_modules/@safe-global/safe-deployments/dist/assets/**/*.json ../../node_modules/@safe-global/safe-modules-deployments/dist/assets/**/*.json ../../node_modules/@openzeppelin/contracts/build/contracts/ERC20.json ../../node_modules/@openzeppelin/contracts/build/contracts/ERC721.json",
"after-install": "yarn generate-types",
"postinstall": "yarn after-install && yarn fetch-chains",
"analyze": "cross-env ANALYZE=true yarn build",
"cypress:open": "cross-env TZ=UTC NODE_ENV=cypress cypress open --e2e",
"cypress:canary": "cross-env TZ=UTC NODE_ENV=cypress cypress open --e2e -b chrome:canary",
"cypress:run": "cross-env NODE_ENV=cypress cypress run",
"cypress:ci": "cross-env NODE_ENV=cypress yarn cypress:run --config baseUrl=http://localhost:8080 --spec cypress/e2e/smoke/*.cy.js",
"serve": "sh -c 'npx -y serve out -p ${REVERSE_PROXY_UI_PORT:=8080}'",
"static-serve": "yarn build && yarn serve",
"storybook": "storybook dev -p 6006",
"storybook:lazy": "cross-env STORYBOOK_LAZY=true storybook dev -p 6006",
"storybook:vite": "storybook dev -p 6006 --config-dir .storybook-vite",
"build-storybook": "storybook build --quiet",
"build-storybook:vite": "storybook build --quiet --config-dir .storybook-vite",
"test:storybook": "cross-env NODE_ENV=test TZ=UTC jest --testMatch '**/*.stories.test.tsx' --testPathIgnorePatterns='/node_modules/' --testPathIgnorePatterns='/.next/'",
"test:storybook:ci": "cross-env NODE_ENV=test TZ=UTC yarn test:storybook --ci --silent --coverage=false --watchAll=false --testTimeout=30000",
"test:visual": "cross-env TZ=UTC test-storybook --url http://localhost:6006",
"test:visual:ci": "cross-env TZ=UTC test-storybook --url http://localhost:6006 --ci",
"test:visual:update": "cross-env TZ=UTC test-storybook --url http://localhost:6006 -u",
"generate:storybook-tests": "node scripts/generate-storybook-tests.cjs",
"integrity": "node scripts/integrity-hashes.cjs",
"storybook:generate-coverage": "npx tsx ../../scripts/storybook/generate-storybook-coverage.ts && prettier -w .storybook/COVERAGE.md",
"chromatic": "chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@base-ui/react": "^1.1.0",
"@cowprotocol/widget-react": "1.3.5",
"@datadog/browser-rum": "^6.24.1",
"@ducanh2912/next-pwa": "^10.2.9",
"@emotion/cache": "^11.14.0",
"@emotion/react": "^11.14.0",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.14.0",
"@gnosis.pm/zodiac": "^4.0.3",
"@ledgerhq/context-module": "^1.8.0",
"@ledgerhq/device-management-kit": "^0.9.1",
"@ledgerhq/device-signer-kit-ethereum": "^1.8.0",
"@ledgerhq/device-transport-kit-web-hid": "^1.2.0",
"@mui/icons-material": "^6.5.0",
"@mui/material": "^6.5.0",
"@mui/x-date-pickers": "^7.23.3",
"@next/third-parties": "^15.2.0",
"@reduxjs/toolkit": "^2.11.0",
"@reown/walletkit": "^1.2.7",
"@safe-global/api-kit": "^4.1.0",
"@safe-global/protocol-kit": "^7.1.0",
"@safe-global/safe-apps-sdk": "^9.1.0",
"@safe-global/safe-deployments": "^1.37.54",
"@safe-global/safe-modules-deployments": "^3.0.2",
"@safe-global/store": "workspace:^",
"@safe-global/theme": "workspace:^",
"@tailwindcss/postcss": "^4.1.18",
"@trezor/connect-web": "9.7.2",
"@walletconnect/core": "^2.21.10",
"@walletconnect/utils": "^2.21.10",
"@web3-onboard/coinbase": "^2.4.2",
"@web3-onboard/core": "^2.24.1",
"@web3-onboard/hw-common": "^2.3.3",
"@web3-onboard/injected-wallets": "^2.11.3",
"@web3-onboard/walletconnect": "2.6.2",
"blo": "^1.1.1",
"class-variance-authority": "^0.7.1",
"classnames": "^2.5.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.6.0",
"ethers": "6.14.3",
"exponential-backoff": "^3.1.0",
"firebase": "^11.1.0",
"fuse.js": "^7.1.0",
"idb-keyval": "^6.2.1",
"input-otp": "^1.4.2",
"js-cookie": "^3.0.1",
"lodash": "^4.18.1",
"lucide-react": "^0.563.0",
"mixpanel-browser": "^2.66.0",
"motion": "^12.34.0",
"next": "patch:next@15.5.8#../../.yarn/patches/next-npm-15.5.8-7d525d02b9.patch",
"next-themes": "^0.4.6",
"papaparse": "^5.3.2",
"postcss": "^8.5.6",
"qrcode.react": "^3.1.0",
"react": "19.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "19.2.0",
"react-dropzone": "^14.2.3",
"react-hook-form": "7.41.1",
"react-papaparse": "^4.0.2",
"react-redux": "^9.1.2",
"react-resizable-panels": "^4.5.3",
"recharts": "2.15.4",
"semver": "^7.7.1",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"vaul": "^1.1.2",
"zodiac-roles-deployments": "^2.3.4"
},
"devDependencies": {
"@argos-ci/cypress": "6.2.11",
"@chromatic-com/storybook": "^4.1.2",
"@cowprotocol/app-data": "^3.1.0",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.18.0",
"@faker-js/faker": "^9.0.3",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/bundle-analyzer": "^15.0.4",
"@next/mdx": "^15.0.4",
"@openzeppelin/contracts": "^4.9.6",
"@playwright/test": "^1.57.0",
"@rspack/plugin-react-refresh": "^1.0.0",
"@safe-global/test": "workspace:^",
"@safe-global/types-kit": "^3.1.0",
"@storybook/addon-designs": "^11.0.1",
"@storybook/addon-docs": "^10.2.6",
"@storybook/addon-links": "^10.2.6",
"@storybook/addon-onboarding": "^10.2.6",
"@storybook/addon-themes": "^10.2.6",
"@storybook/builder-webpack5": "^10.2.6",
"@storybook/nextjs": "^10.2.6",
"@storybook/nextjs-vite": "^10.2.6",
"@storybook/react": "^10.2.6",
"@storybook/react-dom-shim": "^10.2.6",
"@storybook/test-runner": "^0.24.2",
"@svgr/core": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"@svgr/webpack": "^8.1.0",
"@testing-library/cypress": "^10.1.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@typechain/ethers-v6": "^0.5.1",
"@types/jest": "^29.5.14",
"@types/jest-image-snapshot": "^6.4.0",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.14.182",
"@types/mdx": "^2.0.13",
"@types/node": "22.13.1",
"@types/qrcode": "^1.5.5",
"@types/react": "~19.2.10",
"@types/react-dom": "~19.2.0",
"@types/semver": "^7.3.10",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^8.18.1",
"cheerio": "^1.0.0",
"chromatic": "^13.3.5",
"cross-env": "^7.0.3",
"cypress": "^15.9.0",
"eslint": "^9.29.0",
"eslint-config-next": "^15.0.4",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-storybook": "^10.1.10",
"eslint-plugin-unused-imports": "^4.1.4",
"fake-indexeddb": "^4.0.2",
"http-server": "^14.1.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fixed-jsdom": "^0.0.10",
"jest-image-snapshot": "^6.5.1",
"knip": "^5.0.0",
"mockdate": "^3.0.5",
"msw": "^2.7.3",
"msw-storybook-addon": "^2.0.6",
"next-rspack": "^16.0.1",
"prettier": "^3.6.2",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-heading-id": "^1.0.1",
"remark-mdx-frontmatter": "^5.2.0",
"shadcn": "^3.7.0",
"storybook": "^10.2.7",
"ts-prune": "^0.10.3",
"typechain": "^8.3.2",
"typescript": "~5.9.2",
"typescript-plugin-css-modules": "^4.2.2",
"vite": "^6.4.2",
"vite-plugin-svgr": "^4.5.0",
"wait-on": "^9.0.3"
},
"nextBundleAnalysis": {
"budget": null,
"budgetPercentIncreaseRed": 20,
"minimumChangeThreshold": 0,
"showDetails": true
}
}