Commit 334a3eb0 authored by smartcontracts's avatar smartcontracts Committed by GitHub

fix(ct): patch build error (#3432)

Fixes a build error where files were being referenced that were not
included in the NPM build. CI did not catch this because CI operates on
what's in the monorepo, which included the relevant files.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent f78eb056
---
'@eth-optimism/contracts': patch
---
Quick patch to fix a build issue in the contracts package
...@@ -15,6 +15,15 @@ const main = async () => { ...@@ -15,6 +15,15 @@ const main = async () => {
const artifactPaths = glob const artifactPaths = glob
.sync(`${contractArtifactsFolder}/**/*.json`) .sync(`${contractArtifactsFolder}/**/*.json`)
.filter((match) => {
return [
'artifacts/contracts/chugsplash',
'artifacts/contracts/L1',
'artifacts/contracts/L2',
'artifacts/contracts/libraries',
'artifacts/contracts/standards',
].some((folder) => match.includes(folder))
})
.filter((match) => { .filter((match) => {
// Filter out the debug outputs. // Filter out the debug outputs.
return !match.endsWith('.dbg.json') return !match.endsWith('.dbg.json')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment