Skip to content

Commit 5933fc5

Browse files
authored
Run gen-assets on build (#7075)
- [x] Uses turborepo monorepo build order to gurantee that icons/tokens/polairs-react is built before generating assets - [x] Unblocks the odd double build behaviour in [site-container-builder to just go back to one build](https://github.com/Shopify/polaris-site-container-builder/blob/048858a84b3c5668a8d52102bf88c843554a4b18/.shopify-build/polaris-site-container-builder-production-builder.yml#L11-L18) The downside is that building the monorepo will be a little bit slower.
1 parent a3a1838 commit 5933fc5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/three-donuts-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris.shopify.com': patch
3+
---
4+
5+
Run gen-assets on build of website

polaris.shopify.com/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.14.0",
44
"private": true,
55
"scripts": {
6-
"build": "next build",
6+
"build": "yarn gen-assets && next build",
77
"dev": "open http://localhost:3000 && next dev",
88
"start": "next start",
99
"lint": "run-p lint:*",

0 commit comments

Comments
 (0)