Skip to content

Commit

Permalink
fix build attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed Dec 17, 2024
1 parent d11e6aa commit 8cd777b
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 66 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
- name: Set IS_TESTING=true
run: |
sed -i 's/IS_TESTING.*/IS_TESTING=true/g' .env
- name: Yarn setup again
run: yarn setup
- name: Fetch networks
run: yarn fetch:networks
- name: Build the extension
Expand Down
201 changes: 135 additions & 66 deletions lavamoat/build-webpack/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"@testing-library/react>@testing-library/dom>@babel/code-frame>@babel/highlight": {
"packages": {
"@testing-library/react>@testing-library/dom>@babel/code-frame>@babel/highlight>@babel/helper-validator-identifier": true,
"@testing-library/react>@testing-library/dom>@babel/code-frame>@babel/highlight>chalk": true,
"jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-validator-identifier": true,
"react>loose-envify>js-tokens": true
}
},
Expand Down Expand Up @@ -536,12 +536,12 @@
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>gensync": true,
"eslint>debug": true,
"file-loader>loader-utils>json5": true,
"jest>@jest/core>@jest/transform>convert-source-map": true,
"jest>@jest/core>jest-snapshot>@babel/generator": true,
"jest>@jest/core>jest-snapshot>@babel/types": true,
"semver": true
}
},
Expand Down Expand Up @@ -614,35 +614,149 @@
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-split-export-declaration": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types>@babel/helper-validator-identifier": true
"jest>@jest/core>jest-snapshot>@babel/types": true,
"jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-validator-identifier": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": {
"builtin": {
"assert": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true
"jest>@jest/core>jest-snapshot>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": {
"packages": {
"jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": true
"jest>@jest/core>jest-snapshot>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-split-export-declaration": {
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true
"jest>@jest/core>jest-snapshot>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse": {
"globals": {
"console.log": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-environment-visitor": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types": true,
"eslint>debug": true,
"lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-function-name": true,
"lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-hoist-variables": true,
"lavamoat>lavamoat-tofu>@babel/traverse>globals": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame": {
"globals": {
"console.warn": true,
"process.emitWarning": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk": true,
"lavamoat>@babel/highlight": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk": {
"globals": {
"process.env.TERM": true,
"process.platform": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>escape-string-regexp": true,
"supports-color": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles": {
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles>color-convert": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles>color-convert": {
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles>color-convert>color-name": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator": {
"globals": {
"console.error": true,
"console.warn": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@babel/types": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping": true,
"jest>@jest/core>jest-snapshot>@babel/generator>@jridgewell/gen-mapping": true,
"jest>@jest/core>jest-snapshot>@babel/generator>jsesc": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@babel/types": {
"globals": {
"console.warn": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@babel/types>@babel/helper-validator-identifier": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types>@babel/helper-string-parser": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping": {
"globals": {
"define": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": true,
"webpack>terser-webpack-plugin>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": {
"globals": {
"Buffer": true,
"TextDecoder": true,
"define": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration": {
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": {
"globals": {
"console.warn": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types": {
"globals": {
"console.warn": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers": {
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true,
"jest>@jest/core>jest-snapshot>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse": {
Expand Down Expand Up @@ -711,8 +825,8 @@
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/generator>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/generator>@babel/types>@babel/helper-validator-identifier": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
Expand Down Expand Up @@ -743,22 +857,11 @@
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types": {
"globals": {
"console.trace": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": {
"packages": {
"@testing-library/react>@testing-library/dom>@babel/code-frame": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/parser": true,
"jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": true
"jest>@jest/core>jest-snapshot>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse": {
Expand All @@ -768,13 +871,13 @@
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/code-frame": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/generator": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-environment-visitor": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/types": true,
"eslint>debug": true,
"lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-environment-visitor": true,
"lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-function-name": true,
"lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-hoist-variables": true,
"lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-split-export-declaration": true,
"lavamoat>lavamoat-tofu>@babel/traverse>globals": true
}
},
Expand Down Expand Up @@ -837,22 +940,6 @@
"define": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration": {
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": {
"globals": {
"console.warn": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/types": {
"globals": {
"console.warn": true,
Expand All @@ -864,17 +951,6 @@
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": {
"globals": {
"console.trace": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types>@babel/helper-string-parser": true,
"eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
}
},
"eslint>@nodelib/fs.walk": {
"builtin": {
"events.EventEmitter": true,
Expand Down Expand Up @@ -1317,20 +1393,9 @@
"console.error": true
},
"packages": {
"jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": true,
"jest>@jest/core>jest-snapshot>@babel/generator>@jridgewell/gen-mapping": true,
"jest>@jest/core>jest-snapshot>@babel/generator>jsesc": true
}
},
"jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": {
"globals": {
"console.trace": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"jest>@jest/core>jest-snapshot>@babel/generator>@babel/types>@babel/helper-string-parser": true,
"jest>@jest/core>jest-snapshot>@babel/generator>@babel/types>@babel/helper-validator-identifier": true,
"lavamoat>lavamoat-core>@babel/types>to-fast-properties": true
"jest>@jest/core>jest-snapshot>@babel/generator>jsesc": true,
"jest>@jest/core>jest-snapshot>@babel/types": true
}
},
"jest>@jest/core>jest-snapshot>@babel/generator>@jridgewell/gen-mapping": {
Expand All @@ -1354,6 +1419,10 @@
}
},
"jest>@jest/core>jest-snapshot>@babel/types": {
"globals": {
"console.trace": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-string-parser": true,
"jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-validator-identifier": true,
Expand Down

0 comments on commit 8cd777b

Please sign in to comment.