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,6 @@
<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="M35.4932 28.9765H24.7852V10.5122H35.4932V28.9765Z" fill="#6C6BBD"/>
<path d="M25.4712 19.743C25.4712 15.9974 27.299 12.661 30.1453 10.5108C28.0639 8.93855 25.437 8.0001 22.5821 8.0001C15.8234 8.0001 10.3447 13.2575 10.3447 19.743C10.3447 26.2285 15.8234 31.4858 22.5821 31.4858C25.437 31.4858 28.0639 30.5474 30.1453 28.9751C27.299 26.825 25.4712 23.4885 25.4712 19.743" fill="#EB001B"/>
<path d="M49.9351 19.743C49.9351 26.2285 44.4565 31.4858 37.6978 31.4858C34.8429 31.4858 32.216 30.5474 30.1338 28.9751C32.9809 26.825 34.8087 23.4885 34.8087 19.743C34.8087 15.9974 32.9809 12.661 30.1338 10.5108C32.216 8.93855 34.8429 8.0001 37.6978 8.0001C44.4565 8.0001 49.9351 13.2575 49.9351 19.743" fill="#0099DF"/>
</svg>

After

Width:  |  Height:  |  Size: 908 B