diff --git a/.circleci/config.yml b/.circleci/config.yml index 2d86521a4..70516780d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,7 +44,7 @@ commands: command: pnpm setup # Run setup to configure the global bin directory - run: name: Install dependencies - command: npm install -g pnpm && pnpm install + command: npm install -g pnpm && pnpm install --no-frozen-lockfile - save_cache: key: v1-pnpm-cache-{{ checksum "pnpm-lock.yaml" }} paths: diff --git a/.husky/pre-push b/.husky/pre-push index b45405575..0739a3de4 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,8 +1,19 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - echo "🔍 Running automatic fixes before pushing..." -pnpm fix + +# Try multiple ways to run pnpm +if command -v pnpm >/dev/null 2>&1; then + # Direct pnpm if available in PATH + pnpm fix +elif [ -f "$(npm root -g)/pnpm/bin/pnpm.cjs" ]; then + # Try global NPM installation path + "$(npm root -g)/pnpm/bin/pnpm.cjs" fix +elif command -v npx >/dev/null 2>&1; then + # Fallback to npx if available + npx --no-install pnpm fix +else + echo "⚠️ Could not find pnpm. Skipping automatic fixes..." + exit 0 # Don't fail the push, just continue +fi # Check if there are any changes after running fixes if [ -n "$(git status --porcelain)" ]; then diff --git a/netlify.toml b/netlify.toml index 26d33fdcf..1b26ae741 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,7 @@ +[build] + command = "pnpm install --no-frozen-lockfile && pnpm build" + publish = ".next" + [build.environment] -PNPM_VERSION = "10.2.0" -NODE_VERSION = "20.11.0" \ No newline at end of file + NODE_VERSION = "20.11.0" + NPM_FLAGS = "--no-frozen-lockfile" \ No newline at end of file diff --git a/package.json b/package.json index 0984ee0e5..abe1f9bae 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "lint": "eslint . --ext mdx --max-warnings 0 && pnpm spellcheck:lint && pnpm check-breadcrumbs && pnpm check-redirects && pnpm validate-metadata && pnpm link-checker", - "fix": "eslint . --ext mdx --fix && pnpm spellcheck:fix && pnpm breadcrumbs && pnpm fix-redirects && pnpm metadata-batch-cli && pnpm fix-links", + "fix": "eslint . --ext mdx --fix && pnpm spellcheck:fix && pnpm fix-redirects && pnpm metadata-batch-cli && pnpm fix-links", "spellcheck:lint": "cspell lint \"**/*.mdx\"", "prepare": "husky", "spellcheck:fix": "cspell --words-only --unique \"**/*.mdx\" | sort --ignore-case | uniq > words.txt", diff --git a/pages/app-developers/transactions/estimates.mdx b/pages/app-developers/transactions/estimates.mdx index 05d9de302..19b283548 100644 --- a/pages/app-developers/transactions/estimates.mdx +++ b/pages/app-developers/transactions/estimates.mdx @@ -25,7 +25,7 @@ It's important to properly estimate the cost of a transaction on OP Mainnet befo Here you'll learn how to estimate both of the components that make up the total cost of an OP Mainnet transaction, the [execution gas fee](./fees#execution-gas-fee) and the [L1 data fee](./fees#l1-data-fee). Make sure to read the guide on [Transaction Fees on OP Mainnet](./fees) for a detailed look at how these fees work under the hood. -## Execution gas fee +## Execution gas fee Estimating the execution gas fee on OP Mainnet is just like estimating the execution gas fee on Ethereum.