Skip to content

Commit f65c181

Browse files
authored
Fix website build by including required patches (#5121)
* Add patches to build website * making it comment on PR * update website packagejson * restore circle configs
1 parent 633bb4f commit f65c181

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/buildWebsite.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ async function build() {
6363
// Add a public url if provided via arg (for verdaccio prod doc website build since we want a commit hash)
6464
build: `DOCS_ENV=production PARCEL_WORKER_BACKEND=process parcel build 'docs/*/*/docs/*.mdx' 'docs/react-aria-components/docs/*.mdx' 'packages/dev/docs/pages/**/*.mdx' ${publicUrlFlag}`,
6565
postinstall: 'patch-package'
66-
}
66+
},
67+
'@parcel/transformer-css': packageJSON['@parcel/transformer-css']
6768
};
6869

6970
// Add dependencies on each published package to the package.json, and
@@ -124,7 +125,7 @@ async function build() {
124125
}
125126

126127
// Only copy babel and parcel patches over
127-
let patches = fs.readdirSync(path.join(__dirname, '..', 'patches')).filter(name => name.startsWith('@babel') || name.startsWith('@parcel'));
128+
let patches = fs.readdirSync(path.join(__dirname, '..', 'patches')).filter(name => name.startsWith('@babel') || name.startsWith('@parcel') || name.startsWith('@spectrum-css') || name.startsWith('postcss'));
128129
for (let patch of patches) {
129130
fs.copySync(path.join(__dirname, '..', 'patches', patch), path.join(dir, 'patches', patch));
130131
}

0 commit comments

Comments
 (0)