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,16 @@
<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_46858)">
<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="url(#paint0_linear_5382_46858)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M26.16 25.9335C31.6086 25.9594 36.5818 21.505 36.5818 16.086C36.5818 10.16 31.6086 6.06396 26.16 6.06592H21.4708C15.9569 6.06396 11.4185 10.1613 11.4185 16.086C11.4185 21.5062 15.9569 25.9595 21.4708 25.9335H26.16Z" fill="#3477B9"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.474 6.86084C16.4355 6.8624 12.3527 10.9325 12.3516 15.9558C12.3527 20.9782 16.4355 25.0479 21.474 25.0495C26.5136 25.0479 30.5972 20.9782 30.598 15.9558C30.5972 10.9325 26.5136 6.8624 21.474 6.86084ZM15.6915 15.9558C15.6963 13.5011 17.2345 11.4079 19.4037 10.5761V21.3342C17.2345 20.5028 15.6962 18.4108 15.6915 15.9558ZM23.5435 21.3366V10.5758C25.7134 11.4056 27.2541 13.4999 27.258 15.9558C27.2541 18.4124 25.7134 20.5052 23.5435 21.3366Z" fill="white"/>
</g>
<defs>
<linearGradient id="paint0_linear_5382_46858" x1="8.9407e-07" y1="8.4" x2="48" y2="21.6" gradientUnits="userSpaceOnUse">
<stop stop-color="#3479C0"/>
<stop offset="1" stop-color="#133362"/>
</linearGradient>
<clipPath id="clip0_5382_46858">
<rect width="48" height="32" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB