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,11 @@
<svg width="48" height="32" viewBox="0 0 48 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_5382_46853)">
<path d="M46.4 0H1.6C0.716344 0 0 0.716344 0 1.6V30.4C0 31.2837 0.716344 32 1.6 32H46.4C47.2837 32 48 31.2837 48 30.4V1.6C48 0.716344 47.2837 0 46.4 0Z" fill="#FEB3C7"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.9263 19.812H15.6224V12.0444H13.9263V19.812ZM24.6661 15.3204V14.6257H24.6448L23.1645 14.6254L23.0814 14.6257V19.812H24.6855V17.094C24.6855 16.3053 25.5972 15.9594 26.2229 16.1342C26.229 16.136 26.2353 16.1349 26.2418 16.1349V14.6258C25.585 14.6258 24.9813 14.9043 24.6661 15.3204ZM19.21 18.6108C18.3791 18.6108 17.7056 17.9876 17.7056 17.2188C17.7056 16.45 18.3791 15.8268 19.21 15.8268C20.0408 15.8268 20.7144 16.45 20.7144 17.2188C20.7144 17.9876 20.0408 18.6108 19.21 18.6108ZM20.6993 14.985C20.2417 14.6686 19.6831 14.482 19.0797 14.482C17.5306 14.482 16.2748 15.7074 16.2748 17.2188C16.2748 18.7302 17.5306 19.9556 19.0797 19.9556C19.6831 19.9556 20.2417 19.769 20.6993 19.4527V19.812H22.0848V14.6257H20.6993V14.985ZM30.2081 14.486C29.5722 14.486 28.9706 14.6785 28.5684 15.2098V14.6257H28.5471L27.0668 14.6254L26.9837 14.6257V19.812H28.5877V16.9752C28.5877 16.1865 29.1299 15.8003 29.7826 15.8003C30.482 15.8003 30.8841 16.208 30.8841 16.9644V19.812H32.4737V16.5138C32.4737 15.3066 31.4901 14.486 30.2081 14.486ZM40.5357 17.9723C39.984 17.9723 39.5368 18.4087 39.5368 18.9471C39.5368 19.4853 39.984 19.9217 40.5357 19.9217C41.0873 19.9217 41.5349 19.4853 41.5349 18.9471C41.5349 18.4087 41.0873 17.9723 40.5357 17.9723ZM35.9713 18.6108C35.1403 18.6108 34.4669 17.9876 34.4669 17.2188C34.4669 16.45 35.1403 15.8268 35.9713 15.8268C36.8021 15.8268 37.4755 16.45 37.4755 17.2188C37.4755 17.9876 36.8021 18.6108 35.9713 18.6108ZM37.4606 14.985C37.003 14.6686 36.4444 14.482 35.8409 14.482C34.2918 14.482 33.036 15.7074 33.036 17.2188C33.036 18.7302 34.2918 19.9556 35.8409 19.9556C36.4444 19.9556 37.003 19.769 37.4606 19.4527V19.812H38.8459V14.6257H37.4606V14.985ZM39.8533 14.7203H39.9306C39.9791 14.7203 39.9998 14.7434 39.9998 14.7786C39.9998 14.8138 39.9863 14.84 39.9306 14.84H39.8533V14.7203ZM39.8545 14.9034H39.9316L39.9967 15.0482H40.0741L40.0017 14.8912C40.0481 14.8712 40.0717 14.8319 40.0717 14.7786C40.0717 14.7051 40.0141 14.6559 39.9306 14.6559H39.7832V15.0472H39.8545V14.9034ZM6.46533 19.812H8.23325V12.0444H6.46533V19.812ZM12.7708 12.0451H11.0543C11.0193 13.7986 9.98109 15.3123 8.47597 16.0614L11.1134 19.812H13.267L10.8696 16.4004C12.0667 15.2546 12.7466 13.7101 12.7708 12.0451ZM39.9131 14.5573C40.0813 14.5573 40.2173 14.6922 40.2173 14.8581C40.2173 15.024 40.0813 15.1588 39.9131 15.1588C39.7452 15.1588 39.609 15.024 39.609 14.8581C39.609 14.6922 39.7452 14.5573 39.9131 14.5573ZM39.9131 15.2302C40.1213 15.2302 40.2905 15.0632 40.2905 14.8581C40.2905 14.6529 40.1213 14.486 39.9131 14.486C39.7048 14.486 39.5368 14.6529 39.5368 14.8581C39.5368 15.0632 39.7048 15.2302 39.9131 15.2302Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_5382_46853">
<rect width="48" height="32" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB