From 8f7a200e809a9dc6ac8e1beaf3bbf1fd83e5a1fb Mon Sep 17 00:00:00 2001 From: Dan Lee <142251406+dan-aztec@users.noreply.github.com> Date: Wed, 18 Oct 2023 09:04:26 -0700 Subject: [PATCH] fix: prettierignore in boxes (#2902) not sure why the wildcard pattern didn't work in the subpackages locally, but this works. --> modifying top level prettierignore and copying the .prettierignore into the dockerfile for CI --- yarn-project/.prettierignore | 3 ++- yarn-project/boxes/blank-react/.prettierignore | 3 ++- yarn-project/boxes/blank/.prettierignore | 3 ++- yarn-project/boxes/token/.prettierignore | 3 ++- yarn-project/yarn-project-base/Dockerfile.dockerignore | 3 +++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/yarn-project/.prettierignore b/yarn-project/.prettierignore index 8bc7b3dd102..c58f5ea1485 100644 --- a/yarn-project/.prettierignore +++ b/yarn-project/.prettierignore @@ -2,5 +2,6 @@ node_modules/ dest/ noir-contracts/**/*.json -boxes/ +boxes/*/src/artifacts/*.json +boxes/*/src/artifacts/*.ts *.md diff --git a/yarn-project/boxes/blank-react/.prettierignore b/yarn-project/boxes/blank-react/.prettierignore index a99f142a2d2..a72dfe54860 100644 --- a/yarn-project/boxes/blank-react/.prettierignore +++ b/yarn-project/boxes/blank-react/.prettierignore @@ -1 +1,2 @@ -src/artifacts/**/*.{ts,json} \ No newline at end of file +src/artifacts/**/*.json +src/artifacts/**/*.ts \ No newline at end of file diff --git a/yarn-project/boxes/blank/.prettierignore b/yarn-project/boxes/blank/.prettierignore index a99f142a2d2..a72dfe54860 100644 --- a/yarn-project/boxes/blank/.prettierignore +++ b/yarn-project/boxes/blank/.prettierignore @@ -1 +1,2 @@ -src/artifacts/**/*.{ts,json} \ No newline at end of file +src/artifacts/**/*.json +src/artifacts/**/*.ts \ No newline at end of file diff --git a/yarn-project/boxes/token/.prettierignore b/yarn-project/boxes/token/.prettierignore index a99f142a2d2..a72dfe54860 100644 --- a/yarn-project/boxes/token/.prettierignore +++ b/yarn-project/boxes/token/.prettierignore @@ -1 +1,2 @@ -src/artifacts/**/*.{ts,json} \ No newline at end of file +src/artifacts/**/*.json +src/artifacts/**/*.ts \ No newline at end of file diff --git a/yarn-project/yarn-project-base/Dockerfile.dockerignore b/yarn-project/yarn-project-base/Dockerfile.dockerignore index 234cb8b7af9..94371e1cd26 100644 --- a/yarn-project/yarn-project-base/Dockerfile.dockerignore +++ b/yarn-project/yarn-project-base/Dockerfile.dockerignore @@ -33,3 +33,6 @@ boxes/*/* # Unexclude scripts we use in the Dockerfile. !yarn-project-base/scripts !l1-artifacts/scripts + +# Unexclude prettierignore +!.prettierignore \ No newline at end of file