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,5 @@
<svg width="41" height="82" viewBox="0 0 41 82" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M-1.52588e-05 81C22.0914 81 40 63.0914 40 41C40 18.9086 22.0914 0.999991 -6.35572e-07 0.999989L-1.52588e-05 81Z" fill="white"/>
<path d="M24 41L24.7071 41.7071L25.4142 41L24.7071 40.2929L24 41ZM11.2929 52.2929C10.9024 52.6834 10.9024 53.3166 11.2929 53.7071C11.6834 54.0976 12.3166 54.0976 12.7071 53.7071L11.2929 52.2929ZM12.7071 28.2929C12.3166 27.9024 11.6834 27.9024 11.2929 28.2929C10.9024 28.6834 10.9024 29.3166 11.2929 29.7071L12.7071 28.2929ZM23.2929 40.2929L11.2929 52.2929L12.7071 53.7071L24.7071 41.7071L23.2929 40.2929ZM11.2929 29.7071L23.2929 41.7071L24.7071 40.2929L12.7071 28.2929L11.2929 29.7071Z" fill="#757575"/>
<path d="M-3.49691e-06 81C22.0914 81 40 63.0914 40 41C40 18.9086 22.0914 0.999999 0 0.999998" stroke="#757575" stroke-width="2"/>
</svg>

After

Width:  |  Height:  |  Size: 914 B