Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix cyclic dependencies #1951

Merged
merged 37 commits into from
Nov 7, 2024
Merged

Conversation

ChristianBusshoff
Copy link
Contributor

@ChristianBusshoff ChristianBusshoff commented Oct 11, 2024

  • moved @sit-onyx/storybook-utils and @sit-onyx/eslint-plugin from root to the repos where they are directly used
  • chore(storybook-utils): Renamed internal index.css, which is already exported as styles.css to have the same name internally
  • chore(storybook-utils): Removed sit-onyx dependency:
    • Load colors from DOM using getComputedStyle(el).getPropertyValue(property)
    • Removed brand defaults for createTheme to keep users from using our brand details
    • Moved ONYX_BREAKPOINTS constant and OnyxBreakpoint type to @sit-onyx/shared
      • @sit-onyx/shared is now published as we have direct build and runtime dependencies to it
      • turbo configuration has been updated, so that it builds shared beforehand
  • updated turbo to determine dependencies itself
    • duplicated peerDependencies from the workspace into devDependencies as turbo will not consider them otherwise (See also: vercel/turborepo@1eb3333)
  • updated and added override for sass-embedded to fix incompatible vite plugin types (different version usages of sass-embedded will result in dedicated vite dependencies and therefore inequal types)

@ChristianBusshoff ChristianBusshoff requested a review from a team as a code owner October 11, 2024 06:53
Copy link

changeset-bot bot commented Oct 11, 2024

🦋 Changeset detected

Latest commit: 5468797

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sit-onyx/storybook-utils Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ChristianBusshoff ChristianBusshoff changed the title fix (cyclic dependencies): remove cyclic dependencies #1713 fix (cyclic dependencies): remove cyclic dependencies Oct 11, 2024
@JoCa96 JoCa96 self-assigned this Oct 14, 2024
ChristianBusshoff and others added 23 commits October 27, 2024 11:50
…` now expects a new first parameter which requires brand details to be set
@JoCa96 JoCa96 removed their assignment Nov 5, 2024
@JoCa96 JoCa96 changed the title fix (cyclic dependencies): remove cyclic dependencies chore: fix cyclic dependencies Nov 5, 2024
packages/shared/tsconfig.json Outdated Show resolved Hide resolved
packages/sit-onyx/package.json Show resolved Hide resolved
packages/shared/src/index.ts Outdated Show resolved Hide resolved
packages/icons/package.json Show resolved Hide resolved
packages/shared/src/breakpoints.ts Outdated Show resolved Hide resolved
packages/storybook-utils/src/theme.ts Show resolved Hide resolved
packages/storybook-utils/package.json Show resolved Hide resolved
packages/storybook-utils/src/theme.ts Outdated Show resolved Hide resolved
packages/vitepress-theme/package.json Show resolved Hide resolved
turbo.json Outdated Show resolved Hide resolved
@larsrickert larsrickert self-assigned this Nov 6, 2024
packages/sit-onyx/src/index.ts Outdated Show resolved Hide resolved
packages/sit-onyx/src/styles/grid.ct.tsx Show resolved Hide resolved
packages/storybook-utils/src/style.css Outdated Show resolved Hide resolved
@JoCa96 JoCa96 force-pushed the feat/1713-removal-of-cyclic-dependencies branch from 16a59b5 to 0c16c24 Compare November 7, 2024 09:12
@JoCa96 JoCa96 enabled auto-merge (squash) November 7, 2024 09:25
@JoCa96 JoCa96 merged commit 7332525 into main Nov 7, 2024
19 checks passed
@JoCa96 JoCa96 deleted the feat/1713-removal-of-cyclic-dependencies branch November 7, 2024 09:44
larsrickert added a commit that referenced this pull request Nov 8, 2024
Relates to #1951 

Currently our dev scripts (e.g. of `sit-onyx`) do not work in a clean
repository. The issue is that `sit-onyx` depends on other packages (like
icons) to be build first.

I aligned all `dev` scripts for all packages to be run with turborepo so
all dependencies are managed/build correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants