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,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Slice 1</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Layer-1" fill="#282828">
<path d="M39.999981,79.779755 C18.016424,79.779755 0.220211,61.983536 0.220211,39.999981 C0.220211,18.016424 18.016425,0.220211 39.999981,0.220211 C61.983537,0.220211 79.779755,18.016425 79.779755,39.999981 C79.779755,61.983536 61.983536,79.779755 39.999981,79.779755 L39.999981,79.779755 Z M58.947708,24.820858 L22.936554,24.820858 C20.84288,24.820858 19.167944,26.495796 19.167944,28.589466 C19.167944,30.68314 20.84288,32.358074 22.936554,32.358074 L58.947708,32.358074 C61.041382,32.358074 62.716324,30.68314 62.716324,28.589466 C62.716324,26.495796 61.041382,24.820858 58.947708,24.820858 Z M58.947708,38.115677 L22.936554,38.115677 C20.84288,38.115677 19.167944,39.790611 19.167944,41.884285 C19.167944,43.977959 20.84288,45.652897 22.936554,45.652897 L58.947708,45.652897 C61.041382,45.652897 62.716324,43.977959 62.716324,41.884285 C62.716324,39.790611 61.041382,38.115677 58.947708,38.115677 Z M58.947708,51.410492 L22.936554,51.410492 C20.84288,51.410492 19.167944,53.08543 19.167944,55.1791 C19.167944,57.272774 20.84288,58.947708 22.936554,58.947708 L58.947708,58.947708 C61.041382,58.947708 62.716324,57.272774 62.716324,55.1791 C62.716324,53.08543 61.041382,51.410492 58.947708,51.410492 Z" id="svg_1"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB