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,10 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="acute">
<mask id="mask0_183_52" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
<rect id="Bounding box" x="0.5" y="0.231613" width="24" height="24" fill="#D9D9D9" style="fill:#D9D9D9;fill:color(display-p3 0.8510 0.8510 0.8510);fill-opacity:1;"/>
</mask>
<g mask="url(#mask0_183_52)">
<path id="acute_2" d="M15.5 20.2316C13.2667 20.2316 11.375 19.4566 9.825 17.9066C8.275 16.3566 7.5 14.4649 7.5 12.2316C7.5 10.0149 8.275 8.12745 9.825 6.56911C11.375 5.01078 13.2667 4.23161 15.5 4.23161C17.7167 4.23161 19.6042 5.01078 21.1625 6.56911C22.7208 8.12745 23.5 10.0149 23.5 12.2316C23.5 14.4649 22.7208 16.3566 21.1625 17.9066C19.6042 19.4566 17.7167 20.2316 15.5 20.2316ZM15.5 18.2316C17.1667 18.2316 18.5833 17.6483 19.75 16.4816C20.9167 15.3149 21.5 13.8983 21.5 12.2316C21.5 10.5649 20.9167 9.14828 19.75 7.98161C18.5833 6.81495 17.1667 6.23161 15.5 6.23161C13.8333 6.23161 12.4167 6.81495 11.25 7.98161C10.0833 9.14828 9.5 10.5649 9.5 12.2316C9.5 13.8983 10.0833 15.3149 11.25 16.4816C12.4167 17.6483 13.8333 18.2316 15.5 18.2316ZM17.0639 15.24C17.4562 15.6354 18.095 15.6366 18.4889 15.2428C18.8816 14.85 18.8816 14.2132 18.4889 13.8205L16.5 11.8316V9.23161C16.5 8.67933 16.0523 8.23161 15.5 8.23161C14.9477 8.23161 14.5 8.67933 14.5 9.23161V12.6566L17.0639 15.24ZM3.5 9.23161C2.94772 9.23161 2.5 8.7839 2.5 8.23161C2.5 7.67933 2.94772 7.23161 3.5 7.23161H5.5C6.05228 7.23161 6.5 7.67933 6.5 8.23161C6.5 8.7839 6.05228 9.23161 5.5 9.23161H3.5ZM2.5 13.2316C1.94772 13.2316 1.5 12.7839 1.5 12.2316C1.5 11.6793 1.94772 11.2316 2.5 11.2316H5.5C6.05228 11.2316 6.5 11.6793 6.5 12.2316C6.5 12.7839 6.05228 13.2316 5.5 13.2316H2.5ZM3.5 17.2316C2.94772 17.2316 2.5 16.7839 2.5 16.2316C2.5 15.6793 2.94772 15.2316 3.5 15.2316H5.5C6.05228 15.2316 6.5 15.6793 6.5 16.2316C6.5 16.7839 6.05228 17.2316 5.5 17.2316H3.5Z" fill="#B43837" style="fill:#B43837;fill:color(display-p3 0.7059 0.2196 0.2157);fill-opacity:1;"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB