Merged in monorepo-step-1 (pull request #1080)

Migrate to a monorepo setup - step 1

* Move web to subfolder /apps/scandic-web

* Yarn + transitive deps

- Move to yarn
- design-system package removed for now since yarn doesn't
support the parameter for token (ie project currently broken)
- Add missing transitive dependencies as Yarn otherwise
prevents these imports
- VS Code doesn't pick up TS path aliases unless you open
/apps/scandic-web instead of root (will be fixed with monorepo)

* Pin framer-motion to temporarily fix typing issue

https://github.com/adobe/react-spectrum/issues/7494

* Pin zod to avoid typ error

There seems to have been a breaking change in the types
returned by zod where error is now returned as undefined
instead of missing in the type. We should just handle this
but to avoid merge conflicts just pin the dependency for
now.

* Pin react-intl version

Pin version of react-intl to avoid tiny type issue where formatMessage
does not accept a generic any more. This will be fixed in a future
commit, but to avoid merge conflicts just pin for now.

* Pin typescript version

Temporarily pin version as newer versions as stricter and results in
a type error. Will be fixed in future commit after merge.

* Setup workspaces

* Add design-system as a monorepo package

* Remove unused env var DESIGN_SYSTEM_ACCESS_TOKEN

* Fix husky for monorepo setup

* Update netlify.toml

* Add lint script to root package.json

* Add stub readme

* Fix react-intl formatMessage types

* Test netlify.toml in root

* Remove root toml

* Update netlify.toml publish path

* Remove package-lock.json

* Update build for branch/preview builds


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-02-26 10:36:17 +00:00
committed by Linus Flood
parent 667cab6fb6
commit 80100e7631
2731 changed files with 30986 additions and 23708 deletions

View File

@@ -0,0 +1,7 @@
<svg width="60" height="40" viewBox="0 0 60 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="59" height="39" rx="1.5" fill="white" stroke="#E9E8E7"/>
<path d="M26.6397 27.4333H22.645L25.1436 13.4326H29.138L26.6397 27.4333Z" fill="#15195A"/>
<path d="M41.1205 13.7748C40.3326 13.4915 39.0829 13.1787 37.5376 13.1787C33.5928 13.1787 30.8149 15.0851 30.7979 17.8106C30.7651 19.8215 32.7868 20.9385 34.2988 21.609C35.8443 22.2941 36.3696 22.7413 36.3696 23.352C36.3539 24.29 35.1208 24.7223 33.9707 24.7223C32.3759 24.7223 31.5213 24.4994 30.2227 23.9776L29.6967 23.7539L29.1377 26.8967C30.0746 27.2835 31.8007 27.6268 33.5928 27.6419C37.7843 27.6419 40.513 25.765 40.5454 22.8605C40.5613 21.2667 39.4938 20.0454 37.1923 19.0475C35.7951 18.4069 34.9395 17.975 34.9395 17.3195C34.9559 16.7236 35.6632 16.1133 37.2403 16.1133C38.539 16.0834 39.4931 16.3663 40.216 16.6494L40.5773 16.7981L41.1205 13.7748V13.7748V13.7748Z" fill="#15195A"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M48.2709 13.4326H51.3608L54.5834 27.4331H50.8848C50.8848 27.4331 50.5228 25.8245 50.4081 25.3329H45.2793C45.131 25.7051 44.441 27.4331 44.441 27.4331H40.2495L46.183 14.5943C46.5941 13.6856 47.3181 13.4326 48.2709 13.4326ZM48.0248 18.5561C48.0248 18.5561 46.7589 21.669 46.43 22.4734H49.7503C49.586 21.7734 48.8295 18.4221 48.8295 18.4221L48.5504 17.2157C48.4328 17.5263 48.2628 17.9534 48.1481 18.2415C48.0704 18.4368 48.0181 18.5682 48.0248 18.5561Z" fill="#15195A"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.33675 13.4326H11.7637C12.6349 13.4621 13.3418 13.7153 13.5718 14.6095L14.9684 21.0416C14.9686 21.0422 14.9688 21.0429 14.969 21.0435L15.3965 22.9798L19.3086 13.4326H23.5326L17.2537 27.4185H13.0295L9.46904 15.2531C8.24058 14.6023 6.83855 14.0788 5.271 13.7155L5.33675 13.4326Z" fill="#15195A"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB