mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
d4c71b8683
This PR adds one LavaMoat background script policy or each build type. It also renames the build system policy directory from `node` to `build-system` to make its purpose more clear. Each build type has the original `policy-override.json` for `main` builds. The `.prettierignore` file has been updated to match the locations of the new auto-generated policy files. We need to maintain separate policies for each build type because each type will produce different bundles with different internal and external modules. Co-authored-by: Mark Stacey <markjstacey@gmail.com>
14 lines
397 B
Bash
Executable File
14 lines
397 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
|
|
# Generate LavaMoat policies for the extension background script for each build
|
|
# type.
|
|
# ATTN: This may tax your device when running it locally.
|
|
concurrently --kill-others-on-fail -n main,beta,flask \
|
|
"WRITE_AUTO_POLICY=1 yarn dist" \
|
|
"WRITE_AUTO_POLICY=1 yarn dist --build-type beta" \
|
|
"WRITE_AUTO_POLICY=1 yarn dist --build-type flask"
|