From 9fc42e52cd7412778ca3fd24555871b597e45988 Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 18:26:42 +0100 Subject: [PATCH 01/11] testing --- pages/app-developers/transactions/estimates.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/app-developers/transactions/estimates.mdx b/pages/app-developers/transactions/estimates.mdx index 6e9f83844..154dc28af 100644 --- a/pages/app-developers/transactions/estimates.mdx +++ b/pages/app-developers/transactions/estimates.mdx @@ -16,7 +16,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. From 333c337714f103899ea7c48806cd726d2f27f50b Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 18:50:09 +0100 Subject: [PATCH 02/11] fix nextra --- package.json | 9 +++-- pnpm-lock.yaml | 93 +++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 90 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 27e1ab8cd..faf9d17c0 100644 --- a/package.json +++ b/package.json @@ -8,15 +8,16 @@ "fix": "eslint . --ext mdx --fix && pnpm spellcheck:fix && pnpm breadcrumbs && pnpm fix-redirects && pnpm metadata-batch-cli", "spellcheck:lint": "cspell lint \"**/*.mdx\"", "spellcheck:fix": "cspell --words-only --unique \"**/*.mdx\" | sort --ignore-case | uniq > words.txt", - "breadcrumbs": "NODE_NO_WARNINGS=1 npx ts-node-esm --skip-project utils/create-breadcrumbs.ts", + "prepare": "husky install", + "breadcrumbs": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/create-breadcrumbs.ts", "check-breadcrumbs": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/breadcrumbs.ts", "check-redirects": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/redirects.ts", "fix-redirects": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/fix-redirects.ts", "link-checker": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/link-checker.ts", "metadata-batch-cli": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/metadata-batch-cli.ts", - "metadata-batch-cli:dry": "pnpm metadata-batch-cli --dry-run", + "metadata-batch-cli:dry": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/metadata-batch-cli.ts --dry-run", "metadata-batch-cli:verbose": "pnpm metadata-batch-cli --verbose", - "validate-metadata": "CHANGED_FILES=$(git diff --name-only HEAD) NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/metadata-manager.ts", + "validate-metadata": "CHANGED_FILES=$(git diff --name-only HEAD) pnpm metadata-batch-cli:dry", "validate-pr-metadata": "NODE_NO_WARNINGS=1 node --loader ts-node/esm utils/metadata-manager.ts --pr", "dev": "next dev", "build": "next build", @@ -34,6 +35,7 @@ "clsx": "^2.1.1", "dotenv": "^16.4.7", "escape-string-regexp": "^5.0.0", + "glob": "^11.0.1", "js-yaml": "^4.1.0", "next": "14.2.21", "next-sitemap": "^4.2.3", @@ -50,6 +52,7 @@ "@eth-optimism/core-utils": "^0.13.1", "@eth-optimism/sdk": "^3.1.6", "@types/dotenv": "^8.2.3", + "@types/glob": "^8.1.0", "@types/js-yaml": "^4.0.9", "@types/node": "18.11.10", "cspell": "^8.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c598a364..e317d0226 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,6 +49,9 @@ importers: escape-string-regexp: specifier: ^5.0.0 version: 5.0.0 + glob: + specifier: ^11.0.1 + version: 11.0.1 js-yaml: specifier: ^4.1.0 version: 4.1.0 @@ -60,10 +63,10 @@ importers: version: 4.2.3(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0)) nextra: specifier: 2.13.2 - version: 2.13.2(patch_hash=81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + version: 2.13.2(patch_hash=a4rp2hgojklggjmthmkiyqaek4)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) nextra-theme-docs: specifier: 2.13.2 - version: 2.13.2(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(nextra@2.13.2(patch_hash=81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + version: 2.13.2(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(nextra@2.13.2(patch_hash=a4rp2hgojklggjmthmkiyqaek4)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: specifier: ^18.2.0 version: 18.2.0 @@ -92,6 +95,9 @@ importers: '@types/dotenv': specifier: ^8.2.3 version: 8.2.3 + '@types/glob': + specifier: ^8.1.0 + version: 8.1.0 '@types/js-yaml': specifier: ^4.0.9 version: 4.0.9 @@ -121,7 +127,7 @@ importers: version: 15.0.1 remark-code-import: specifier: ^1.2.0 - version: 1.2.0(patch_hash=f6b78667b2fd0da0247b6e898a35f71bfde2a83adfa62fa6017a02dc7fb5d436) + version: 1.2.0(patch_hash=heylvfasxh3ubj2edns2svea2m) remark-frontmatter: specifier: ^5.0.0 version: 5.0.0 @@ -130,7 +136,7 @@ importers: version: 3.0.1 remark-lint-frontmatter-schema: specifier: ^3.15.4 - version: 3.15.4(patch_hash=32c1574b8fd989888047ea0226d42029f451eb7c875349c28b6259a73cc7e59f) + version: 3.15.4(patch_hash=jaxvkozlhcbn7zjsiti5ocoubi) remark-lint-heading-style: specifier: ^3.1.2 version: 3.1.2 @@ -1010,6 +1016,9 @@ packages: '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + '@types/glob@8.1.0': + resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} + '@types/hast@2.3.7': resolution: {integrity: sha512-EVLigw5zInURhzfXUM65eixfadfsHKomGKUakToXo84t8gGIJuTcD2xooM2See7GyQ7DRtYjhCHnSUQez8JaLw==} @@ -1043,6 +1052,9 @@ packages: '@types/mdx@2.0.9': resolution: {integrity: sha512-OKMdj17y8Cs+k1r0XFyp59ChSOwf8ODGtMQ4mnpfz5eFDk1aO41yN3pSKGuvVzmWAkFp37seubY1tzOVpwfWwg==} + '@types/minimatch@5.1.2': + resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} + '@types/ms@0.7.33': resolution: {integrity: sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==} @@ -1992,6 +2004,11 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true + glob@11.0.1: + resolution: {integrity: sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==} + engines: {node: 20 || >=22} + hasBin: true + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -2372,6 +2389,10 @@ packages: resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} + jackspeak@4.1.0: + resolution: {integrity: sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==} + engines: {node: 20 || >=22} + js-sha3@0.8.0: resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} @@ -2484,6 +2505,10 @@ packages: resolution: {integrity: sha512-B7gr+F6MkqB3uzINHXNctGieGsRTMwIBgxkp0yq/5BwcuDzD4A8wQpHQW6vDAm1uKSLQghmRdD9sKqf2vJ1cEg==} engines: {node: 14 || >=16.14} + lru-cache@11.0.2: + resolution: {integrity: sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==} + engines: {node: 20 || >=22} + lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} @@ -2808,6 +2833,10 @@ packages: minimalistic-crypto-utils@1.0.1: resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -2826,6 +2855,10 @@ packages: resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} @@ -3001,6 +3034,9 @@ packages: resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + param-case@3.0.4: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} @@ -3068,6 +3104,10 @@ packages: resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} engines: {node: '>=16 || 14 >=14.17'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -5043,6 +5083,11 @@ snapshots: '@types/estree@1.0.5': {} + '@types/glob@8.1.0': + dependencies: + '@types/minimatch': 5.1.2 + '@types/node': 18.11.10 + '@types/hast@2.3.7': dependencies: '@types/unist': 2.0.9 @@ -5075,6 +5120,8 @@ snapshots: '@types/mdx@2.0.9': {} + '@types/minimatch@5.1.2': {} + '@types/ms@0.7.33': {} '@types/node@18.11.10': {} @@ -6222,6 +6269,15 @@ snapshots: minipass: 7.0.4 path-scurry: 1.10.1 + glob@11.0.1: + dependencies: + foreground-child: 3.1.1 + jackspeak: 4.1.0 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 2.0.0 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -6631,6 +6687,10 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.1.0: + dependencies: + '@isaacs/cliui': 8.0.2 + js-sha3@0.8.0: {} js-tokens@4.0.0: {} @@ -6722,6 +6782,8 @@ snapshots: lru-cache@10.0.3: {} + lru-cache@11.0.2: {} + lru-cache@4.1.5: dependencies: pseudomap: 1.0.2 @@ -7459,6 +7521,10 @@ snapshots: minimalistic-crypto-utils@1.0.1: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -7475,6 +7541,8 @@ snapshots: minipass@7.0.4: {} + minipass@7.1.2: {} + mri@1.2.0: {} ms@2.1.2: {} @@ -7539,7 +7607,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - nextra-theme-docs@2.13.2(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(nextra@2.13.2(patch_hash=81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0): + nextra-theme-docs@2.13.2(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(nextra@2.13.2(patch_hash=a4rp2hgojklggjmthmkiyqaek4)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: '@headlessui/react': 1.7.17(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@popperjs/core': 2.11.8 @@ -7553,13 +7621,13 @@ snapshots: next: 14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0) next-seo: 6.4.0(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) next-themes: 0.2.1(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - nextra: 2.13.2(patch_hash=81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + nextra: 2.13.2(patch_hash=a4rp2hgojklggjmthmkiyqaek4)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) scroll-into-view-if-needed: 3.1.0 zod: 3.22.4 - nextra@2.13.2(patch_hash=81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0): + nextra@2.13.2(patch_hash=a4rp2hgojklggjmthmkiyqaek4)(next@14.2.21(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: '@headlessui/react': 1.7.17(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mdx-js/mdx': 2.3.0 @@ -7691,6 +7759,8 @@ snapshots: dependencies: p-limit: 4.0.0 + package-json-from-dist@1.0.1: {} + param-case@3.0.4: dependencies: dot-case: 3.0.4 @@ -7772,6 +7842,11 @@ snapshots: lru-cache: 10.0.3 minipass: 7.0.4 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.2 + minipass: 7.1.2 + path-type@4.0.0: {} pathval@1.1.1: {} @@ -7874,7 +7949,7 @@ snapshots: hast-util-raw: 9.0.1 vfile: 6.0.1 - remark-code-import@1.2.0(patch_hash=f6b78667b2fd0da0247b6e898a35f71bfde2a83adfa62fa6017a02dc7fb5d436): + remark-code-import@1.2.0(patch_hash=heylvfasxh3ubj2edns2svea2m): dependencies: strip-indent: 4.0.0 to-gatsby-remark-plugin: 0.1.0 @@ -7947,7 +8022,7 @@ snapshots: unified: 10.1.2 unified-lint-rule: 2.1.2 - remark-lint-frontmatter-schema@3.15.4(patch_hash=32c1574b8fd989888047ea0226d42029f451eb7c875349c28b6259a73cc7e59f): + remark-lint-frontmatter-schema@3.15.4(patch_hash=jaxvkozlhcbn7zjsiti5ocoubi): dependencies: '@apidevtools/json-schema-ref-parser': 11.1.0 ajv: 8.12.0 From 16e768c1bed6cf454adf779044998b3797dcabbc Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 19:05:07 +0100 Subject: [PATCH 03/11] updated lock file --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e317d0226..aaf40e402 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,13 +6,13 @@ settings: patchedDependencies: nextra@2.13.2: - hash: 81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249 + hash: a4rp2hgojklggjmthmkiyqaek4 path: patches/nextra@2.13.2.patch remark-code-import@1.2.0: - hash: f6b78667b2fd0da0247b6e898a35f71bfde2a83adfa62fa6017a02dc7fb5d436 + hash: heylvfasxh3ubj2edns2svea2m path: patches/remark-code-import@1.2.0.patch remark-lint-frontmatter-schema@3.15.4: - hash: 32c1574b8fd989888047ea0226d42029f451eb7c875349c28b6259a73cc7e59f + hash: jaxvkozlhcbn7zjsiti5ocoubi path: patches/remark-lint-frontmatter-schema@3.15.4.patch importers: From fda10d50fd7f87c025b9a4d3b07f4b6517055fd5 Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 19:14:40 +0100 Subject: [PATCH 04/11] updated lockfile --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From 7b16cf7aa798d990a49acbd8645448710c2b273b Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 19:22:07 +0100 Subject: [PATCH 05/11] update netlify build --- netlify.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 From f3ddcdf1bceb42ef7bef4c4889123ce54ac60afd Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 19:27:22 +0100 Subject: [PATCH 06/11] updated the lock --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b7abe94e4..1af8e1d27 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,13 +6,13 @@ settings: patchedDependencies: nextra@2.13.2: - hash: a4rp2hgojklggjmthmkiyqaek4 + hash: 81936321c37741ec218dc19817c4a4939f4655b8371e793561fc236bebccc249 path: patches/nextra@2.13.2.patch remark-code-import@1.2.0: - hash: heylvfasxh3ubj2edns2svea2m + hash: f6b78667b2fd0da0247b6e898a35f71bfde2a83adfa62fa6017a02dc7fb5d436 path: patches/remark-code-import@1.2.0.patch remark-lint-frontmatter-schema@3.15.4: - hash: jaxvkozlhcbn7zjsiti5ocoubi + hash: 32c1574b8fd989888047ea0226d42029f451eb7c875349c28b6259a73cc7e59f path: patches/remark-lint-frontmatter-schema@3.15.4.patch importers: From 0752d5fc34cea59cd37a6d5c1de8bb28a3629177 Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 22:06:18 +0100 Subject: [PATCH 07/11] remove breadcrumbs --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 1befd1760ac7a81063a792237b82b16ede399a98 Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 22:07:47 +0100 Subject: [PATCH 08/11] updated the husky file --- .husky/pre-push | 1 - 1 file changed, 1 deletion(-) diff --git a/.husky/pre-push b/.husky/pre-push index b45405575..23e83823c 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1,3 @@ -#!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" echo "🔍 Running automatic fixes before pushing..." From dbd4b91efbc4f03e9867a6f6c89d5fc403e1969e Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 22:12:02 +0100 Subject: [PATCH 09/11] updated husky --- .husky/pre-push | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index 23e83823c..1efff797f 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,7 +1,6 @@ -. "$(dirname -- "$0")/_/husky.sh" - echo "🔍 Running automatic fixes before pushing..." -pnpm fix +# Use npx to ensure pnpm is found, or use the full path +npx pnpm fix # Check if there are any changes after running fixes if [ -n "$(git status --porcelain)" ]; then From 29d1343798cfce7b034c3cec3c6d2765471f33c7 Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 22:26:20 +0100 Subject: [PATCH 10/11] updated the husky commands to accommodate GH --- .husky/pre-push | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index 1efff797f..d3c058a31 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,6 +1,22 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + echo "🔍 Running automatic fixes before pushing..." -# Use npx to ensure pnpm is found, or use the full path -npx 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 From 9aeefea8ab4de8ce1cfd53f6e0fb0656b319b6ae Mon Sep 17 00:00:00 2001 From: Blessing Krofegha Date: Thu, 6 Mar 2025 22:26:54 +0100 Subject: [PATCH 11/11] updated husky commands --- .husky/pre-push | 3 --- 1 file changed, 3 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index d3c058a31..0739a3de4 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - echo "🔍 Running automatic fixes before pushing..." # Try multiple ways to run pnpm