diff --git a/yarn-project/circuits.js/package.json b/yarn-project/circuits.js/package.json index 58628aaf169..1dba13567b9 100644 --- a/yarn-project/circuits.js/package.json +++ b/yarn-project/circuits.js/package.json @@ -71,6 +71,7 @@ "files": [ "dest", "src", + "resources", "!*.test.*" ], "types": "./dest/index.d.ts", diff --git a/yarn-project/yarn-project-base/scripts/update_package_jsons.mjs b/yarn-project/yarn-project-base/scripts/update_package_jsons.mjs index 49fe7337565..7f59317c058 100644 --- a/yarn-project/yarn-project-base/scripts/update_package_jsons.mjs +++ b/yarn-project/yarn-project-base/scripts/update_package_jsons.mjs @@ -30,6 +30,10 @@ function getUpdatedValue(source, target, key) { const value = source[key]; if (typeof value === 'object' && !Array.isArray(value)) { return { ...target[key], ...value }; + // merge required files if a project requires more than what's in common + } else if (key === 'files') { + const res = [...target[key], ...value]; + return Array.from(new Set(res)); } else { return value; }