From 40f5d7e4e38839996cd1f062b11ed3c04c407a3b Mon Sep 17 00:00:00 2001 From: Alec Date: Wed, 20 Dec 2023 19:55:17 -0500 Subject: [PATCH] split feature packages and fix types --- {packages => apps}/commonality/.eslintrc.cjs | 0 {packages => apps}/commonality/CHANGELOG.md | 0 {packages => apps}/commonality/README.md | 0 {packages => apps}/commonality/bin.js | 0 .../commonality/commonality.json | 0 {packages => apps}/commonality/package.json | 11 +- {packages => apps}/commonality/src/cli/cli.ts | 2 +- .../src/cli/commands/check.test.ts | 2 +- .../commonality/src/cli/commands/check.ts | 2 +- .../src/cli/commands/constrain.test.ts | 0 .../commonality/src/cli/commands/constrain.ts | 2 +- .../commonality/src/cli/commands/studio.ts | 0 .../commonality/src/cli/utils/logger.ts | 0 .../utils/validate-project-structure.test.ts | 0 .../cli/utils/validate-project-structure.ts | 0 .../commonality/src/define-config.ts | 0 apps/commonality/src/index.ts | 9 + .../test/fixtures/empty-project/package.json | 0 .../fixtures/empty-project/pnpm-lock.yaml | 0 .../invalid-root-package/package.json | 0 .../invalid-root-package/pnpm-lock.yaml | 0 .../kitchen-sink-npm/package-lock.json | 0 .../fixtures/kitchen-sink-npm/package.json | 0 .../packages/pkg-one/package.json | 0 .../fixtures/kitchen-sink-yarn/package.json | 0 .../packages/pkg-one/package.json | 0 .../test/fixtures/kitchen-sink-yarn/yarn.lock | 0 .../test/fixtures/kitchen-sink/package.json | 0 .../packages/pkg-one/package.json | 0 .../test/fixtures/kitchen-sink/pnpm-lock.yaml | 0 .../fixtures/kitchen-sink/pnpm-workspace.yaml | 0 .../fixtures/missing-lockfile/package.json | 0 .../missing-root-package/pnpm-lock.yaml | 0 .../.commonality/config.json | 0 .../fixtures/with-configuration/package.json | 0 .../with-configuration/pnpm-lock.yaml | 0 .../test/integration/smoke.test.ts | 0 .../test/integration/studio.test.ts | 0 .../commonality/test/tsconfig.json | 0 {packages => apps}/commonality/tsconfig.json | 0 .../commonality/tsup.config.cli.ts | 0 .../commonality/tsup.config.utilities.ts | 4 +- .../commonality/vite.integration.config.ts | 0 .../commonality/vitest.config.ts | 0 apps/studio/next.config.js | 3 +- apps/studio/package.json | 7 +- .../studio/src/app/(graph)/@chart/loading.tsx | 2 +- .../src/app/(graph)/@chart/studio-chart.tsx | 2 +- apps/studio/src/app/(graph)/@chart/worker.ts | 2 +- .../app/(graph)/@sidebar/studio-sidebar.tsx | 2 +- apps/studio/src/app/(graph)/layout.tsx | 3 +- .../src/app/(graph)/studio-graph-header.tsx | 2 +- .../src/app/(graph)/studio-graph-overlays.tsx | 2 +- .../app/(packages)/packages/get-table-data.ts | 4 +- .../src/app/(packages)/packages/page.tsx | 4 +- .../packages/studio-packages-table.test.tsx | 2 +- .../packages/studio-packages-table.tsx | 2 +- apps/studio/src/data/conformance.ts | 2 +- apps/studio/src/data/constraints.ts | 2 +- apps/studio/tailwind.config.cjs | 4 +- apps/workshop/package.json | 4 +- .../conformance-results.stories.tsx | 2 +- .../constraint-results.stories.tsx | 2 +- .../feature-graph-toolbar.stories.tsx | 2 +- .../feature-graph/feature-graph-worker.ts | 2 +- .../feature-graph/feature-graph.stories.tsx | 4 +- .../stories/ui-graph/graph-chart.stories.tsx | 2 +- .../src/stories/ui-graph/sidebar.stories.tsx | 2 +- .../ui-graph/tooltip-dependency.stories.tsx | 2 +- .../ui-graph/tooltip-package.stories.tsx | 2 +- .../ui-package/packages-table.stories.tsx | 2 +- apps/workshop/tailwind.config.js | 2 +- commonality.config.ts | 12 +- .../commonality-recommended/.eslintrc.cjs | 0 .../commonality-recommended/CHANGELOG.md | 0 .../commonality-recommended/README.md | 0 .../commonality-recommended/commonality.json | 0 .../commonality-recommended/package.json | 4 +- .../src/dev-peer-dependency-range.ts | 0 .../src/ensure-codeowner.ts | 0 .../src/ensure-readme.ts | 0 .../commonality-recommended/src/index.ts | 0 .../src/multiple-dependency-types.ts | 0 .../src/no-external-mismatch.ts | 0 .../src/respository-field.ts | 0 .../src/sorted-dependencies.ts | 0 .../src/utils/get-external-version-map.ts | 0 .../src/valid-package-name.ts | 0 .../test/dev-peer-dependency-range.test.ts | 0 .../test/ensure-codeowner.test.ts | 0 .../test/ensure-readme.test.ts | 0 .../test/multiple-dependency-types.test.ts | 0 .../test/no-external-mismatch.test.ts | 0 .../test/repository-field.test.ts | 0 .../test/sorted-dependencies.test.ts | 0 .../utils/get-external-version-map.test.ts | 0 .../test/valid-package-name.test.ts | 0 .../commonality-recommended/tsconfig.json | 0 .../commonality-recommended/vitest.config.ts | 0 packages/commonality/src/index.ts | 9 - .../data-conformance}/.eslintrc.cjs | 0 .../conformance/data-conformance/README.md | 9 + .../data-conformance}/commonality.json | 0 .../conformance/data-conformance/package.json | 61 + .../data-conformance/src}/file.test.ts | 0 .../data-conformance/src}/file.ts | 0 .../conformance/data-conformance/src/index.ts | 2 + .../data-conformance/src}/json.test.ts | 0 .../data-conformance/src}/json.ts | 0 .../data-conformance/src}/text.test.ts | 0 .../data-conformance/src}/text.ts | 0 .../data-conformance}/tsconfig.json | 0 .../data-conformance}/vitest.config.ts | 0 .../ui-conformance}/.eslintrc.cjs | 0 packages/conformance/ui-conformance/README.md | 9 + .../ui-conformance}/commonality.json | 0 .../conformance/ui-conformance/package.json | 62 + .../src}/conformance-header.tsx | 2 +- .../src}/conformance-results-list.tsx | 6 +- .../ui-conformance/src}/index.ts | 0 .../src}/packages-table.test.tsx | 0 .../ui-conformance/src}/packages-table.tsx | 6 +- .../ui-conformance}/tsconfig.json | 3 +- .../ui-conformance/vitest.config.ts | 3 + .../utils-conformance}/.eslintrc.cjs | 0 .../conformance/utils-conformance/README.md | 9 + .../utils-conformance/commonality.json | 1 + .../utils-conformance}/package.json | 23 +- .../src}/create-test-check.ts | 0 .../utils-conformance/src}/define-check.ts | 0 .../utils-conformance/src}/diff.test.ts | 0 .../utils-conformance/src}/diff.ts | 0 .../src}/get-conformance-results.test.ts | 0 .../src}/get-conformance-results.ts | 0 .../src}/get-status-for-results.ts | 2 +- .../utils-conformance/src}/index.ts | 2 - .../utils-conformance/src}/run-fixes.test.ts | 2 +- .../utils-conformance/src}/run-fixes.ts | 0 .../utils-conformance/tsconfig.json | 8 + .../utils-conformance/vitest.config.ts | 3 + .../data-constraints}/.eslintrc.cjs | 0 .../constraints/data-constraints/README.md | 7 + .../data-constraints/commonality.json | 1 + .../data-constraints}/package.json | 29 +- .../src}/get-constraint-results.test.ts | 2 +- .../src}/get-constraint-results.ts | 0 .../data-constraints/src}/index.ts | 0 .../data-constraints/tsconfig.json | 8 + .../data-constraints/vitest.config.ts | 3 + .../state-constraints}/.eslintignore | 0 .../state-constraints}/.eslintrc.cjs | 0 .../constraints/state-constraints/README.md | 9 + .../state-constraints/commonality.json | 1 + .../state-constraints/package.json | 76 ++ .../state-constraints/src}/graph-machine.ts | 4 +- .../src}/graph-machine.typegen.ts | 0 .../state-constraints/src}/index.ts | 0 .../state-constraints/tsconfig.json | 8 + .../state-constraints/vitest.config.ts | 3 + .../ui-constraints}/.eslintrc.cjs | 0 packages/constraints/ui-constraints/README.md | 9 + .../ui-constraints/commonality.json | 1 + .../constraints/ui-constraints/package.json | 77 ++ .../src}/constraint-results.tsx | 0 .../src}/feature-graph-chart.tsx | 2 +- .../src}/feature-graph-dependency-tooltip.tsx | 0 .../src}/feature-graph-header.tsx | 0 .../src}/feature-graph-package-tooltip.tsx | 0 .../src}/feature-graph-sidebar.tsx | 0 .../src}/feature-graph-toolbar.tsx | 0 .../src}/graph-chart-loading.tsx | 0 .../ui-constraints/src}/graph-chart.tsx | 0 .../ui-constraints/src}/graph-header.tsx | 0 .../ui-constraints/src}/graph-layout.tsx | 0 .../ui-constraints/src}/graph-provider.tsx | 2 +- .../ui-constraints/src}/graph-toolbar.tsx | 0 .../ui-constraints/src}/graph-tooltip.tsx | 0 .../ui-constraints/src}/index.ts | 0 .../src}/packages-filter-section.tsx | 0 .../ui-constraints/src}/sidebar.test.tsx | 0 .../ui-constraints/src}/sidebar.tsx | 0 .../src}/tooltip-dependency.tsx | 0 .../ui-constraints/src}/tooltip-package.tsx | 0 .../constraints/ui-constraints/tsconfig.json | 8 + .../ui-constraints/vitest.config.ts | 3 + .../utils-constraints}/.eslintrc.cjs | 0 .../constraints/utils-constraints/README.md | 9 + .../utils-constraints/commonality.json | 1 + .../utils-constraints/package.json | 75 ++ .../utils-constraints/src}/actions.test.ts | 0 .../utils-constraints/src}/actions.ts | 0 .../src}/bind-render-graph-events.ts | 0 .../src}/create-render-graph.ts | 0 .../src}/create-traversal-graph.ts | 0 .../utils-constraints/src}/create-worker.ts | 0 ...element-definitions-with-updated-layout.ts | 0 .../src}/get-element-definitions.ts | 0 .../src}/images/next-logo.svg | 0 .../src}/images/node-logo.svg | 0 .../src}/images/react-logo.svg | 0 .../src}/images/storybook-logo.svg | 0 .../utils-constraints/src}/index.ts | 0 .../utils-constraints/src}/layout-options.ts | 0 .../utils-constraints/src}/query-keys.ts | 0 .../utils-constraints/src}/styles/edge.ts | 0 .../utils-constraints/src}/styles/node.ts | 0 .../src}/update-graph-elements.ts | 0 .../utils-constraints/tsconfig.json | 8 + .../utils-constraints/vitest.config.ts | 3 + packages/feature-conformance/CHANGELOG.md | 21 - packages/feature-conformance/README.md | 9 - packages/feature-conformance/src/index.ts | 11 - packages/feature-constraints/CHANGELOG.md | 11 - packages/feature-constraints/README.md | 9 - packages/feature-constraints/src/index.ts | 5 - packages/feature-constraints/test/setup.ts | 6 - packages/feature-constraints/vitest.config.ts | 5 - .../data-codeowners}/.eslintrc.cjs | 0 .../{ => shared}/data-codeowners/CHANGELOG.md | 0 .../{ => shared}/data-codeowners/README.md | 0 .../data-codeowners/commonality.json | 0 .../{ => shared}/data-codeowners/package.json | 4 +- .../src/core/get-codeowners.ts | 0 .../data-codeowners/src/core/get-is-email.ts | 0 .../data-codeowners/src/core/get-is-team.ts | 0 .../src/core/get-owners-for-path.ts | 0 .../src/get-codeowners-data.ts | 0 .../{ => shared}/data-codeowners/src/index.ts | 0 .../src/utils/find-first-existing-file.ts | 0 .../test/find-first-existing-file.test.ts | 0 .../github-example/.commonality/config.json | 0 .../github-example/.github/CODEOWNERS | 0 .../test/fixtures/github-example/package.json | 0 .../fixtures/github-example/pnpm-lock.yaml | 0 .../github-example/pnpm-workspace.yaml | 0 .../missing-file/.commonality/config.json | 0 .../test/fixtures/missing-file/package.json | 0 .../test/fixtures/missing-file/pnpm-lock.yaml | 0 .../fixtures/missing-file/pnpm-workspace.yaml | 0 .../test/fixtures/simple/.github/CODEOWNERS | 0 .../fixtures/simple/app/app-one/package.json | 0 .../simple/packages/pkg-one/package.json | 0 .../test/get-codeowners.test.ts | 0 .../data-codeowners/test/get-is-email.test.ts | 0 .../test/get-owners-for-path.test.ts | 0 .../data-codeowners/tsconfig.json | 0 .../data-codeowners/vitest.config.ts | 0 .../data-packages}/.eslintrc.cjs | 0 .../{ => shared}/data-packages/CHANGELOG.md | 0 packages/{ => shared}/data-packages/README.md | 0 .../data-packages/commonality.json | 0 .../{ => shared}/data-packages/package.json | 4 +- .../data-packages/src/get-dependencies.ts | 0 .../data-packages/src/get-package.ts | 0 .../data-packages/src/get-packages.ts | 0 .../src/get-root-package-name.ts | 0 .../{ => shared}/data-packages/src/index.ts | 0 .../test/fixtures/kitchen-sink/package.json | 0 .../packages/pkg-one/package.json | 0 .../packages/pkg-two/package.json | 0 .../test/fixtures/kitchen-sink/pnpm-lock.yaml | 0 .../packages/pkg-one/package.json | 0 .../fixtures/missing-json-root/pnpm-lock.yaml | 0 .../test/fixtures/missing-json/package.json | 0 .../test/fixtures/missing-json/pnpm-lock.yaml | 0 .../fixtures/missing-lockfile/package.json | 0 .../packages/pkg-one/package.json | 0 .../fixtures/missing-name-root/package.json | 0 .../packages/pkg-one/package.json | 0 .../fixtures/missing-name-root/pnpm-lock.yaml | 0 .../test/fixtures/missing-name/package.json | 0 .../packages/pkg-one/package.json | 0 .../test/fixtures/missing-name/pnpm-lock.yaml | 0 .../fixtures/single-package-repo/package.json | 0 .../single-package-repo/pnpm-lock.yaml | 0 .../test/get-dependencies.test.ts | 0 .../data-packages/test/get-package.test.ts | 0 .../data-packages/test/get-packages.test.ts | 0 .../test/get-root-package-name.test.ts | 0 .../{ => shared}/data-packages/tsconfig.json | 0 .../data-packages/vitest.config.ts | 0 .../data-project}/.eslintrc.cjs | 0 .../{ => shared}/data-project/CHANGELOG.md | 0 packages/{ => shared}/data-project/README.md | 0 .../data-project/commonality.json | 0 .../{ => shared}/data-project/package.json | 4 +- .../src/get-package-directories.ts | 0 .../data-project/src/get-package-manager.ts | 0 .../data-project/src/get-project-config.ts | 2 +- .../data-project/src/get-root-directory.ts | 0 .../data-project/src/get-workspace-globs.ts | 0 .../{ => shared}/data-project/src/index.ts | 0 .../ignored-packages/pkg-three/package.json | 0 .../test/fixtures/deeply-nested/package.json | 0 .../packages/nested/pkg-two/package.json | 0 .../packages/pkg-one/package.json | 0 .../fixtures/deeply-nested/pnpm-lock.yaml | 0 .../deeply-nested/pnpm-workspace.yaml | 0 .../commonality.config.ts | 0 .../missing-workspace-globs/package.json | 0 .../missing-workspace-globs/pnpm-lock.yaml | 0 .../fixtures/npm-workspace/package-lock.json | 0 .../test/fixtures/npm-workspace/package.json | 0 .../test/fixtures/pnpm-workspace/package.json | 0 .../fixtures/pnpm-workspace/pnpm-lock.yaml | 0 .../pnpm-workspace/pnpm-workspace.yaml | 0 .../test/fixtures/uninitialized/package.json | 0 .../commonality.config.ts | 0 .../test/fixtures/yarn-workspace/package.json | 0 .../test/fixtures/yarn-workspace/yarn.lock | 0 .../test/get-package-manager.test.ts | 0 .../test/get-project-config.test.ts | 0 .../test/get-root-directory.test.ts | 0 .../test/get-workspace-globs.test.ts | 0 .../{ => shared}/data-project/tsconfig.json | 0 .../data-project/vitest.config.ts | 0 .../data-tags}/.eslintrc.cjs | 0 packages/{ => shared}/data-tags/CHANGELOG.md | 0 packages/{ => shared}/data-tags/README.md | 0 .../{ => shared}/data-tags/commonality.json | 0 packages/{ => shared}/data-tags/package.json | 4 +- .../data-tags/src/get-tags-data.ts | 0 packages/{ => shared}/data-tags/src/index.ts | 0 .../{ => shared}/data-tags/src/set-tags.ts | 0 .../test/fixtures/empty-project/package.json | 0 .../packages/pkg-one/package.json | 0 .../packages/pkg-three/package.json | 0 .../packages/pkg-two/package.json | 0 .../fixtures/empty-project/pnpm-lock.yaml | 0 .../empty-project/pnpm-workspace.yaml | 0 .../test/fixtures/kitchen-sink/package.json | 0 .../packages/pkg-one/commonality.json | 0 .../packages/pkg-one/package.json | 0 .../packages/pkg-three/package.json | 0 .../packages/pkg-two/commonality.json | 0 .../packages/pkg-two/package.json | 0 .../test/fixtures/kitchen-sink/pnpm-lock.yaml | 0 .../fixtures/kitchen-sink/pnpm-workspace.yaml | 0 .../data-tags/test/get-tags-data.test.ts | 0 .../data-tags/test/set-tags.test.ts | 0 packages/{ => shared}/data-tags/tsconfig.json | 0 .../{ => shared}/data-tags/vitest.config.ts | 0 .../types}/.eslintrc.cjs | 0 packages/{ => shared}/types/CHANGELOG.md | 0 packages/{ => shared}/types/README.md | 0 packages/{ => shared}/types/commonality.json | 0 packages/{ => shared}/types/package.json | 2 +- packages/{ => shared}/types/src/index.ts | 0 packages/{ => shared}/types/tsconfig.json | 0 packages/{ => shared}/types/vitest.config.ts | 0 packages/shared/ui-core/.eslintrc.cjs | 4 + packages/{ => shared}/ui-core/CHANGELOG.md | 0 packages/{ => shared}/ui-core/README.md | 0 .../{ => shared}/ui-core/commonality.json | 0 packages/{ => shared}/ui-core/package.json | 2 +- .../{ => shared}/ui-core/src/bun-logo.tsx | 0 packages/{ => shared}/ui-core/src/divider.tsx | 0 .../{ => shared}/ui-core/src/download.svg | 0 .../ui-core/src/gradient-fade.tsx | 0 packages/{ => shared}/ui-core/src/index.ts | 0 packages/{ => shared}/ui-core/src/logo.tsx | 0 .../ui-core/src/navigation-button.tsx | 0 .../ui-core/src/navigation-logo.tsx | 0 .../{ => shared}/ui-core/src/navigation.tsx | 0 .../{ => shared}/ui-core/src/npm-logo.tsx | 0 .../{ => shared}/ui-core/src/pnpm-logo.tsx | 0 .../ui-core/src/theme-button-loading.tsx | 0 .../{ => shared}/ui-core/src/theme-button.tsx | 0 packages/{ => shared}/ui-core/src/theme.ts | 0 .../{ => shared}/ui-core/src/yarn-logo.tsx | 0 packages/{ => shared}/ui-core/tsconfig.json | 0 .../{ => shared}/ui-core/vitest.config.ts | 0 .../shared/ui-design-system/.eslintrc.cjs | 4 + .../ui-design-system/CHANGELOG.md | 0 .../{ => shared}/ui-design-system/README.md | 0 .../ui-design-system/commonality.json | 0 .../ui-design-system/components.json | 0 .../ui-design-system/package.json | 4 +- .../ui-design-system/src/accordion.tsx | 0 .../ui-design-system/src/alert.tsx | 0 .../ui-design-system/src/badge.tsx | 0 .../ui-design-system/src/button.tsx | 0 .../ui-design-system/src/card.tsx | 0 .../ui-design-system/src/checkbox.tsx | 0 .../{ => shared}/ui-design-system/src/cn.ts | 0 .../ui-design-system/src/command.tsx | 0 .../ui-design-system/src/dialog.tsx | 0 .../ui-design-system/src/dropdown-menu.tsx | 0 .../ui-design-system/src/form.tsx | 0 .../ui-design-system/src/heading.tsx | 0 .../ui-design-system/src/hover-card.tsx | 0 .../ui-design-system/src/index.ts | 0 .../ui-design-system/src/input.tsx | 0 .../{ => shared}/ui-design-system/src/kbd.tsx | 0 .../ui-design-system/src/label.tsx | 0 .../ui-design-system/src/popover.tsx | 0 .../ui-design-system/src/radio-group.tsx | 0 .../ui-design-system/src/scroll-area.tsx | 0 .../ui-design-system/src/select.tsx | 0 .../ui-design-system/src/separator.tsx | 0 .../ui-design-system/src/sheet.tsx | 0 .../ui-design-system/src/skeleton.tsx | 0 .../ui-design-system/src/snippet.tsx | 0 .../ui-design-system/src/switch.tsx | 0 .../ui-design-system/src/table.tsx | 0 .../ui-design-system/src/tabs.tsx | 0 .../ui-design-system/src/text.tsx | 0 .../ui-design-system/src/toast.tsx | 0 .../ui-design-system/src/toaster.tsx | 0 .../ui-design-system/src/toggle.tsx | 0 .../ui-design-system/src/tooltip.tsx | 0 .../ui-design-system/src/use-toast.ts | 0 .../ui-design-system/src/utils.ts | 0 .../ui-design-system/tailwind.config.js | 0 .../ui-design-system/tsconfig.json | 0 .../ui-design-system/vitest.config.ts | 0 ....timestamp-1698895735617-4681da5c321b6.mjs | 0 packages/shared/ui-package/.eslintrc.cjs | 4 + packages/{ => shared}/ui-package/CHANGELOG.md | 0 packages/{ => shared}/ui-package/README.md | 0 .../{ => shared}/ui-package/commonality.json | 0 packages/{ => shared}/ui-package/package.json | 4 +- .../src/codeowners-filter-button.tsx | 0 packages/{ => shared}/ui-package/src/index.ts | 0 .../src/packages-table-paginator.tsx | 0 .../ui-package/src/tags-filter-button.tsx | 0 .../ui-package/tailwind.config.js | 0 .../test/codeowners-filter-button.test.tsx | 0 .../test/packages-table-paginator.test.tsx | 0 .../{ => shared}/ui-package/test/setup.ts | 0 .../test/tags-filter-button.test.tsx | 0 .../{ => shared}/ui-package/tsconfig.json | 0 .../{ => shared}/ui-package/vitest.config.ts | 0 packages/shared/utils-core/.eslintrc.cjs | 4 + packages/{ => shared}/utils-core/CHANGELOG.md | 0 packages/{ => shared}/utils-core/README.md | 0 .../{ => shared}/utils-core/commonality.json | 0 packages/{ => shared}/utils-core/package.json | 20 +- .../{ => shared}/utils-core/src/constants.ts | 0 .../utils-core/src/format-package-name.ts | 0 .../utils-core/src/format-tag-name.ts | 0 packages/{ => shared}/utils-core/src/index.ts | 0 .../utils-core/src/slugify-package-name.ts | 0 .../utils-core/src/slugify-tag-name.ts | 0 .../utils-core/src/ui/get-icon-for-package.ts | 0 .../utils-core/src/ui/images/logo-next.tsx | 0 .../utils-core/src/ui/images/logo-node.tsx | 0 .../utils-core/src/ui/images/logo-react.tsx | 0 .../src/ui/images/storybook-logo.svg | 0 .../{ => shared}/utils-core/src/ui/index.ts | 0 .../test/format-package-name.test.ts | 0 .../utils-core/test/format-tag-name.test.ts | 0 .../test/slugify-package-name.test.ts | 0 .../utils-core/test/slugify-tag-name.test.ts | 0 .../{ => shared}/utils-core/tsconfig.json | 0 .../{ => shared}/utils-core/vitest.config.ts | 0 packages/shared/utils-package/.eslintrc.cjs | 4 + .../{ => shared}/utils-package/CHANGELOG.md | 0 packages/{ => shared}/utils-package/README.md | 0 .../utils-package/commonality.json | 0 .../{ => shared}/utils-package/package.json | 2 +- .../utils-package/src/format-package-name.ts | 0 .../utils-package/src/icons/logo-next.tsx | 0 .../utils-package/src/icons/logo-node.tsx | 0 .../utils-package/src/icons/logo-react.tsx | 0 .../src/icons/storybook-logo.svg | 0 .../{ => shared}/utils-package/src/index.ts | 0 .../{ => shared}/utils-package/tsconfig.json | 0 .../utils-package/vitest.config.ts | 0 pnpm-lock.yaml | 1170 ++++++++++++----- 470 files changed, 1490 insertions(+), 521 deletions(-) rename {packages => apps}/commonality/.eslintrc.cjs (100%) rename {packages => apps}/commonality/CHANGELOG.md (100%) rename {packages => apps}/commonality/README.md (100%) rename {packages => apps}/commonality/bin.js (100%) rename {packages => apps}/commonality/commonality.json (100%) rename {packages => apps}/commonality/package.json (89%) rename {packages => apps}/commonality/src/cli/cli.ts (100%) rename {packages => apps}/commonality/src/cli/commands/check.test.ts (99%) rename {packages => apps}/commonality/src/cli/commands/check.ts (99%) rename {packages => apps}/commonality/src/cli/commands/constrain.test.ts (100%) rename {packages => apps}/commonality/src/cli/commands/constrain.ts (99%) rename {packages => apps}/commonality/src/cli/commands/studio.ts (100%) rename {packages => apps}/commonality/src/cli/utils/logger.ts (100%) rename {packages => apps}/commonality/src/cli/utils/validate-project-structure.test.ts (100%) rename {packages => apps}/commonality/src/cli/utils/validate-project-structure.ts (100%) rename {packages => apps}/commonality/src/define-config.ts (100%) create mode 100644 apps/commonality/src/index.ts rename {packages => apps}/commonality/test/fixtures/empty-project/package.json (100%) rename {packages => apps}/commonality/test/fixtures/empty-project/pnpm-lock.yaml (100%) rename {packages => apps}/commonality/test/fixtures/invalid-root-package/package.json (100%) rename {packages => apps}/commonality/test/fixtures/invalid-root-package/pnpm-lock.yaml (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink-npm/package-lock.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink-npm/package.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink-npm/packages/pkg-one/package.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink-yarn/package.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink-yarn/packages/pkg-one/package.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink-yarn/yarn.lock (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink/package.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink/packages/pkg-one/package.json (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink/pnpm-lock.yaml (100%) rename {packages => apps}/commonality/test/fixtures/kitchen-sink/pnpm-workspace.yaml (100%) rename {packages => apps}/commonality/test/fixtures/missing-lockfile/package.json (100%) rename {packages => apps}/commonality/test/fixtures/missing-root-package/pnpm-lock.yaml (100%) rename {packages => apps}/commonality/test/fixtures/with-configuration/.commonality/config.json (100%) rename {packages => apps}/commonality/test/fixtures/with-configuration/package.json (100%) rename {packages => apps}/commonality/test/fixtures/with-configuration/pnpm-lock.yaml (100%) rename {packages => apps}/commonality/test/integration/smoke.test.ts (100%) rename {packages => apps}/commonality/test/integration/studio.test.ts (100%) rename {packages => apps}/commonality/test/tsconfig.json (100%) rename {packages => apps}/commonality/tsconfig.json (100%) rename {packages => apps}/commonality/tsup.config.cli.ts (100%) rename {packages => apps}/commonality/tsup.config.utilities.ts (87%) rename {packages => apps}/commonality/vite.integration.config.ts (100%) rename {packages => apps}/commonality/vitest.config.ts (100%) rename packages/{ => commonality}/commonality-recommended/.eslintrc.cjs (100%) rename packages/{ => commonality}/commonality-recommended/CHANGELOG.md (100%) rename packages/{ => commonality}/commonality-recommended/README.md (100%) rename packages/{ => commonality}/commonality-recommended/commonality.json (100%) rename packages/{ => commonality}/commonality-recommended/package.json (96%) rename packages/{ => commonality}/commonality-recommended/src/dev-peer-dependency-range.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/ensure-codeowner.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/ensure-readme.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/index.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/multiple-dependency-types.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/no-external-mismatch.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/respository-field.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/sorted-dependencies.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/utils/get-external-version-map.ts (100%) rename packages/{ => commonality}/commonality-recommended/src/valid-package-name.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/dev-peer-dependency-range.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/ensure-codeowner.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/ensure-readme.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/multiple-dependency-types.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/no-external-mismatch.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/repository-field.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/sorted-dependencies.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/utils/get-external-version-map.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/test/valid-package-name.test.ts (100%) rename packages/{ => commonality}/commonality-recommended/tsconfig.json (100%) rename packages/{ => commonality}/commonality-recommended/vitest.config.ts (100%) delete mode 100644 packages/commonality/src/index.ts rename packages/{data-codeowners => conformance/data-conformance}/.eslintrc.cjs (100%) create mode 100644 packages/conformance/data-conformance/README.md rename packages/{feature-conformance => conformance/data-conformance}/commonality.json (100%) create mode 100644 packages/conformance/data-conformance/package.json rename packages/{feature-conformance/src/utils => conformance/data-conformance/src}/file.test.ts (100%) rename packages/{feature-conformance/src/utils => conformance/data-conformance/src}/file.ts (100%) create mode 100644 packages/conformance/data-conformance/src/index.ts rename packages/{feature-conformance/src/utils => conformance/data-conformance/src}/json.test.ts (100%) rename packages/{feature-conformance/src/utils => conformance/data-conformance/src}/json.ts (100%) rename packages/{feature-conformance/src/utils => conformance/data-conformance/src}/text.test.ts (100%) rename packages/{feature-conformance/src/utils => conformance/data-conformance/src}/text.ts (100%) rename packages/{feature-conformance => conformance/data-conformance}/tsconfig.json (100%) rename packages/{feature-conformance => conformance/data-conformance}/vitest.config.ts (100%) rename packages/{data-packages => conformance/ui-conformance}/.eslintrc.cjs (100%) create mode 100644 packages/conformance/ui-conformance/README.md rename packages/{feature-constraints => conformance/ui-conformance}/commonality.json (100%) create mode 100644 packages/conformance/ui-conformance/package.json rename packages/{feature-conformance/src/ui => conformance/ui-conformance/src}/conformance-header.tsx (96%) rename packages/{feature-conformance/src/ui => conformance/ui-conformance/src}/conformance-results-list.tsx (98%) rename packages/{feature-conformance/src/ui => conformance/ui-conformance/src}/index.ts (100%) rename packages/{feature-conformance/src/ui => conformance/ui-conformance/src}/packages-table.test.tsx (100%) rename packages/{feature-conformance/src/ui => conformance/ui-conformance/src}/packages-table.tsx (98%) rename packages/{feature-constraints => conformance/ui-conformance}/tsconfig.json (70%) create mode 100644 packages/conformance/ui-conformance/vitest.config.ts rename packages/{data-project => conformance/utils-conformance}/.eslintrc.cjs (100%) create mode 100644 packages/conformance/utils-conformance/README.md create mode 100644 packages/conformance/utils-conformance/commonality.json rename packages/{feature-conformance => conformance/utils-conformance}/package.json (76%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/create-test-check.ts (100%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/define-check.ts (100%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/diff.test.ts (100%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/diff.ts (100%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/get-conformance-results.test.ts (100%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/get-conformance-results.ts (100%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/get-status-for-results.ts (86%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/index.ts (81%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/run-fixes.test.ts (96%) rename packages/{feature-conformance/src/utils => conformance/utils-conformance/src}/run-fixes.ts (100%) create mode 100644 packages/conformance/utils-conformance/tsconfig.json create mode 100644 packages/conformance/utils-conformance/vitest.config.ts rename packages/{data-tags => constraints/data-constraints}/.eslintrc.cjs (100%) create mode 100644 packages/constraints/data-constraints/README.md create mode 100644 packages/constraints/data-constraints/commonality.json rename packages/{feature-constraints => constraints/data-constraints}/package.json (73%) rename packages/{feature-constraints/src/components => constraints/data-constraints/src}/get-constraint-results.test.ts (99%) rename packages/{feature-constraints/src/data => constraints/data-constraints/src}/get-constraint-results.ts (100%) rename packages/{feature-constraints/src/data => constraints/data-constraints/src}/index.ts (100%) create mode 100644 packages/constraints/data-constraints/tsconfig.json create mode 100644 packages/constraints/data-constraints/vitest.config.ts rename packages/{feature-constraints => constraints/state-constraints}/.eslintignore (100%) rename packages/{feature-conformance => constraints/state-constraints}/.eslintrc.cjs (100%) create mode 100644 packages/constraints/state-constraints/README.md create mode 100644 packages/constraints/state-constraints/commonality.json create mode 100644 packages/constraints/state-constraints/package.json rename packages/{feature-constraints/src/state => constraints/state-constraints/src}/graph-machine.ts (99%) rename packages/{feature-constraints/src/state => constraints/state-constraints/src}/graph-machine.typegen.ts (100%) rename packages/{feature-constraints/src/state => constraints/state-constraints/src}/index.ts (100%) create mode 100644 packages/constraints/state-constraints/tsconfig.json create mode 100644 packages/constraints/state-constraints/vitest.config.ts rename packages/{feature-constraints => constraints/ui-constraints}/.eslintrc.cjs (100%) create mode 100644 packages/constraints/ui-constraints/README.md create mode 100644 packages/constraints/ui-constraints/commonality.json create mode 100644 packages/constraints/ui-constraints/package.json rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/constraint-results.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/feature-graph-chart.tsx (97%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/feature-graph-dependency-tooltip.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/feature-graph-header.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/feature-graph-package-tooltip.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/feature-graph-sidebar.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/feature-graph-toolbar.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-chart-loading.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-chart.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-header.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-layout.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-provider.tsx (89%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-toolbar.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/graph-tooltip.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/index.ts (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/packages-filter-section.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/sidebar.test.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/sidebar.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/tooltip-dependency.tsx (100%) rename packages/{feature-constraints/src/components => constraints/ui-constraints/src}/tooltip-package.tsx (100%) create mode 100644 packages/constraints/ui-constraints/tsconfig.json create mode 100644 packages/constraints/ui-constraints/vitest.config.ts rename packages/{types => constraints/utils-constraints}/.eslintrc.cjs (100%) create mode 100644 packages/constraints/utils-constraints/README.md create mode 100644 packages/constraints/utils-constraints/commonality.json create mode 100644 packages/constraints/utils-constraints/package.json rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/actions.test.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/actions.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/bind-render-graph-events.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/create-render-graph.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/create-traversal-graph.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/create-worker.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/get-element-definitions-with-updated-layout.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/get-element-definitions.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/images/next-logo.svg (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/images/node-logo.svg (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/images/react-logo.svg (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/images/storybook-logo.svg (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/index.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/layout-options.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/query-keys.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/styles/edge.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/styles/node.ts (100%) rename packages/{feature-constraints/src/utilities => constraints/utils-constraints/src}/update-graph-elements.ts (100%) create mode 100644 packages/constraints/utils-constraints/tsconfig.json create mode 100644 packages/constraints/utils-constraints/vitest.config.ts delete mode 100644 packages/feature-conformance/CHANGELOG.md delete mode 100644 packages/feature-conformance/README.md delete mode 100644 packages/feature-conformance/src/index.ts delete mode 100644 packages/feature-constraints/CHANGELOG.md delete mode 100644 packages/feature-constraints/README.md delete mode 100644 packages/feature-constraints/src/index.ts delete mode 100644 packages/feature-constraints/test/setup.ts delete mode 100644 packages/feature-constraints/vitest.config.ts rename packages/{ui-core => shared/data-codeowners}/.eslintrc.cjs (100%) rename packages/{ => shared}/data-codeowners/CHANGELOG.md (100%) rename packages/{ => shared}/data-codeowners/README.md (100%) rename packages/{ => shared}/data-codeowners/commonality.json (100%) rename packages/{ => shared}/data-codeowners/package.json (97%) rename packages/{ => shared}/data-codeowners/src/core/get-codeowners.ts (100%) rename packages/{ => shared}/data-codeowners/src/core/get-is-email.ts (100%) rename packages/{ => shared}/data-codeowners/src/core/get-is-team.ts (100%) rename packages/{ => shared}/data-codeowners/src/core/get-owners-for-path.ts (100%) rename packages/{ => shared}/data-codeowners/src/get-codeowners-data.ts (100%) rename packages/{ => shared}/data-codeowners/src/index.ts (100%) rename packages/{ => shared}/data-codeowners/src/utils/find-first-existing-file.ts (100%) rename packages/{ => shared}/data-codeowners/test/find-first-existing-file.test.ts (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/github-example/.commonality/config.json (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/github-example/.github/CODEOWNERS (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/github-example/package.json (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/github-example/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/github-example/pnpm-workspace.yaml (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/missing-file/.commonality/config.json (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/missing-file/package.json (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/missing-file/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/missing-file/pnpm-workspace.yaml (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/simple/.github/CODEOWNERS (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/simple/app/app-one/package.json (100%) rename packages/{ => shared}/data-codeowners/test/fixtures/simple/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-codeowners/test/get-codeowners.test.ts (100%) rename packages/{ => shared}/data-codeowners/test/get-is-email.test.ts (100%) rename packages/{ => shared}/data-codeowners/test/get-owners-for-path.test.ts (100%) rename packages/{ => shared}/data-codeowners/tsconfig.json (100%) rename packages/{ => shared}/data-codeowners/vitest.config.ts (100%) rename packages/{ui-design-system => shared/data-packages}/.eslintrc.cjs (100%) rename packages/{ => shared}/data-packages/CHANGELOG.md (100%) rename packages/{ => shared}/data-packages/README.md (100%) rename packages/{ => shared}/data-packages/commonality.json (100%) rename packages/{ => shared}/data-packages/package.json (97%) rename packages/{ => shared}/data-packages/src/get-dependencies.ts (100%) rename packages/{ => shared}/data-packages/src/get-package.ts (100%) rename packages/{ => shared}/data-packages/src/get-packages.ts (100%) rename packages/{ => shared}/data-packages/src/get-root-package-name.ts (100%) rename packages/{ => shared}/data-packages/src/index.ts (100%) rename packages/{ => shared}/data-packages/test/fixtures/kitchen-sink/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/kitchen-sink/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/kitchen-sink/packages/pkg-two/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/kitchen-sink/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-json-root/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-json-root/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-json/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-json/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-lockfile/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-lockfile/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-name-root/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-name-root/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-name-root/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-name/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-name/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/missing-name/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-packages/test/fixtures/single-package-repo/package.json (100%) rename packages/{ => shared}/data-packages/test/fixtures/single-package-repo/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-packages/test/get-dependencies.test.ts (100%) rename packages/{ => shared}/data-packages/test/get-package.test.ts (100%) rename packages/{ => shared}/data-packages/test/get-packages.test.ts (100%) rename packages/{ => shared}/data-packages/test/get-root-package-name.test.ts (100%) rename packages/{ => shared}/data-packages/tsconfig.json (100%) rename packages/{ => shared}/data-packages/vitest.config.ts (100%) rename packages/{ui-package => shared/data-project}/.eslintrc.cjs (100%) rename packages/{ => shared}/data-project/CHANGELOG.md (100%) rename packages/{ => shared}/data-project/README.md (100%) rename packages/{ => shared}/data-project/commonality.json (100%) rename packages/{ => shared}/data-project/package.json (97%) rename packages/{ => shared}/data-project/src/get-package-directories.ts (100%) rename packages/{ => shared}/data-project/src/get-package-manager.ts (100%) rename packages/{ => shared}/data-project/src/get-project-config.ts (95%) rename packages/{ => shared}/data-project/src/get-root-directory.ts (100%) rename packages/{ => shared}/data-project/src/get-workspace-globs.ts (100%) rename packages/{ => shared}/data-project/src/index.ts (100%) rename packages/{ => shared}/data-project/test/fixtures/deeply-nested/ignored-packages/pkg-three/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/deeply-nested/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/deeply-nested/packages/nested/pkg-two/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/deeply-nested/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/deeply-nested/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-project/test/fixtures/deeply-nested/pnpm-workspace.yaml (100%) rename packages/{ => shared}/data-project/test/fixtures/invalid-project-config/commonality.config.ts (100%) rename packages/{ => shared}/data-project/test/fixtures/missing-workspace-globs/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/missing-workspace-globs/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-project/test/fixtures/npm-workspace/package-lock.json (100%) rename packages/{ => shared}/data-project/test/fixtures/npm-workspace/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/pnpm-workspace/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/pnpm-workspace/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-project/test/fixtures/pnpm-workspace/pnpm-workspace.yaml (100%) rename packages/{ => shared}/data-project/test/fixtures/uninitialized/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/valid-project-config/commonality.config.ts (100%) rename packages/{ => shared}/data-project/test/fixtures/yarn-workspace/package.json (100%) rename packages/{ => shared}/data-project/test/fixtures/yarn-workspace/yarn.lock (100%) rename packages/{ => shared}/data-project/test/get-package-manager.test.ts (100%) rename packages/{ => shared}/data-project/test/get-project-config.test.ts (100%) rename packages/{ => shared}/data-project/test/get-root-directory.test.ts (100%) rename packages/{ => shared}/data-project/test/get-workspace-globs.test.ts (100%) rename packages/{ => shared}/data-project/tsconfig.json (100%) rename packages/{ => shared}/data-project/vitest.config.ts (100%) rename packages/{utils-core => shared/data-tags}/.eslintrc.cjs (100%) rename packages/{ => shared}/data-tags/CHANGELOG.md (100%) rename packages/{ => shared}/data-tags/README.md (100%) rename packages/{ => shared}/data-tags/commonality.json (100%) rename packages/{ => shared}/data-tags/package.json (97%) rename packages/{ => shared}/data-tags/src/get-tags-data.ts (100%) rename packages/{ => shared}/data-tags/src/index.ts (100%) rename packages/{ => shared}/data-tags/src/set-tags.ts (100%) rename packages/{ => shared}/data-tags/test/fixtures/empty-project/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/empty-project/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/empty-project/packages/pkg-three/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/empty-project/packages/pkg-two/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/empty-project/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-tags/test/fixtures/empty-project/pnpm-workspace.yaml (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/commonality.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/packages/pkg-three/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/commonality.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/package.json (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/pnpm-lock.yaml (100%) rename packages/{ => shared}/data-tags/test/fixtures/kitchen-sink/pnpm-workspace.yaml (100%) rename packages/{ => shared}/data-tags/test/get-tags-data.test.ts (100%) rename packages/{ => shared}/data-tags/test/set-tags.test.ts (100%) rename packages/{ => shared}/data-tags/tsconfig.json (100%) rename packages/{ => shared}/data-tags/vitest.config.ts (100%) rename packages/{utils-package => shared/types}/.eslintrc.cjs (100%) rename packages/{ => shared}/types/CHANGELOG.md (100%) rename packages/{ => shared}/types/README.md (100%) rename packages/{ => shared}/types/commonality.json (100%) rename packages/{ => shared}/types/package.json (97%) rename packages/{ => shared}/types/src/index.ts (100%) rename packages/{ => shared}/types/tsconfig.json (100%) rename packages/{ => shared}/types/vitest.config.ts (100%) create mode 100644 packages/shared/ui-core/.eslintrc.cjs rename packages/{ => shared}/ui-core/CHANGELOG.md (100%) rename packages/{ => shared}/ui-core/README.md (100%) rename packages/{ => shared}/ui-core/commonality.json (100%) rename packages/{ => shared}/ui-core/package.json (98%) rename packages/{ => shared}/ui-core/src/bun-logo.tsx (100%) rename packages/{ => shared}/ui-core/src/divider.tsx (100%) rename packages/{ => shared}/ui-core/src/download.svg (100%) rename packages/{ => shared}/ui-core/src/gradient-fade.tsx (100%) rename packages/{ => shared}/ui-core/src/index.ts (100%) rename packages/{ => shared}/ui-core/src/logo.tsx (100%) rename packages/{ => shared}/ui-core/src/navigation-button.tsx (100%) rename packages/{ => shared}/ui-core/src/navigation-logo.tsx (100%) rename packages/{ => shared}/ui-core/src/navigation.tsx (100%) rename packages/{ => shared}/ui-core/src/npm-logo.tsx (100%) rename packages/{ => shared}/ui-core/src/pnpm-logo.tsx (100%) rename packages/{ => shared}/ui-core/src/theme-button-loading.tsx (100%) rename packages/{ => shared}/ui-core/src/theme-button.tsx (100%) rename packages/{ => shared}/ui-core/src/theme.ts (100%) rename packages/{ => shared}/ui-core/src/yarn-logo.tsx (100%) rename packages/{ => shared}/ui-core/tsconfig.json (100%) rename packages/{ => shared}/ui-core/vitest.config.ts (100%) create mode 100644 packages/shared/ui-design-system/.eslintrc.cjs rename packages/{ => shared}/ui-design-system/CHANGELOG.md (100%) rename packages/{ => shared}/ui-design-system/README.md (100%) rename packages/{ => shared}/ui-design-system/commonality.json (100%) rename packages/{ => shared}/ui-design-system/components.json (100%) rename packages/{ => shared}/ui-design-system/package.json (98%) rename packages/{ => shared}/ui-design-system/src/accordion.tsx (100%) rename packages/{ => shared}/ui-design-system/src/alert.tsx (100%) rename packages/{ => shared}/ui-design-system/src/badge.tsx (100%) rename packages/{ => shared}/ui-design-system/src/button.tsx (100%) rename packages/{ => shared}/ui-design-system/src/card.tsx (100%) rename packages/{ => shared}/ui-design-system/src/checkbox.tsx (100%) rename packages/{ => shared}/ui-design-system/src/cn.ts (100%) rename packages/{ => shared}/ui-design-system/src/command.tsx (100%) rename packages/{ => shared}/ui-design-system/src/dialog.tsx (100%) rename packages/{ => shared}/ui-design-system/src/dropdown-menu.tsx (100%) rename packages/{ => shared}/ui-design-system/src/form.tsx (100%) rename packages/{ => shared}/ui-design-system/src/heading.tsx (100%) rename packages/{ => shared}/ui-design-system/src/hover-card.tsx (100%) rename packages/{ => shared}/ui-design-system/src/index.ts (100%) rename packages/{ => shared}/ui-design-system/src/input.tsx (100%) rename packages/{ => shared}/ui-design-system/src/kbd.tsx (100%) rename packages/{ => shared}/ui-design-system/src/label.tsx (100%) rename packages/{ => shared}/ui-design-system/src/popover.tsx (100%) rename packages/{ => shared}/ui-design-system/src/radio-group.tsx (100%) rename packages/{ => shared}/ui-design-system/src/scroll-area.tsx (100%) rename packages/{ => shared}/ui-design-system/src/select.tsx (100%) rename packages/{ => shared}/ui-design-system/src/separator.tsx (100%) rename packages/{ => shared}/ui-design-system/src/sheet.tsx (100%) rename packages/{ => shared}/ui-design-system/src/skeleton.tsx (100%) rename packages/{ => shared}/ui-design-system/src/snippet.tsx (100%) rename packages/{ => shared}/ui-design-system/src/switch.tsx (100%) rename packages/{ => shared}/ui-design-system/src/table.tsx (100%) rename packages/{ => shared}/ui-design-system/src/tabs.tsx (100%) rename packages/{ => shared}/ui-design-system/src/text.tsx (100%) rename packages/{ => shared}/ui-design-system/src/toast.tsx (100%) rename packages/{ => shared}/ui-design-system/src/toaster.tsx (100%) rename packages/{ => shared}/ui-design-system/src/toggle.tsx (100%) rename packages/{ => shared}/ui-design-system/src/tooltip.tsx (100%) rename packages/{ => shared}/ui-design-system/src/use-toast.ts (100%) rename packages/{ => shared}/ui-design-system/src/utils.ts (100%) rename packages/{ => shared}/ui-design-system/tailwind.config.js (100%) rename packages/{ => shared}/ui-design-system/tsconfig.json (100%) rename packages/{ => shared}/ui-design-system/vitest.config.ts (100%) rename packages/{ => shared}/ui-design-system/vitest.config.ts.timestamp-1698895735617-4681da5c321b6.mjs (100%) create mode 100644 packages/shared/ui-package/.eslintrc.cjs rename packages/{ => shared}/ui-package/CHANGELOG.md (100%) rename packages/{ => shared}/ui-package/README.md (100%) rename packages/{ => shared}/ui-package/commonality.json (100%) rename packages/{ => shared}/ui-package/package.json (98%) rename packages/{ => shared}/ui-package/src/codeowners-filter-button.tsx (100%) rename packages/{ => shared}/ui-package/src/index.ts (100%) rename packages/{ => shared}/ui-package/src/packages-table-paginator.tsx (100%) rename packages/{ => shared}/ui-package/src/tags-filter-button.tsx (100%) rename packages/{ => shared}/ui-package/tailwind.config.js (100%) rename packages/{ => shared}/ui-package/test/codeowners-filter-button.test.tsx (100%) rename packages/{ => shared}/ui-package/test/packages-table-paginator.test.tsx (100%) rename packages/{ => shared}/ui-package/test/setup.ts (100%) rename packages/{ => shared}/ui-package/test/tags-filter-button.test.tsx (100%) rename packages/{ => shared}/ui-package/tsconfig.json (100%) rename packages/{ => shared}/ui-package/vitest.config.ts (100%) create mode 100644 packages/shared/utils-core/.eslintrc.cjs rename packages/{ => shared}/utils-core/CHANGELOG.md (100%) rename packages/{ => shared}/utils-core/README.md (100%) rename packages/{ => shared}/utils-core/commonality.json (100%) rename packages/{ => shared}/utils-core/package.json (74%) rename packages/{ => shared}/utils-core/src/constants.ts (100%) rename packages/{ => shared}/utils-core/src/format-package-name.ts (100%) rename packages/{ => shared}/utils-core/src/format-tag-name.ts (100%) rename packages/{ => shared}/utils-core/src/index.ts (100%) rename packages/{ => shared}/utils-core/src/slugify-package-name.ts (100%) rename packages/{ => shared}/utils-core/src/slugify-tag-name.ts (100%) rename packages/{ => shared}/utils-core/src/ui/get-icon-for-package.ts (100%) rename packages/{ => shared}/utils-core/src/ui/images/logo-next.tsx (100%) rename packages/{ => shared}/utils-core/src/ui/images/logo-node.tsx (100%) rename packages/{ => shared}/utils-core/src/ui/images/logo-react.tsx (100%) rename packages/{ => shared}/utils-core/src/ui/images/storybook-logo.svg (100%) rename packages/{ => shared}/utils-core/src/ui/index.ts (100%) rename packages/{ => shared}/utils-core/test/format-package-name.test.ts (100%) rename packages/{ => shared}/utils-core/test/format-tag-name.test.ts (100%) rename packages/{ => shared}/utils-core/test/slugify-package-name.test.ts (100%) rename packages/{ => shared}/utils-core/test/slugify-tag-name.test.ts (100%) rename packages/{ => shared}/utils-core/tsconfig.json (100%) rename packages/{ => shared}/utils-core/vitest.config.ts (100%) create mode 100644 packages/shared/utils-package/.eslintrc.cjs rename packages/{ => shared}/utils-package/CHANGELOG.md (100%) rename packages/{ => shared}/utils-package/README.md (100%) rename packages/{ => shared}/utils-package/commonality.json (100%) rename packages/{ => shared}/utils-package/package.json (97%) rename packages/{ => shared}/utils-package/src/format-package-name.ts (100%) rename packages/{ => shared}/utils-package/src/icons/logo-next.tsx (100%) rename packages/{ => shared}/utils-package/src/icons/logo-node.tsx (100%) rename packages/{ => shared}/utils-package/src/icons/logo-react.tsx (100%) rename packages/{ => shared}/utils-package/src/icons/storybook-logo.svg (100%) rename packages/{ => shared}/utils-package/src/index.ts (100%) rename packages/{ => shared}/utils-package/tsconfig.json (100%) rename packages/{ => shared}/utils-package/vitest.config.ts (100%) diff --git a/packages/commonality/.eslintrc.cjs b/apps/commonality/.eslintrc.cjs similarity index 100% rename from packages/commonality/.eslintrc.cjs rename to apps/commonality/.eslintrc.cjs diff --git a/packages/commonality/CHANGELOG.md b/apps/commonality/CHANGELOG.md similarity index 100% rename from packages/commonality/CHANGELOG.md rename to apps/commonality/CHANGELOG.md diff --git a/packages/commonality/README.md b/apps/commonality/README.md similarity index 100% rename from packages/commonality/README.md rename to apps/commonality/README.md diff --git a/packages/commonality/bin.js b/apps/commonality/bin.js similarity index 100% rename from packages/commonality/bin.js rename to apps/commonality/bin.js diff --git a/packages/commonality/commonality.json b/apps/commonality/commonality.json similarity index 100% rename from packages/commonality/commonality.json rename to apps/commonality/commonality.json diff --git a/packages/commonality/package.json b/apps/commonality/package.json similarity index 89% rename from packages/commonality/package.json rename to apps/commonality/package.json index 198bf488..27910d68 100644 --- a/packages/commonality/package.json +++ b/apps/commonality/package.json @@ -18,7 +18,7 @@ ".": "./dist/utilities/index.js" }, "description": "Infinitely scalable front-end ecosystems", - "repository": "https://github.com/commonalityco/commonality/packages/commonality", + "repository": "https://github.com/commonalityco/commonality/apps/commonality", "bugs": "https://github.com/commonalityco/commonalityco/issues", "homepage": "https://commonality.co", "license": "MPL-2.0", @@ -72,12 +72,14 @@ "devDependencies": { "@commonalityco/config-tsconfig": "workspace:*", "@commonalityco/data-codeowners": "workspace:*", + "@commonalityco/data-conformance": "workspace:*", + "@commonalityco/data-constraints": "workspace:*", "@commonalityco/data-packages": "workspace:*", "@commonalityco/data-project": "workspace:*", "@commonalityco/data-tags": "workspace:*", - "@commonalityco/feature-conformance": "workspace:*", - "@commonalityco/feature-constraints": "workspace:*", "@commonalityco/types": "workspace:*", + "@commonalityco/utils-conformance": "workspace:*", + "@commonalityco/utils-constraints": "workspace:*", "@commonalityco/utils-core": "workspace:*", "@swc/core": "^1.3.86", "@types/fs-extra": "^11.0.2", @@ -86,6 +88,7 @@ "@types/prompts": "^2.4.4", "@types/update-notifier": "^6.0.5", "@types/wait-on": "^5.3.1", + "dts-bundle-generator": "^9.0.0", "esbuild": "^0.19.3", "eslint-config-commonality": "workspace:*", "mock-stdin": "^1.0.0", @@ -94,4 +97,4 @@ "tsup": "^8.0.1", "typescript": "^5.2.2" } -} +} \ No newline at end of file diff --git a/packages/commonality/src/cli/cli.ts b/apps/commonality/src/cli/cli.ts similarity index 100% rename from packages/commonality/src/cli/cli.ts rename to apps/commonality/src/cli/cli.ts index fae33d9d..9457ea97 100644 --- a/packages/commonality/src/cli/cli.ts +++ b/apps/commonality/src/cli/cli.ts @@ -15,8 +15,8 @@ program .description('Infinitely scalable front-end ecosystems') .version(packageJson.version); +program.addCommand(check); program.addCommand(constrain); program.addCommand(studio); -program.addCommand(check); program.parse(process.argv); diff --git a/packages/commonality/src/cli/commands/check.test.ts b/apps/commonality/src/cli/commands/check.test.ts similarity index 99% rename from packages/commonality/src/cli/commands/check.test.ts rename to apps/commonality/src/cli/commands/check.test.ts index 88a1e3da..0d7682f4 100644 --- a/packages/commonality/src/cli/commands/check.test.ts +++ b/apps/commonality/src/cli/commands/check.test.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it, test, vi } from 'vitest'; import { action as check } from './check.js'; -import { ConformanceResult } from '@commonalityco/feature-conformance/utilities'; +import { ConformanceResult } from '@commonalityco/utils-conformance'; import process from 'node:process'; import console from 'node:console'; import { PackageType, Status } from '@commonalityco/utils-core'; diff --git a/packages/commonality/src/cli/commands/check.ts b/apps/commonality/src/cli/commands/check.ts similarity index 99% rename from packages/commonality/src/cli/commands/check.ts rename to apps/commonality/src/cli/commands/check.ts index 756546a7..a99e6795 100644 --- a/packages/commonality/src/cli/commands/check.ts +++ b/apps/commonality/src/cli/commands/check.ts @@ -5,7 +5,7 @@ import { runFixes, getStatusForResults, ConformanceResult, -} from '@commonalityco/feature-conformance/utilities'; +} from '@commonalityco/utils-conformance'; import { Command } from 'commander'; import { getProjectConfig, diff --git a/packages/commonality/src/cli/commands/constrain.test.ts b/apps/commonality/src/cli/commands/constrain.test.ts similarity index 100% rename from packages/commonality/src/cli/commands/constrain.test.ts rename to apps/commonality/src/cli/commands/constrain.test.ts diff --git a/packages/commonality/src/cli/commands/constrain.ts b/apps/commonality/src/cli/commands/constrain.ts similarity index 99% rename from packages/commonality/src/cli/commands/constrain.ts rename to apps/commonality/src/cli/commands/constrain.ts index f4fc1439..4001df80 100644 --- a/packages/commonality/src/cli/commands/constrain.ts +++ b/apps/commonality/src/cli/commands/constrain.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node import { Command } from 'commander'; -import { getConstraintResults } from '@commonalityco/feature-constraints/data'; +import { getConstraintResults } from '@commonalityco/data-constraints'; import { ConstraintResult } from '@commonalityco/types'; import ora from 'ora'; import c from 'chalk'; diff --git a/packages/commonality/src/cli/commands/studio.ts b/apps/commonality/src/cli/commands/studio.ts similarity index 100% rename from packages/commonality/src/cli/commands/studio.ts rename to apps/commonality/src/cli/commands/studio.ts diff --git a/packages/commonality/src/cli/utils/logger.ts b/apps/commonality/src/cli/utils/logger.ts similarity index 100% rename from packages/commonality/src/cli/utils/logger.ts rename to apps/commonality/src/cli/utils/logger.ts diff --git a/packages/commonality/src/cli/utils/validate-project-structure.test.ts b/apps/commonality/src/cli/utils/validate-project-structure.test.ts similarity index 100% rename from packages/commonality/src/cli/utils/validate-project-structure.test.ts rename to apps/commonality/src/cli/utils/validate-project-structure.test.ts diff --git a/packages/commonality/src/cli/utils/validate-project-structure.ts b/apps/commonality/src/cli/utils/validate-project-structure.ts similarity index 100% rename from packages/commonality/src/cli/utils/validate-project-structure.ts rename to apps/commonality/src/cli/utils/validate-project-structure.ts diff --git a/packages/commonality/src/define-config.ts b/apps/commonality/src/define-config.ts similarity index 100% rename from packages/commonality/src/define-config.ts rename to apps/commonality/src/define-config.ts diff --git a/apps/commonality/src/index.ts b/apps/commonality/src/index.ts new file mode 100644 index 00000000..e86e23c9 --- /dev/null +++ b/apps/commonality/src/index.ts @@ -0,0 +1,9 @@ +export { + diff, + createTestCheck, + defineCheck, +} from '@commonalityco/utils-conformance'; +export { text, json } from '@commonalityco/data-conformance'; + +export { defineConfig } from './define-config.js'; +export { PackageJson, Workspace } from '@commonalityco/types'; diff --git a/packages/commonality/test/fixtures/empty-project/package.json b/apps/commonality/test/fixtures/empty-project/package.json similarity index 100% rename from packages/commonality/test/fixtures/empty-project/package.json rename to apps/commonality/test/fixtures/empty-project/package.json diff --git a/packages/commonality/test/fixtures/empty-project/pnpm-lock.yaml b/apps/commonality/test/fixtures/empty-project/pnpm-lock.yaml similarity index 100% rename from packages/commonality/test/fixtures/empty-project/pnpm-lock.yaml rename to apps/commonality/test/fixtures/empty-project/pnpm-lock.yaml diff --git a/packages/commonality/test/fixtures/invalid-root-package/package.json b/apps/commonality/test/fixtures/invalid-root-package/package.json similarity index 100% rename from packages/commonality/test/fixtures/invalid-root-package/package.json rename to apps/commonality/test/fixtures/invalid-root-package/package.json diff --git a/packages/commonality/test/fixtures/invalid-root-package/pnpm-lock.yaml b/apps/commonality/test/fixtures/invalid-root-package/pnpm-lock.yaml similarity index 100% rename from packages/commonality/test/fixtures/invalid-root-package/pnpm-lock.yaml rename to apps/commonality/test/fixtures/invalid-root-package/pnpm-lock.yaml diff --git a/packages/commonality/test/fixtures/kitchen-sink-npm/package-lock.json b/apps/commonality/test/fixtures/kitchen-sink-npm/package-lock.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink-npm/package-lock.json rename to apps/commonality/test/fixtures/kitchen-sink-npm/package-lock.json diff --git a/packages/commonality/test/fixtures/kitchen-sink-npm/package.json b/apps/commonality/test/fixtures/kitchen-sink-npm/package.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink-npm/package.json rename to apps/commonality/test/fixtures/kitchen-sink-npm/package.json diff --git a/packages/commonality/test/fixtures/kitchen-sink-npm/packages/pkg-one/package.json b/apps/commonality/test/fixtures/kitchen-sink-npm/packages/pkg-one/package.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink-npm/packages/pkg-one/package.json rename to apps/commonality/test/fixtures/kitchen-sink-npm/packages/pkg-one/package.json diff --git a/packages/commonality/test/fixtures/kitchen-sink-yarn/package.json b/apps/commonality/test/fixtures/kitchen-sink-yarn/package.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink-yarn/package.json rename to apps/commonality/test/fixtures/kitchen-sink-yarn/package.json diff --git a/packages/commonality/test/fixtures/kitchen-sink-yarn/packages/pkg-one/package.json b/apps/commonality/test/fixtures/kitchen-sink-yarn/packages/pkg-one/package.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink-yarn/packages/pkg-one/package.json rename to apps/commonality/test/fixtures/kitchen-sink-yarn/packages/pkg-one/package.json diff --git a/packages/commonality/test/fixtures/kitchen-sink-yarn/yarn.lock b/apps/commonality/test/fixtures/kitchen-sink-yarn/yarn.lock similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink-yarn/yarn.lock rename to apps/commonality/test/fixtures/kitchen-sink-yarn/yarn.lock diff --git a/packages/commonality/test/fixtures/kitchen-sink/package.json b/apps/commonality/test/fixtures/kitchen-sink/package.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink/package.json rename to apps/commonality/test/fixtures/kitchen-sink/package.json diff --git a/packages/commonality/test/fixtures/kitchen-sink/packages/pkg-one/package.json b/apps/commonality/test/fixtures/kitchen-sink/packages/pkg-one/package.json similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink/packages/pkg-one/package.json rename to apps/commonality/test/fixtures/kitchen-sink/packages/pkg-one/package.json diff --git a/packages/commonality/test/fixtures/kitchen-sink/pnpm-lock.yaml b/apps/commonality/test/fixtures/kitchen-sink/pnpm-lock.yaml similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink/pnpm-lock.yaml rename to apps/commonality/test/fixtures/kitchen-sink/pnpm-lock.yaml diff --git a/packages/commonality/test/fixtures/kitchen-sink/pnpm-workspace.yaml b/apps/commonality/test/fixtures/kitchen-sink/pnpm-workspace.yaml similarity index 100% rename from packages/commonality/test/fixtures/kitchen-sink/pnpm-workspace.yaml rename to apps/commonality/test/fixtures/kitchen-sink/pnpm-workspace.yaml diff --git a/packages/commonality/test/fixtures/missing-lockfile/package.json b/apps/commonality/test/fixtures/missing-lockfile/package.json similarity index 100% rename from packages/commonality/test/fixtures/missing-lockfile/package.json rename to apps/commonality/test/fixtures/missing-lockfile/package.json diff --git a/packages/commonality/test/fixtures/missing-root-package/pnpm-lock.yaml b/apps/commonality/test/fixtures/missing-root-package/pnpm-lock.yaml similarity index 100% rename from packages/commonality/test/fixtures/missing-root-package/pnpm-lock.yaml rename to apps/commonality/test/fixtures/missing-root-package/pnpm-lock.yaml diff --git a/packages/commonality/test/fixtures/with-configuration/.commonality/config.json b/apps/commonality/test/fixtures/with-configuration/.commonality/config.json similarity index 100% rename from packages/commonality/test/fixtures/with-configuration/.commonality/config.json rename to apps/commonality/test/fixtures/with-configuration/.commonality/config.json diff --git a/packages/commonality/test/fixtures/with-configuration/package.json b/apps/commonality/test/fixtures/with-configuration/package.json similarity index 100% rename from packages/commonality/test/fixtures/with-configuration/package.json rename to apps/commonality/test/fixtures/with-configuration/package.json diff --git a/packages/commonality/test/fixtures/with-configuration/pnpm-lock.yaml b/apps/commonality/test/fixtures/with-configuration/pnpm-lock.yaml similarity index 100% rename from packages/commonality/test/fixtures/with-configuration/pnpm-lock.yaml rename to apps/commonality/test/fixtures/with-configuration/pnpm-lock.yaml diff --git a/packages/commonality/test/integration/smoke.test.ts b/apps/commonality/test/integration/smoke.test.ts similarity index 100% rename from packages/commonality/test/integration/smoke.test.ts rename to apps/commonality/test/integration/smoke.test.ts diff --git a/packages/commonality/test/integration/studio.test.ts b/apps/commonality/test/integration/studio.test.ts similarity index 100% rename from packages/commonality/test/integration/studio.test.ts rename to apps/commonality/test/integration/studio.test.ts diff --git a/packages/commonality/test/tsconfig.json b/apps/commonality/test/tsconfig.json similarity index 100% rename from packages/commonality/test/tsconfig.json rename to apps/commonality/test/tsconfig.json diff --git a/packages/commonality/tsconfig.json b/apps/commonality/tsconfig.json similarity index 100% rename from packages/commonality/tsconfig.json rename to apps/commonality/tsconfig.json diff --git a/packages/commonality/tsup.config.cli.ts b/apps/commonality/tsup.config.cli.ts similarity index 100% rename from packages/commonality/tsup.config.cli.ts rename to apps/commonality/tsup.config.cli.ts diff --git a/packages/commonality/tsup.config.utilities.ts b/apps/commonality/tsup.config.utilities.ts similarity index 87% rename from packages/commonality/tsup.config.utilities.ts rename to apps/commonality/tsup.config.utilities.ts index 06e91631..d2854dd0 100644 --- a/packages/commonality/tsup.config.utilities.ts +++ b/apps/commonality/tsup.config.utilities.ts @@ -6,7 +6,9 @@ const config: Options = { platform: 'node', outDir: './dist/utilities', noExternal: [/^@commonalityco\/.*/], - dts: true, + dts: { + resolve: true, + }, }; export default config; diff --git a/packages/commonality/vite.integration.config.ts b/apps/commonality/vite.integration.config.ts similarity index 100% rename from packages/commonality/vite.integration.config.ts rename to apps/commonality/vite.integration.config.ts diff --git a/packages/commonality/vitest.config.ts b/apps/commonality/vitest.config.ts similarity index 100% rename from packages/commonality/vitest.config.ts rename to apps/commonality/vitest.config.ts diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js index 16aec135..7a49914a 100644 --- a/apps/studio/next.config.js +++ b/apps/studio/next.config.js @@ -8,7 +8,8 @@ const nextConfig = { '@commonalityco/data-packages', '@commonalityco/data-project', '@commonalityco/data-tags', - '@commonalityco/feature-conformance', + '@commonalityco/ui-conformance', + '@commonalityco/utils-conformance', '@commonalityco/feature-graph', '@commonalityco/ui-core', '@commonalityco/ui-design-system', diff --git a/apps/studio/package.json b/apps/studio/package.json index 90041528..06aa9404 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -42,15 +42,18 @@ "@babel/preset-env": "^7.23.6", "@commonalityco/config-tailwind": "workspace:*", "@commonalityco/data-codeowners": "workspace:*", + "@commonalityco/data-constraints": "workspace:*", "@commonalityco/data-packages": "workspace:*", "@commonalityco/data-project": "workspace:*", "@commonalityco/data-tags": "workspace:*", - "@commonalityco/feature-conformance": "workspace:*", - "@commonalityco/feature-constraints": "workspace:*", "@commonalityco/types": "workspace:*", + "@commonalityco/ui-conformance": "workspace:*", + "@commonalityco/ui-constraints": "workspace:*", "@commonalityco/ui-core": "workspace:*", "@commonalityco/ui-design-system": "workspace:*", "@commonalityco/ui-package": "workspace:*", + "@commonalityco/utils-conformance": "workspace:*", + "@commonalityco/utils-constraints": "workspace:*", "@commonalityco/utils-core": "workspace:*", "@commonalityco/utils-package": "workspace:*", "@hookform/resolvers": "^3.3.1", diff --git a/apps/studio/src/app/(graph)/@chart/loading.tsx b/apps/studio/src/app/(graph)/@chart/loading.tsx index 2cbec601..7caa5ee4 100644 --- a/apps/studio/src/app/(graph)/@chart/loading.tsx +++ b/apps/studio/src/app/(graph)/@chart/loading.tsx @@ -1,4 +1,4 @@ -import { GraphChartLoading } from '@commonalityco/feature-constraints/components'; +import { GraphChartLoading } from '@commonalityco/ui-constraints'; function ChartLoading() { return ; diff --git a/apps/studio/src/app/(graph)/@chart/studio-chart.tsx b/apps/studio/src/app/(graph)/@chart/studio-chart.tsx index 4d2476c1..af8e32dd 100644 --- a/apps/studio/src/app/(graph)/@chart/studio-chart.tsx +++ b/apps/studio/src/app/(graph)/@chart/studio-chart.tsx @@ -6,7 +6,7 @@ import { slugifyPackageName } from '@commonalityco/utils-core'; import { FeatureGraphChart, GraphChartLoading, -} from '@commonalityco/feature-constraints/components'; +} from '@commonalityco/ui-constraints'; function StudioChart( props: Omit< diff --git a/apps/studio/src/app/(graph)/@chart/worker.ts b/apps/studio/src/app/(graph)/@chart/worker.ts index 71a3d449..4a64ee9e 100644 --- a/apps/studio/src/app/(graph)/@chart/worker.ts +++ b/apps/studio/src/app/(graph)/@chart/worker.ts @@ -1,3 +1,3 @@ -import { createWorker } from '@commonalityco/feature-constraints/utilities'; +import { createWorker } from '@commonalityco/utils-constraints'; createWorker(); diff --git a/apps/studio/src/app/(graph)/@sidebar/studio-sidebar.tsx b/apps/studio/src/app/(graph)/@sidebar/studio-sidebar.tsx index 23d3e283..6d4f1bae 100644 --- a/apps/studio/src/app/(graph)/@sidebar/studio-sidebar.tsx +++ b/apps/studio/src/app/(graph)/@sidebar/studio-sidebar.tsx @@ -1,5 +1,5 @@ 'use client'; -import { FeatureGraphSidebar } from '@commonalityco/feature-constraints/components'; +import { FeatureGraphSidebar } from '@commonalityco/ui-constraints'; import { setCookie } from 'cookies-next'; import { ComponentProps } from 'react'; diff --git a/apps/studio/src/app/(graph)/layout.tsx b/apps/studio/src/app/(graph)/layout.tsx index 66ef813a..b722daae 100644 --- a/apps/studio/src/app/(graph)/layout.tsx +++ b/apps/studio/src/app/(graph)/layout.tsx @@ -2,9 +2,8 @@ import { GraphLayoutAside, GraphLayoutMain, GraphLayoutRoot, - FeatureGraphHeader, GraphProvider, -} from '@commonalityco/feature-constraints/components'; +} from '@commonalityco/ui-constraints'; import StudioGraphHeader from './studio-graph-header'; export default async function RootLayout({ diff --git a/apps/studio/src/app/(graph)/studio-graph-header.tsx b/apps/studio/src/app/(graph)/studio-graph-header.tsx index baf1b5eb..3f4a5abe 100644 --- a/apps/studio/src/app/(graph)/studio-graph-header.tsx +++ b/apps/studio/src/app/(graph)/studio-graph-header.tsx @@ -1,7 +1,7 @@ 'use server'; import { EditConfigButton } from '@/components/edit-config-button'; import { getConstraintsData } from '@/data/constraints'; -import { FeatureGraphHeader } from '@commonalityco/feature-constraints/components'; +import { FeatureGraphHeader } from '@commonalityco/ui-constraints'; import React from 'react'; async function StudioGraphHeader() { diff --git a/apps/studio/src/app/(graph)/studio-graph-overlays.tsx b/apps/studio/src/app/(graph)/studio-graph-overlays.tsx index aba67b1b..1680acf5 100644 --- a/apps/studio/src/app/(graph)/studio-graph-overlays.tsx +++ b/apps/studio/src/app/(graph)/studio-graph-overlays.tsx @@ -7,7 +7,7 @@ import { import { FeatureGraphDependencyTooltip, FeatureGraphPackageTooltip, -} from '@commonalityco/feature-constraints/components'; +} from '@commonalityco/ui-constraints'; import { Package, TagsData } from '@commonalityco/types'; import { useState } from 'react'; diff --git a/apps/studio/src/app/(packages)/packages/get-table-data.ts b/apps/studio/src/app/(packages)/packages/get-table-data.ts index 31c02432..e87b34de 100644 --- a/apps/studio/src/app/(packages)/packages/get-table-data.ts +++ b/apps/studio/src/app/(packages)/packages/get-table-data.ts @@ -1,6 +1,6 @@ import { CodeownersData, Package, TagsData } from '@commonalityco/types'; -import { ColumnData } from '@commonalityco/feature-conformance/ui'; -import { ConformanceResult } from '@commonalityco/feature-conformance/utilities'; +import { ColumnData } from '@commonalityco/ui-conformance'; +import { ConformanceResult } from '@commonalityco/utils-conformance'; function keyBy>( array: Data[], diff --git a/apps/studio/src/app/(packages)/packages/page.tsx b/apps/studio/src/app/(packages)/packages/page.tsx index bbdc2e1f..2857ebc1 100644 --- a/apps/studio/src/app/(packages)/packages/page.tsx +++ b/apps/studio/src/app/(packages)/packages/page.tsx @@ -13,8 +13,8 @@ import { getConformanceResultsData } from '@/data/conformance'; import omit from 'lodash/omit'; import stripAnsi from 'strip-ansi'; import { EditConfigButton } from '@/components/edit-config-button'; -import { ConformanceHeader } from '@commonalityco/feature-conformance/ui'; -import type { ConformanceResult } from '@commonalityco/feature-conformance/utilities'; +import { ConformanceHeader } from '@commonalityco/ui-conformance'; +import type { ConformanceResult } from '@commonalityco/utils-conformance'; async function PackagesPage({ searchParams = {} }: { searchParams: unknown }) { const [packages, tagsData, codeownersData, results] = await Promise.all([ diff --git a/apps/studio/src/app/(packages)/packages/studio-packages-table.test.tsx b/apps/studio/src/app/(packages)/packages/studio-packages-table.test.tsx index 4ab735e1..cceaf760 100644 --- a/apps/studio/src/app/(packages)/packages/studio-packages-table.test.tsx +++ b/apps/studio/src/app/(packages)/packages/studio-packages-table.test.tsx @@ -5,7 +5,7 @@ import { Package } from '@commonalityco/types'; import { PackageType } from '@commonalityco/utils-core'; import { expect, it, vi } from 'vitest'; import { Row } from '@tanstack/react-table'; -import { ColumnData } from '@commonalityco/feature-conformance/ui'; +import { ColumnData } from '@commonalityco/ui-conformance'; const mocks = vi.hoisted(() => { return { diff --git a/apps/studio/src/app/(packages)/packages/studio-packages-table.tsx b/apps/studio/src/app/(packages)/packages/studio-packages-table.tsx index d3b1e250..dea248b7 100644 --- a/apps/studio/src/app/(packages)/packages/studio-packages-table.tsx +++ b/apps/studio/src/app/(packages)/packages/studio-packages-table.tsx @@ -9,7 +9,7 @@ import { SortableHeader, TagsCell, ColumnData, -} from '@commonalityco/feature-conformance/ui'; +} from '@commonalityco/ui-conformance'; import { DropdownMenu, DropdownMenuContent, diff --git a/apps/studio/src/data/conformance.ts b/apps/studio/src/data/conformance.ts index 826f7fa7..4319be50 100644 --- a/apps/studio/src/data/conformance.ts +++ b/apps/studio/src/data/conformance.ts @@ -3,7 +3,7 @@ import 'server-only'; import { getProjectConfig } from '@commonalityco/data-project'; import { getPackagesData } from './packages'; import { getTagsData } from '@commonalityco/data-tags'; -import { getConformanceResults } from '@commonalityco/feature-conformance'; +import { getConformanceResults } from '@commonalityco/utils-conformance'; import { getCodeownersData } from '@commonalityco/data-codeowners'; export const getConformanceResultsData = async () => { diff --git a/apps/studio/src/data/constraints.ts b/apps/studio/src/data/constraints.ts index 8edbf943..686f11e1 100644 --- a/apps/studio/src/data/constraints.ts +++ b/apps/studio/src/data/constraints.ts @@ -1,7 +1,7 @@ import { getDependencies, getPackages } from '@commonalityco/data-packages'; import { getProjectConfig } from '@commonalityco/data-project'; import { getTagsData } from '@commonalityco/data-tags'; -import { getConstraintResults } from '@commonalityco/feature-constraints/data'; +import { getConstraintResults } from '@commonalityco/data-constraints'; export const getConstraintsData = async () => { const projectConfig = await getProjectConfig({ diff --git a/apps/studio/tailwind.config.cjs b/apps/studio/tailwind.config.cjs index a7616944..e74a1d3d 100644 --- a/apps/studio/tailwind.config.cjs +++ b/apps/studio/tailwind.config.cjs @@ -21,7 +21,7 @@ module.exports = { getPkgPattern('@commonalityco/ui-design-system'), getPkgPattern('@commonalityco/ui-package'), getPkgPattern('@commonalityco/ui-core'), - getPkgPattern('@commonalityco/feature-conformance'), - getPkgPattern('@commonalityco/feature-constraints'), + getPkgPattern('@commonalityco/ui-conformance'), + getPkgPattern('@commonalityco/ui-constraints'), ], }; diff --git a/apps/workshop/package.json b/apps/workshop/package.json index 11ff1a4e..7c1f90a0 100644 --- a/apps/workshop/package.json +++ b/apps/workshop/package.json @@ -10,9 +10,9 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@commonalityco/feature-conformance": "workspace:*", - "@commonalityco/feature-constraints": "workspace:*", "@commonalityco/types": "workspace:*", + "@commonalityco/ui-conformance": "workspace:*", + "@commonalityco/ui-constraints": "workspace:*", "@commonalityco/ui-core": "workspace:*", "@commonalityco/ui-design-system": "workspace:*", "@commonalityco/ui-package": "workspace:*", diff --git a/apps/workshop/src/stories/feature-conformance/conformance-results.stories.tsx b/apps/workshop/src/stories/feature-conformance/conformance-results.stories.tsx index 27d8ac7d..ab82eb3b 100644 --- a/apps/workshop/src/stories/feature-conformance/conformance-results.stories.tsx +++ b/apps/workshop/src/stories/feature-conformance/conformance-results.stories.tsx @@ -1,5 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react'; -import { ConformanceResults } from '@commonalityco/feature-conformance/ui'; +import { ConformanceResults } from '@commonalityco/ui-conformance'; import { PackageType, Status } from '@commonalityco/utils-core'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction diff --git a/apps/workshop/src/stories/feature-graph/constraint-results.stories.tsx b/apps/workshop/src/stories/feature-graph/constraint-results.stories.tsx index 4b4eb8ba..7b8fd5cf 100644 --- a/apps/workshop/src/stories/feature-graph/constraint-results.stories.tsx +++ b/apps/workshop/src/stories/feature-graph/constraint-results.stories.tsx @@ -1,5 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react'; -import { ConstraintResults } from '@commonalityco/feature-constraints/components'; +import { ConstraintResults } from '@commonalityco/ui-constraints'; import { DependencyType } from '@commonalityco/utils-core'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction diff --git a/apps/workshop/src/stories/feature-graph/feature-graph-toolbar.stories.tsx b/apps/workshop/src/stories/feature-graph/feature-graph-toolbar.stories.tsx index 0786e6a9..d1b4d6bc 100644 --- a/apps/workshop/src/stories/feature-graph/feature-graph-toolbar.stories.tsx +++ b/apps/workshop/src/stories/feature-graph/feature-graph-toolbar.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import { FeatureGraphToolbar, GraphProvider, -} from '@commonalityco/feature-constraints/components'; +} from '@commonalityco/ui-constraints'; import { Violation } from '@commonalityco/types'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction diff --git a/apps/workshop/src/stories/feature-graph/feature-graph-worker.ts b/apps/workshop/src/stories/feature-graph/feature-graph-worker.ts index 71a3d449..4a64ee9e 100644 --- a/apps/workshop/src/stories/feature-graph/feature-graph-worker.ts +++ b/apps/workshop/src/stories/feature-graph/feature-graph-worker.ts @@ -1,3 +1,3 @@ -import { createWorker } from '@commonalityco/feature-constraints/utilities'; +import { createWorker } from '@commonalityco/utils-constraints'; createWorker(); diff --git a/apps/workshop/src/stories/feature-graph/feature-graph.stories.tsx b/apps/workshop/src/stories/feature-graph/feature-graph.stories.tsx index 583e4659..a4b1e02a 100644 --- a/apps/workshop/src/stories/feature-graph/feature-graph.stories.tsx +++ b/apps/workshop/src/stories/feature-graph/feature-graph.stories.tsx @@ -2,10 +2,10 @@ import type { Meta, StoryObj } from '@storybook/react'; import { FeatureGraphChart, GraphProvider, -} from '@commonalityco/feature-constraints/components'; +} from '@commonalityco/ui-constraints'; import { DependencyType, PackageType } from '@commonalityco/utils-core'; import { ConstraintResult, Dependency, Package } from '@commonalityco/types'; -import { GraphLayoutMain } from '@commonalityco/feature-constraints/components'; +import { GraphLayoutMain } from '@commonalityco/ui-constraints'; import GraphWorker from './feature-graph-worker.ts?worker'; // const newWorker = new Worker( // new URL('./feature-graph-worker.ts', import.meta.url), diff --git a/apps/workshop/src/stories/ui-graph/graph-chart.stories.tsx b/apps/workshop/src/stories/ui-graph/graph-chart.stories.tsx index f4a3817e..f4bbb510 100644 --- a/apps/workshop/src/stories/ui-graph/graph-chart.stories.tsx +++ b/apps/workshop/src/stories/ui-graph/graph-chart.stories.tsx @@ -1,5 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react'; -import { GraphChart } from '@commonalityco/feature-constraints/components'; +import { GraphChart } from '@commonalityco/ui-constraints'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction const meta = { diff --git a/apps/workshop/src/stories/ui-graph/sidebar.stories.tsx b/apps/workshop/src/stories/ui-graph/sidebar.stories.tsx index 365fe494..dee369e9 100644 --- a/apps/workshop/src/stories/ui-graph/sidebar.stories.tsx +++ b/apps/workshop/src/stories/ui-graph/sidebar.stories.tsx @@ -1,5 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react'; -import { Sidebar } from '@commonalityco/feature-constraints/components'; +import { Sidebar } from '@commonalityco/ui-constraints'; import type { Package } from '@commonalityco/types'; import { PackageType } from '@commonalityco/utils-core'; diff --git a/apps/workshop/src/stories/ui-graph/tooltip-dependency.stories.tsx b/apps/workshop/src/stories/ui-graph/tooltip-dependency.stories.tsx index e27bdef3..1b6cb36a 100644 --- a/apps/workshop/src/stories/ui-graph/tooltip-dependency.stories.tsx +++ b/apps/workshop/src/stories/ui-graph/tooltip-dependency.stories.tsx @@ -1,5 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react'; -import { TooltipDependency } from '@commonalityco/feature-constraints/components'; +import { TooltipDependency } from '@commonalityco/ui-constraints'; import { DependencyType } from '@commonalityco/utils-core'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction diff --git a/apps/workshop/src/stories/ui-graph/tooltip-package.stories.tsx b/apps/workshop/src/stories/ui-graph/tooltip-package.stories.tsx index 593081e8..bb83cc66 100644 --- a/apps/workshop/src/stories/ui-graph/tooltip-package.stories.tsx +++ b/apps/workshop/src/stories/ui-graph/tooltip-package.stories.tsx @@ -1,5 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react'; -import { TooltipPackage } from '@commonalityco/feature-constraints/components'; +import { TooltipPackage } from '@commonalityco/ui-constraints'; import { PackageType } from '@commonalityco/utils-core'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction diff --git a/apps/workshop/src/stories/ui-package/packages-table.stories.tsx b/apps/workshop/src/stories/ui-package/packages-table.stories.tsx index 1616f328..48d2a6f7 100644 --- a/apps/workshop/src/stories/ui-package/packages-table.stories.tsx +++ b/apps/workshop/src/stories/ui-package/packages-table.stories.tsx @@ -8,7 +8,7 @@ import { PackagesTable, SortableHeader, TagsCell, -} from '@commonalityco/feature-conformance/ui'; +} from '@commonalityco/ui-conformance'; import { PackageType, Status } from '@commonalityco/utils-core'; import { Package } from '@commonalityco/types'; diff --git a/apps/workshop/tailwind.config.js b/apps/workshop/tailwind.config.js index 0d2b2b86..12e9eb2f 100644 --- a/apps/workshop/tailwind.config.js +++ b/apps/workshop/tailwind.config.js @@ -13,7 +13,7 @@ module.exports = { content: [ './src/**/*.{js,ts,jsx,tsx}', getPkgPattern('@commonalityco/feature-constraints'), - getPkgPattern('@commonalityco/feature-conformance'), + getPkgPattern('@commonalityco/ui-conformance'), getPkgPattern('@commonalityco/ui-design-system'), getPkgPattern('@commonalityco/ui-package'), getPkgPattern('@commonalityco/ui-core'), diff --git a/commonality.config.ts b/commonality.config.ts index 1d77dda0..8a7fdfc7 100644 --- a/commonality.config.ts +++ b/commonality.config.ts @@ -1,5 +1,4 @@ -// @ts-check -import { defineCheck, defineConfig, json } from 'commonality'; +import { defineCheck, defineConfig } from 'commonality'; import * as recommended from 'commonality-recommended'; export default defineConfig({ @@ -14,15 +13,6 @@ export default defineConfig({ recommended.noExternalMismatch(), recommended.repositoryField(), ], - testable: [ - defineCheck(() => { - return { - name: 'ensure-test-tooling', - message: 'Testable packages must have test tooling configured', - validate: ({ workspace }) => {}, - }; - }), - ], }, constraints: { feature: { allow: '*' }, diff --git a/packages/commonality-recommended/.eslintrc.cjs b/packages/commonality/commonality-recommended/.eslintrc.cjs similarity index 100% rename from packages/commonality-recommended/.eslintrc.cjs rename to packages/commonality/commonality-recommended/.eslintrc.cjs diff --git a/packages/commonality-recommended/CHANGELOG.md b/packages/commonality/commonality-recommended/CHANGELOG.md similarity index 100% rename from packages/commonality-recommended/CHANGELOG.md rename to packages/commonality/commonality-recommended/CHANGELOG.md diff --git a/packages/commonality-recommended/README.md b/packages/commonality/commonality-recommended/README.md similarity index 100% rename from packages/commonality-recommended/README.md rename to packages/commonality/commonality-recommended/README.md diff --git a/packages/commonality-recommended/commonality.json b/packages/commonality/commonality-recommended/commonality.json similarity index 100% rename from packages/commonality-recommended/commonality.json rename to packages/commonality/commonality-recommended/commonality.json diff --git a/packages/commonality-recommended/package.json b/packages/commonality/commonality-recommended/package.json similarity index 96% rename from packages/commonality-recommended/package.json rename to packages/commonality/commonality-recommended/package.json index d945f1a9..88634091 100644 --- a/packages/commonality-recommended/package.json +++ b/packages/commonality/commonality-recommended/package.json @@ -38,5 +38,5 @@ "semver": "^7.5.4", "validate-npm-package-name": "^5.0.0" }, - "repository": "https://github.com/commonalityco/commonality/packages/commonality-recommended" -} + "repository": "https://github.com/commonalityco/commonality/packages/commonality/commonality-recommended" +} \ No newline at end of file diff --git a/packages/commonality-recommended/src/dev-peer-dependency-range.ts b/packages/commonality/commonality-recommended/src/dev-peer-dependency-range.ts similarity index 100% rename from packages/commonality-recommended/src/dev-peer-dependency-range.ts rename to packages/commonality/commonality-recommended/src/dev-peer-dependency-range.ts diff --git a/packages/commonality-recommended/src/ensure-codeowner.ts b/packages/commonality/commonality-recommended/src/ensure-codeowner.ts similarity index 100% rename from packages/commonality-recommended/src/ensure-codeowner.ts rename to packages/commonality/commonality-recommended/src/ensure-codeowner.ts diff --git a/packages/commonality-recommended/src/ensure-readme.ts b/packages/commonality/commonality-recommended/src/ensure-readme.ts similarity index 100% rename from packages/commonality-recommended/src/ensure-readme.ts rename to packages/commonality/commonality-recommended/src/ensure-readme.ts diff --git a/packages/commonality-recommended/src/index.ts b/packages/commonality/commonality-recommended/src/index.ts similarity index 100% rename from packages/commonality-recommended/src/index.ts rename to packages/commonality/commonality-recommended/src/index.ts diff --git a/packages/commonality-recommended/src/multiple-dependency-types.ts b/packages/commonality/commonality-recommended/src/multiple-dependency-types.ts similarity index 100% rename from packages/commonality-recommended/src/multiple-dependency-types.ts rename to packages/commonality/commonality-recommended/src/multiple-dependency-types.ts diff --git a/packages/commonality-recommended/src/no-external-mismatch.ts b/packages/commonality/commonality-recommended/src/no-external-mismatch.ts similarity index 100% rename from packages/commonality-recommended/src/no-external-mismatch.ts rename to packages/commonality/commonality-recommended/src/no-external-mismatch.ts diff --git a/packages/commonality-recommended/src/respository-field.ts b/packages/commonality/commonality-recommended/src/respository-field.ts similarity index 100% rename from packages/commonality-recommended/src/respository-field.ts rename to packages/commonality/commonality-recommended/src/respository-field.ts diff --git a/packages/commonality-recommended/src/sorted-dependencies.ts b/packages/commonality/commonality-recommended/src/sorted-dependencies.ts similarity index 100% rename from packages/commonality-recommended/src/sorted-dependencies.ts rename to packages/commonality/commonality-recommended/src/sorted-dependencies.ts diff --git a/packages/commonality-recommended/src/utils/get-external-version-map.ts b/packages/commonality/commonality-recommended/src/utils/get-external-version-map.ts similarity index 100% rename from packages/commonality-recommended/src/utils/get-external-version-map.ts rename to packages/commonality/commonality-recommended/src/utils/get-external-version-map.ts diff --git a/packages/commonality-recommended/src/valid-package-name.ts b/packages/commonality/commonality-recommended/src/valid-package-name.ts similarity index 100% rename from packages/commonality-recommended/src/valid-package-name.ts rename to packages/commonality/commonality-recommended/src/valid-package-name.ts diff --git a/packages/commonality-recommended/test/dev-peer-dependency-range.test.ts b/packages/commonality/commonality-recommended/test/dev-peer-dependency-range.test.ts similarity index 100% rename from packages/commonality-recommended/test/dev-peer-dependency-range.test.ts rename to packages/commonality/commonality-recommended/test/dev-peer-dependency-range.test.ts diff --git a/packages/commonality-recommended/test/ensure-codeowner.test.ts b/packages/commonality/commonality-recommended/test/ensure-codeowner.test.ts similarity index 100% rename from packages/commonality-recommended/test/ensure-codeowner.test.ts rename to packages/commonality/commonality-recommended/test/ensure-codeowner.test.ts diff --git a/packages/commonality-recommended/test/ensure-readme.test.ts b/packages/commonality/commonality-recommended/test/ensure-readme.test.ts similarity index 100% rename from packages/commonality-recommended/test/ensure-readme.test.ts rename to packages/commonality/commonality-recommended/test/ensure-readme.test.ts diff --git a/packages/commonality-recommended/test/multiple-dependency-types.test.ts b/packages/commonality/commonality-recommended/test/multiple-dependency-types.test.ts similarity index 100% rename from packages/commonality-recommended/test/multiple-dependency-types.test.ts rename to packages/commonality/commonality-recommended/test/multiple-dependency-types.test.ts diff --git a/packages/commonality-recommended/test/no-external-mismatch.test.ts b/packages/commonality/commonality-recommended/test/no-external-mismatch.test.ts similarity index 100% rename from packages/commonality-recommended/test/no-external-mismatch.test.ts rename to packages/commonality/commonality-recommended/test/no-external-mismatch.test.ts diff --git a/packages/commonality-recommended/test/repository-field.test.ts b/packages/commonality/commonality-recommended/test/repository-field.test.ts similarity index 100% rename from packages/commonality-recommended/test/repository-field.test.ts rename to packages/commonality/commonality-recommended/test/repository-field.test.ts diff --git a/packages/commonality-recommended/test/sorted-dependencies.test.ts b/packages/commonality/commonality-recommended/test/sorted-dependencies.test.ts similarity index 100% rename from packages/commonality-recommended/test/sorted-dependencies.test.ts rename to packages/commonality/commonality-recommended/test/sorted-dependencies.test.ts diff --git a/packages/commonality-recommended/test/utils/get-external-version-map.test.ts b/packages/commonality/commonality-recommended/test/utils/get-external-version-map.test.ts similarity index 100% rename from packages/commonality-recommended/test/utils/get-external-version-map.test.ts rename to packages/commonality/commonality-recommended/test/utils/get-external-version-map.test.ts diff --git a/packages/commonality-recommended/test/valid-package-name.test.ts b/packages/commonality/commonality-recommended/test/valid-package-name.test.ts similarity index 100% rename from packages/commonality-recommended/test/valid-package-name.test.ts rename to packages/commonality/commonality-recommended/test/valid-package-name.test.ts diff --git a/packages/commonality-recommended/tsconfig.json b/packages/commonality/commonality-recommended/tsconfig.json similarity index 100% rename from packages/commonality-recommended/tsconfig.json rename to packages/commonality/commonality-recommended/tsconfig.json diff --git a/packages/commonality-recommended/vitest.config.ts b/packages/commonality/commonality-recommended/vitest.config.ts similarity index 100% rename from packages/commonality-recommended/vitest.config.ts rename to packages/commonality/commonality-recommended/vitest.config.ts diff --git a/packages/commonality/src/index.ts b/packages/commonality/src/index.ts deleted file mode 100644 index 233e8a19..00000000 --- a/packages/commonality/src/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { - diff, - text, - json, - createTestCheck, - defineCheck, -} from '@commonalityco/feature-conformance/utilities'; -export * from './define-config.js'; -export { PackageJson, Workspace } from '@commonalityco/types'; diff --git a/packages/data-codeowners/.eslintrc.cjs b/packages/conformance/data-conformance/.eslintrc.cjs similarity index 100% rename from packages/data-codeowners/.eslintrc.cjs rename to packages/conformance/data-conformance/.eslintrc.cjs diff --git a/packages/conformance/data-conformance/README.md b/packages/conformance/data-conformance/README.md new file mode 100644 index 00000000..e8bc26b6 --- /dev/null +++ b/packages/conformance/data-conformance/README.md @@ -0,0 +1,9 @@ +# @commonalityco/utils-conformance + +> Get conformance information about a local project + +## Installation + +```sh +npm install @commonalityco/utils-conformance +``` diff --git a/packages/feature-conformance/commonality.json b/packages/conformance/data-conformance/commonality.json similarity index 100% rename from packages/feature-conformance/commonality.json rename to packages/conformance/data-conformance/commonality.json diff --git a/packages/conformance/data-conformance/package.json b/packages/conformance/data-conformance/package.json new file mode 100644 index 00000000..7e5f45b2 --- /dev/null +++ b/packages/conformance/data-conformance/package.json @@ -0,0 +1,61 @@ +{ + "name": "@commonalityco/data-conformance", + "version": "0.0.20", + "type": "module", + "publishConfig": { + "access": "public" + }, + "files": [ + "dist" + ], + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": "./dist/index.js" + }, + "license": "MIT", + "scripts": { + "build": "tsc --build", + "dev": "tsc --watch", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "test": "vitest", + "type-check": "tsc --noEmit" + }, + "devDependencies": { + "@commonalityco/config-tsconfig": "workspace:*", + "@commonalityco/types": "workspace:*", + "@commonalityco/ui-design-system": "workspace:*", + "@commonalityco/utils-core": "workspace:*", + "@testing-library/jest-dom": "^6.1.3", + "@testing-library/react": "^14.0.0", + "@types/fs-extra": "^11.0.2", + "@types/lodash-es": "^4.17.12", + "@types/mock-fs": "^4.13.4", + "@types/react": "^18.2.22", + "eslint-config-commonality": "workspace:*", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "typescript": "^5.2.2" + }, + "peerDependencies": { + "@commonalityco/ui-design-system": "*", + "@commonalityco/utils-core": "*", + "react": ">=18", + "react-dom": ">=18" + }, + "dependencies": { + "@tanstack/react-table": "^8.10.1", + "chalk": "^5.3.0", + "detect-indent": "^7.0.1", + "fs-extra": "^11.1.1", + "jest-diff": "^29.7.0", + "lodash-es": "^4.17.21", + "lucide-react": "^0.274.0", + "mock-fs": "^5.2.0", + "pathe": "^1.1.1", + "server-only": "^0.0.1", + "strip-ansi": "^7.1.0" + }, + "repository": "https://github.com/commonalityco/commonality/packages/conformance/data-conformance" +} \ No newline at end of file diff --git a/packages/feature-conformance/src/utils/file.test.ts b/packages/conformance/data-conformance/src/file.test.ts similarity index 100% rename from packages/feature-conformance/src/utils/file.test.ts rename to packages/conformance/data-conformance/src/file.test.ts diff --git a/packages/feature-conformance/src/utils/file.ts b/packages/conformance/data-conformance/src/file.ts similarity index 100% rename from packages/feature-conformance/src/utils/file.ts rename to packages/conformance/data-conformance/src/file.ts diff --git a/packages/conformance/data-conformance/src/index.ts b/packages/conformance/data-conformance/src/index.ts new file mode 100644 index 00000000..4d7b3e7a --- /dev/null +++ b/packages/conformance/data-conformance/src/index.ts @@ -0,0 +1,2 @@ +export * from './json'; +export * from './text'; diff --git a/packages/feature-conformance/src/utils/json.test.ts b/packages/conformance/data-conformance/src/json.test.ts similarity index 100% rename from packages/feature-conformance/src/utils/json.test.ts rename to packages/conformance/data-conformance/src/json.test.ts diff --git a/packages/feature-conformance/src/utils/json.ts b/packages/conformance/data-conformance/src/json.ts similarity index 100% rename from packages/feature-conformance/src/utils/json.ts rename to packages/conformance/data-conformance/src/json.ts diff --git a/packages/feature-conformance/src/utils/text.test.ts b/packages/conformance/data-conformance/src/text.test.ts similarity index 100% rename from packages/feature-conformance/src/utils/text.test.ts rename to packages/conformance/data-conformance/src/text.test.ts diff --git a/packages/feature-conformance/src/utils/text.ts b/packages/conformance/data-conformance/src/text.ts similarity index 100% rename from packages/feature-conformance/src/utils/text.ts rename to packages/conformance/data-conformance/src/text.ts diff --git a/packages/feature-conformance/tsconfig.json b/packages/conformance/data-conformance/tsconfig.json similarity index 100% rename from packages/feature-conformance/tsconfig.json rename to packages/conformance/data-conformance/tsconfig.json diff --git a/packages/feature-conformance/vitest.config.ts b/packages/conformance/data-conformance/vitest.config.ts similarity index 100% rename from packages/feature-conformance/vitest.config.ts rename to packages/conformance/data-conformance/vitest.config.ts diff --git a/packages/data-packages/.eslintrc.cjs b/packages/conformance/ui-conformance/.eslintrc.cjs similarity index 100% rename from packages/data-packages/.eslintrc.cjs rename to packages/conformance/ui-conformance/.eslintrc.cjs diff --git a/packages/conformance/ui-conformance/README.md b/packages/conformance/ui-conformance/README.md new file mode 100644 index 00000000..6edb5de0 --- /dev/null +++ b/packages/conformance/ui-conformance/README.md @@ -0,0 +1,9 @@ +# @commonalityco/ui-conformance + +> Get conformance information about a local project + +## Installation + +```sh +npm install @commonalityco/ui-conformance +``` diff --git a/packages/feature-constraints/commonality.json b/packages/conformance/ui-conformance/commonality.json similarity index 100% rename from packages/feature-constraints/commonality.json rename to packages/conformance/ui-conformance/commonality.json diff --git a/packages/conformance/ui-conformance/package.json b/packages/conformance/ui-conformance/package.json new file mode 100644 index 00000000..33b953d7 --- /dev/null +++ b/packages/conformance/ui-conformance/package.json @@ -0,0 +1,62 @@ +{ + "name": "@commonalityco/ui-conformance", + "version": "0.0.1", + "type": "module", + "publishConfig": { + "access": "public" + }, + "files": [ + "dist" + ], + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": "./dist/index.js" + }, + "license": "MIT", + "scripts": { + "build": "tsc --build", + "dev": "tsc --watch", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "test": "vitest", + "type-check": "tsc --noEmit" + }, + "devDependencies": { + "@commonalityco/config-tsconfig": "workspace:*", + "@commonalityco/types": "workspace:*", + "@commonalityco/ui-design-system": "workspace:*", + "@commonalityco/utils-conformance": "workspace:*", + "@commonalityco/utils-core": "workspace:*", + "@testing-library/jest-dom": "^6.1.3", + "@testing-library/react": "^14.0.0", + "@types/fs-extra": "^11.0.2", + "@types/lodash-es": "^4.17.12", + "@types/mock-fs": "^4.13.4", + "@types/react": "^18.2.22", + "eslint-config-commonality": "workspace:*", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "typescript": "^5.2.2" + }, + "peerDependencies": { + "@commonalityco/ui-design-system": "*", + "@commonalityco/utils-core": "*", + "react": ">=18", + "react-dom": ">=18" + }, + "dependencies": { + "@tanstack/react-table": "^8.10.1", + "chalk": "^5.3.0", + "detect-indent": "^7.0.1", + "fs-extra": "^11.1.1", + "jest-diff": "^29.7.0", + "lodash-es": "^4.17.21", + "lucide-react": "^0.274.0", + "mock-fs": "^5.2.0", + "pathe": "^1.1.1", + "server-only": "^0.0.1", + "strip-ansi": "^7.1.0" + }, + "repository": "https://github.com/commonalityco/commonality/packages/conformance/ui-conformance" +} \ No newline at end of file diff --git a/packages/feature-conformance/src/ui/conformance-header.tsx b/packages/conformance/ui-conformance/src/conformance-header.tsx similarity index 96% rename from packages/feature-conformance/src/ui/conformance-header.tsx rename to packages/conformance/ui-conformance/src/conformance-header.tsx index 09c6486a..6a61f7be 100644 --- a/packages/feature-conformance/src/ui/conformance-header.tsx +++ b/packages/conformance/ui-conformance/src/conformance-header.tsx @@ -8,7 +8,7 @@ import { import { ChevronDown } from 'lucide-react'; import React from 'react'; import { ConformanceResults, StatusCount } from './conformance-results-list'; -import type { ConformanceResult } from '../utils/get-conformance-results'; +import type { ConformanceResult } from '@commonalityco/utils-conformance'; import { Status } from '@commonalityco/utils-core'; export function ConformanceHeader({ diff --git a/packages/feature-conformance/src/ui/conformance-results-list.tsx b/packages/conformance/ui-conformance/src/conformance-results-list.tsx similarity index 98% rename from packages/feature-conformance/src/ui/conformance-results-list.tsx rename to packages/conformance/ui-conformance/src/conformance-results-list.tsx index 4e94216f..86197b6e 100644 --- a/packages/feature-conformance/src/ui/conformance-results-list.tsx +++ b/packages/conformance/ui-conformance/src/conformance-results-list.tsx @@ -21,8 +21,10 @@ import { X, } from 'lucide-react'; import { Fragment, useMemo } from 'react'; -import { getStatusForResults } from '../utils/get-status-for-results'; -import type { ConformanceResult } from '../utils/get-conformance-results'; +import { + getStatusForResults, + ConformanceResult, +} from '@commonalityco/utils-conformance'; export function CheckTitle({ result }: { result: ConformanceResult }) { const getStatusText = () => { diff --git a/packages/feature-conformance/src/ui/index.ts b/packages/conformance/ui-conformance/src/index.ts similarity index 100% rename from packages/feature-conformance/src/ui/index.ts rename to packages/conformance/ui-conformance/src/index.ts diff --git a/packages/feature-conformance/src/ui/packages-table.test.tsx b/packages/conformance/ui-conformance/src/packages-table.test.tsx similarity index 100% rename from packages/feature-conformance/src/ui/packages-table.test.tsx rename to packages/conformance/ui-conformance/src/packages-table.test.tsx diff --git a/packages/feature-conformance/src/ui/packages-table.tsx b/packages/conformance/ui-conformance/src/packages-table.tsx similarity index 98% rename from packages/feature-conformance/src/ui/packages-table.tsx rename to packages/conformance/ui-conformance/src/packages-table.tsx index 106f3bdc..9a1ef5cc 100644 --- a/packages/feature-conformance/src/ui/packages-table.tsx +++ b/packages/conformance/ui-conformance/src/packages-table.tsx @@ -34,14 +34,16 @@ import { Status, formatTagName } from '@commonalityco/utils-core'; import { getIconForPackage } from '@commonalityco/utils-core/ui'; import { Package } from '@commonalityco/types'; import { ChevronDown, Plus } from 'lucide-react'; -import type { ConformanceResult } from '../utils/get-conformance-results'; import { CheckContent, CheckTitle, FilterTitle, StatusCount, } from './conformance-results-list'; -import { getStatusForResults } from '../utils/get-status-for-results'; +import { + getStatusForResults, + ConformanceResult, +} from '@commonalityco/utils-conformance'; export type ColumnData = { package: Package; diff --git a/packages/feature-constraints/tsconfig.json b/packages/conformance/ui-conformance/tsconfig.json similarity index 70% rename from packages/feature-constraints/tsconfig.json rename to packages/conformance/ui-conformance/tsconfig.json index 99328c67..eb8ce742 100644 --- a/packages/feature-constraints/tsconfig.json +++ b/packages/conformance/ui-conformance/tsconfig.json @@ -4,6 +4,5 @@ "compilerOptions": { "outDir": "./dist", "typeRoots": ["./node_modules/@types"] - }, - "exclude": ["node_modules", "dist", "coverage", "graph-machine.typegen.ts"] + } } diff --git a/packages/conformance/ui-conformance/vitest.config.ts b/packages/conformance/ui-conformance/vitest.config.ts new file mode 100644 index 00000000..0343e5b4 --- /dev/null +++ b/packages/conformance/ui-conformance/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ test: { globals: true } }); diff --git a/packages/data-project/.eslintrc.cjs b/packages/conformance/utils-conformance/.eslintrc.cjs similarity index 100% rename from packages/data-project/.eslintrc.cjs rename to packages/conformance/utils-conformance/.eslintrc.cjs diff --git a/packages/conformance/utils-conformance/README.md b/packages/conformance/utils-conformance/README.md new file mode 100644 index 00000000..e8bc26b6 --- /dev/null +++ b/packages/conformance/utils-conformance/README.md @@ -0,0 +1,9 @@ +# @commonalityco/utils-conformance + +> Get conformance information about a local project + +## Installation + +```sh +npm install @commonalityco/utils-conformance +``` diff --git a/packages/conformance/utils-conformance/commonality.json b/packages/conformance/utils-conformance/commonality.json new file mode 100644 index 00000000..4c34efa6 --- /dev/null +++ b/packages/conformance/utils-conformance/commonality.json @@ -0,0 +1 @@ +{"tags":["internal","feature"]} diff --git a/packages/feature-conformance/package.json b/packages/conformance/utils-conformance/package.json similarity index 76% rename from packages/feature-conformance/package.json rename to packages/conformance/utils-conformance/package.json index 7797ca26..a03a8536 100644 --- a/packages/feature-conformance/package.json +++ b/packages/conformance/utils-conformance/package.json @@ -1,25 +1,18 @@ { - "name": "@commonalityco/feature-conformance", + "name": "@commonalityco/utils-conformance", "description": "Get conformance information about a local project", "version": "0.0.20", "type": "module", "publishConfig": { - "access": "public", - "main": "./dist/index.js", - "exports": { - ".": "./dist/index.js", - "./ui": "./dist/ui/index.js", - "./utilities": "./dist/utils/index.js" - }, - "types": "./dist/index.d.ts" + "access": "public" }, "files": [ "dist" ], + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": "./src/index.ts", - "./ui": "./src/ui/index.ts", - "./utilities": "./src/utils/index.ts" + ".": "./dist/index.js" }, "license": "MIT", "scripts": { @@ -65,7 +58,5 @@ "server-only": "^0.0.1", "strip-ansi": "^7.1.0" }, - "main": "./src/index.ts", - "types": "./src/index.ts", - "repository": "https://github.com/commonalityco/commonality/packages/feature-conformance" -} + "repository": "https://github.com/commonalityco/commonality/packages/conformance/utils-conformance" +} \ No newline at end of file diff --git a/packages/feature-conformance/src/utils/create-test-check.ts b/packages/conformance/utils-conformance/src/create-test-check.ts similarity index 100% rename from packages/feature-conformance/src/utils/create-test-check.ts rename to packages/conformance/utils-conformance/src/create-test-check.ts diff --git a/packages/feature-conformance/src/utils/define-check.ts b/packages/conformance/utils-conformance/src/define-check.ts similarity index 100% rename from packages/feature-conformance/src/utils/define-check.ts rename to packages/conformance/utils-conformance/src/define-check.ts diff --git a/packages/feature-conformance/src/utils/diff.test.ts b/packages/conformance/utils-conformance/src/diff.test.ts similarity index 100% rename from packages/feature-conformance/src/utils/diff.test.ts rename to packages/conformance/utils-conformance/src/diff.test.ts diff --git a/packages/feature-conformance/src/utils/diff.ts b/packages/conformance/utils-conformance/src/diff.ts similarity index 100% rename from packages/feature-conformance/src/utils/diff.ts rename to packages/conformance/utils-conformance/src/diff.ts diff --git a/packages/feature-conformance/src/utils/get-conformance-results.test.ts b/packages/conformance/utils-conformance/src/get-conformance-results.test.ts similarity index 100% rename from packages/feature-conformance/src/utils/get-conformance-results.test.ts rename to packages/conformance/utils-conformance/src/get-conformance-results.test.ts diff --git a/packages/feature-conformance/src/utils/get-conformance-results.ts b/packages/conformance/utils-conformance/src/get-conformance-results.ts similarity index 100% rename from packages/feature-conformance/src/utils/get-conformance-results.ts rename to packages/conformance/utils-conformance/src/get-conformance-results.ts diff --git a/packages/feature-conformance/src/utils/get-status-for-results.ts b/packages/conformance/utils-conformance/src/get-status-for-results.ts similarity index 86% rename from packages/feature-conformance/src/utils/get-status-for-results.ts rename to packages/conformance/utils-conformance/src/get-status-for-results.ts index f61ee4f4..b9918013 100644 --- a/packages/feature-conformance/src/utils/get-status-for-results.ts +++ b/packages/conformance/utils-conformance/src/get-status-for-results.ts @@ -1,4 +1,4 @@ -import type { ConformanceResult } from '../utils/get-conformance-results'; +import type { ConformanceResult } from './get-conformance-results'; import { Status } from '@commonalityco/utils-core'; export const getStatusForResults = (results: ConformanceResult[]) => { diff --git a/packages/feature-conformance/src/utils/index.ts b/packages/conformance/utils-conformance/src/index.ts similarity index 81% rename from packages/feature-conformance/src/utils/index.ts rename to packages/conformance/utils-conformance/src/index.ts index d24c9fdb..fb8850c0 100644 --- a/packages/feature-conformance/src/utils/index.ts +++ b/packages/conformance/utils-conformance/src/index.ts @@ -2,7 +2,5 @@ export * from './get-status-for-results'; export * from './run-fixes'; export * from './get-conformance-results'; export * from './diff'; -export * from './json'; -export * from './text'; export * from './create-test-check'; export * from './define-check'; diff --git a/packages/feature-conformance/src/utils/run-fixes.test.ts b/packages/conformance/utils-conformance/src/run-fixes.test.ts similarity index 96% rename from packages/feature-conformance/src/utils/run-fixes.test.ts rename to packages/conformance/utils-conformance/src/run-fixes.test.ts index 97915bde..d148e096 100644 --- a/packages/feature-conformance/src/utils/run-fixes.test.ts +++ b/packages/conformance/utils-conformance/src/run-fixes.test.ts @@ -2,7 +2,7 @@ import { describe, expect, it, vi } from 'vitest'; import { runFixes } from './run-fixes'; import { Package, TagsData, CodeownersData } from '@commonalityco/types'; import { PackageType, Status } from '@commonalityco/utils-core'; -import type { ConformanceResult } from '../utils/get-conformance-results'; +import type { ConformanceResult } from './get-conformance-results'; describe('runFixes', () => { it('should call .fix with correct arguments', async () => { diff --git a/packages/feature-conformance/src/utils/run-fixes.ts b/packages/conformance/utils-conformance/src/run-fixes.ts similarity index 100% rename from packages/feature-conformance/src/utils/run-fixes.ts rename to packages/conformance/utils-conformance/src/run-fixes.ts diff --git a/packages/conformance/utils-conformance/tsconfig.json b/packages/conformance/utils-conformance/tsconfig.json new file mode 100644 index 00000000..eb8ce742 --- /dev/null +++ b/packages/conformance/utils-conformance/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@commonalityco/config-tsconfig/react.json", + "include": ["src/**/*.ts", "src/**/*.tsx"], + "compilerOptions": { + "outDir": "./dist", + "typeRoots": ["./node_modules/@types"] + } +} diff --git a/packages/conformance/utils-conformance/vitest.config.ts b/packages/conformance/utils-conformance/vitest.config.ts new file mode 100644 index 00000000..0343e5b4 --- /dev/null +++ b/packages/conformance/utils-conformance/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ test: { globals: true } }); diff --git a/packages/data-tags/.eslintrc.cjs b/packages/constraints/data-constraints/.eslintrc.cjs similarity index 100% rename from packages/data-tags/.eslintrc.cjs rename to packages/constraints/data-constraints/.eslintrc.cjs diff --git a/packages/constraints/data-constraints/README.md b/packages/constraints/data-constraints/README.md new file mode 100644 index 00000000..f3ce7714 --- /dev/null +++ b/packages/constraints/data-constraints/README.md @@ -0,0 +1,7 @@ +# @commonalityco/data-constraints + +## Installation + +```sh +npm install @commonalityco/data-conformance +``` diff --git a/packages/constraints/data-constraints/commonality.json b/packages/constraints/data-constraints/commonality.json new file mode 100644 index 00000000..4c34efa6 --- /dev/null +++ b/packages/constraints/data-constraints/commonality.json @@ -0,0 +1 @@ +{"tags":["internal","feature"]} diff --git a/packages/feature-constraints/package.json b/packages/constraints/data-constraints/package.json similarity index 73% rename from packages/feature-constraints/package.json rename to packages/constraints/data-constraints/package.json index 9c5c8bfd..26d45fab 100644 --- a/packages/feature-constraints/package.json +++ b/packages/constraints/data-constraints/package.json @@ -1,25 +1,14 @@ { - "name": "@commonalityco/feature-constraints", - "description": "Get conformance information about a local project", - "version": "0.0.18", + "name": "@commonalityco/data-constraints", + "version": "0.0.1", "type": "module", "publishConfig": { - "access": "public", - "main": "./dist/index.js", - "exports": { - ".": "./dist/index.js", - "./components": "./dist/components/index.js", - "./state": "./dist/state/index.js", - "./utilities": "./dist/utilities/index.js" - }, - "types": "./dist/index.d.ts" + "access": "public" }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": "./src/index.ts", - "./components": "./src/components/index.ts", - "./data": "./src/data/index.ts", - "./state": "./src/state/index.ts", - "./utilities": "./src/utilities/index.ts" + ".": "./dist/index.js" }, "license": "MIT", "scripts": { @@ -82,7 +71,5 @@ "strip-ansi": "^7.1.0", "xstate": "^4.38.2" }, - "main": "./src/index.ts", - "types": "./src/index.ts", - "repository": "https://github.com/commonalityco/commonality/packages/feature-constraints" -} + "repository": "https://github.com/commonalityco/commonality/packages/constraints/data-constraints" +} \ No newline at end of file diff --git a/packages/feature-constraints/src/components/get-constraint-results.test.ts b/packages/constraints/data-constraints/src/get-constraint-results.test.ts similarity index 99% rename from packages/feature-constraints/src/components/get-constraint-results.test.ts rename to packages/constraints/data-constraints/src/get-constraint-results.test.ts index 7d97ece0..53667540 100644 --- a/packages/feature-constraints/src/components/get-constraint-results.test.ts +++ b/packages/constraints/data-constraints/src/get-constraint-results.test.ts @@ -1,5 +1,5 @@ import { DependencyType } from '@commonalityco/utils-core'; -import { getConstraintResults } from '../data/get-constraint-results'; +import { getConstraintResults } from './get-constraint-results'; import { describe, expect, test } from 'vitest'; describe('get-constraint-results', () => { diff --git a/packages/feature-constraints/src/data/get-constraint-results.ts b/packages/constraints/data-constraints/src/get-constraint-results.ts similarity index 100% rename from packages/feature-constraints/src/data/get-constraint-results.ts rename to packages/constraints/data-constraints/src/get-constraint-results.ts diff --git a/packages/feature-constraints/src/data/index.ts b/packages/constraints/data-constraints/src/index.ts similarity index 100% rename from packages/feature-constraints/src/data/index.ts rename to packages/constraints/data-constraints/src/index.ts diff --git a/packages/constraints/data-constraints/tsconfig.json b/packages/constraints/data-constraints/tsconfig.json new file mode 100644 index 00000000..eb8ce742 --- /dev/null +++ b/packages/constraints/data-constraints/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@commonalityco/config-tsconfig/react.json", + "include": ["src/**/*.ts", "src/**/*.tsx"], + "compilerOptions": { + "outDir": "./dist", + "typeRoots": ["./node_modules/@types"] + } +} diff --git a/packages/constraints/data-constraints/vitest.config.ts b/packages/constraints/data-constraints/vitest.config.ts new file mode 100644 index 00000000..0343e5b4 --- /dev/null +++ b/packages/constraints/data-constraints/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ test: { globals: true } }); diff --git a/packages/feature-constraints/.eslintignore b/packages/constraints/state-constraints/.eslintignore similarity index 100% rename from packages/feature-constraints/.eslintignore rename to packages/constraints/state-constraints/.eslintignore diff --git a/packages/feature-conformance/.eslintrc.cjs b/packages/constraints/state-constraints/.eslintrc.cjs similarity index 100% rename from packages/feature-conformance/.eslintrc.cjs rename to packages/constraints/state-constraints/.eslintrc.cjs diff --git a/packages/constraints/state-constraints/README.md b/packages/constraints/state-constraints/README.md new file mode 100644 index 00000000..6edb5de0 --- /dev/null +++ b/packages/constraints/state-constraints/README.md @@ -0,0 +1,9 @@ +# @commonalityco/ui-conformance + +> Get conformance information about a local project + +## Installation + +```sh +npm install @commonalityco/ui-conformance +``` diff --git a/packages/constraints/state-constraints/commonality.json b/packages/constraints/state-constraints/commonality.json new file mode 100644 index 00000000..4c34efa6 --- /dev/null +++ b/packages/constraints/state-constraints/commonality.json @@ -0,0 +1 @@ +{"tags":["internal","feature"]} diff --git a/packages/constraints/state-constraints/package.json b/packages/constraints/state-constraints/package.json new file mode 100644 index 00000000..9e0d8b69 --- /dev/null +++ b/packages/constraints/state-constraints/package.json @@ -0,0 +1,76 @@ +{ + "name": "@commonalityco/state-constraints", + "version": "0.0.1", + "type": "module", + "publishConfig": { + "access": "public" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": "./dist/index.js" + }, + "license": "MIT", + "scripts": { + "build": "tsc --build", + "dev": "tsc --watch", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "test": "vitest", + "type-check": "tsc --noEmit" + }, + "devDependencies": { + "@commonalityco/config-tsconfig": "workspace:*", + "@commonalityco/types": "workspace:*", + "@commonalityco/ui-core": "workspace:*", + "@commonalityco/ui-design-system": "workspace:*", + "@commonalityco/utils-constraints": "workspace:*", + "@commonalityco/utils-core": "workspace:*", + "@commonalityco/utils-package": "workspace:*", + "@testing-library/jest-dom": "^6.1.3", + "@testing-library/react": "^14.0.0", + "@types/crypto-js": "^4.2.1", + "@types/cytoscape": "^3.19.16", + "@types/cytoscape-dagre": "^2.3.3", + "@types/cytoscape-popper": "^2.0.4", + "@types/fs-extra": "^11.0.2", + "@types/lodash": "^4.14.198", + "@types/lodash-es": "^4.17.12", + "@types/mock-fs": "^4.13.4", + "@types/react": "^18.2.22", + "cytoscape": "^3.26.0", + "eslint-config-commonality": "workspace:*", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "typescript": "^5.2.2" + }, + "peerDependencies": { + "@commonalityco/ui-core": "*", + "@commonalityco/ui-design-system": "*", + "@commonalityco/utils-package": "*", + "react": ">=18", + "react-dom": ">=18" + }, + "dependencies": { + "@floating-ui/react": "^0.26.3", + "@tanstack/react-table": "^8.10.1", + "@xstate/react": "^3.2.2", + "chalk": "^5.3.0", + "crypto-js": "^4.2.0", + "cytoscape-dagre": "^2.5.0", + "cytoscape-popper": "^2.0.0", + "detect-indent": "^7.0.1", + "fs-extra": "^11.1.1", + "jest-diff": "^29.7.0", + "localforage": "^1.10.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "lucide-react": "^0.274.0", + "mock-fs": "^5.2.0", + "react-resizable-panels": "^0.0.63", + "server-only": "^0.0.1", + "strip-ansi": "^7.1.0", + "xstate": "^4.38.2" + }, + "repository": "https://github.com/commonalityco/commonality/packages/constraints/state-constraints" +} \ No newline at end of file diff --git a/packages/feature-constraints/src/state/graph-machine.ts b/packages/constraints/state-constraints/src/graph-machine.ts similarity index 99% rename from packages/feature-constraints/src/state/graph-machine.ts rename to packages/constraints/state-constraints/src/graph-machine.ts index 609bbfef..48b77444 100644 --- a/packages/feature-constraints/src/state/graph-machine.ts +++ b/packages/constraints/state-constraints/src/graph-machine.ts @@ -10,7 +10,7 @@ import { showAll, showDependants, showDependencies, -} from '../utilities/actions'; +} from '@commonalityco/utils-constraints'; import type { ConstraintResult, Package } from '@commonalityco/types'; import { assign, createMachine } from 'xstate'; import type { @@ -26,7 +26,7 @@ import { createRenderGraph, createTraversalGraph, updateGraphElements, -} from '../utilities'; +} from '@commonalityco/utils-constraints'; type Filter = | Selector diff --git a/packages/feature-constraints/src/state/graph-machine.typegen.ts b/packages/constraints/state-constraints/src/graph-machine.typegen.ts similarity index 100% rename from packages/feature-constraints/src/state/graph-machine.typegen.ts rename to packages/constraints/state-constraints/src/graph-machine.typegen.ts diff --git a/packages/feature-constraints/src/state/index.ts b/packages/constraints/state-constraints/src/index.ts similarity index 100% rename from packages/feature-constraints/src/state/index.ts rename to packages/constraints/state-constraints/src/index.ts diff --git a/packages/constraints/state-constraints/tsconfig.json b/packages/constraints/state-constraints/tsconfig.json new file mode 100644 index 00000000..eb8ce742 --- /dev/null +++ b/packages/constraints/state-constraints/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@commonalityco/config-tsconfig/react.json", + "include": ["src/**/*.ts", "src/**/*.tsx"], + "compilerOptions": { + "outDir": "./dist", + "typeRoots": ["./node_modules/@types"] + } +} diff --git a/packages/constraints/state-constraints/vitest.config.ts b/packages/constraints/state-constraints/vitest.config.ts new file mode 100644 index 00000000..0343e5b4 --- /dev/null +++ b/packages/constraints/state-constraints/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ test: { globals: true } }); diff --git a/packages/feature-constraints/.eslintrc.cjs b/packages/constraints/ui-constraints/.eslintrc.cjs similarity index 100% rename from packages/feature-constraints/.eslintrc.cjs rename to packages/constraints/ui-constraints/.eslintrc.cjs diff --git a/packages/constraints/ui-constraints/README.md b/packages/constraints/ui-constraints/README.md new file mode 100644 index 00000000..6edb5de0 --- /dev/null +++ b/packages/constraints/ui-constraints/README.md @@ -0,0 +1,9 @@ +# @commonalityco/ui-conformance + +> Get conformance information about a local project + +## Installation + +```sh +npm install @commonalityco/ui-conformance +``` diff --git a/packages/constraints/ui-constraints/commonality.json b/packages/constraints/ui-constraints/commonality.json new file mode 100644 index 00000000..4c34efa6 --- /dev/null +++ b/packages/constraints/ui-constraints/commonality.json @@ -0,0 +1 @@ +{"tags":["internal","feature"]} diff --git a/packages/constraints/ui-constraints/package.json b/packages/constraints/ui-constraints/package.json new file mode 100644 index 00000000..e1f5ce03 --- /dev/null +++ b/packages/constraints/ui-constraints/package.json @@ -0,0 +1,77 @@ +{ + "name": "@commonalityco/ui-constraints", + "version": "0.0.1", + "type": "module", + "publishConfig": { + "access": "public" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": "./dist/index.js" + }, + "license": "MIT", + "scripts": { + "build": "tsc --build", + "dev": "tsc --watch", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "test": "vitest", + "type-check": "tsc --noEmit" + }, + "devDependencies": { + "@commonalityco/config-tsconfig": "workspace:*", + "@commonalityco/state-constraints": "workspace:*", + "@commonalityco/types": "workspace:*", + "@commonalityco/ui-core": "workspace:*", + "@commonalityco/ui-design-system": "workspace:*", + "@commonalityco/utils-constraints": "workspace:*", + "@commonalityco/utils-core": "workspace:*", + "@commonalityco/utils-package": "workspace:*", + "@testing-library/jest-dom": "^6.1.3", + "@testing-library/react": "^14.0.0", + "@types/crypto-js": "^4.2.1", + "@types/cytoscape": "^3.19.16", + "@types/cytoscape-dagre": "^2.3.3", + "@types/cytoscape-popper": "^2.0.4", + "@types/fs-extra": "^11.0.2", + "@types/lodash": "^4.14.198", + "@types/lodash-es": "^4.17.12", + "@types/mock-fs": "^4.13.4", + "@types/react": "^18.2.22", + "cytoscape": "^3.26.0", + "eslint-config-commonality": "workspace:*", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "typescript": "^5.2.2" + }, + "peerDependencies": { + "@commonalityco/ui-core": "*", + "@commonalityco/ui-design-system": "*", + "@commonalityco/utils-package": "*", + "react": ">=18", + "react-dom": ">=18" + }, + "dependencies": { + "@floating-ui/react": "^0.26.3", + "@tanstack/react-table": "^8.10.1", + "@xstate/react": "^3.2.2", + "chalk": "^5.3.0", + "crypto-js": "^4.2.0", + "cytoscape-dagre": "^2.5.0", + "cytoscape-popper": "^2.0.0", + "detect-indent": "^7.0.1", + "fs-extra": "^11.1.1", + "jest-diff": "^29.7.0", + "localforage": "^1.10.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "lucide-react": "^0.274.0", + "mock-fs": "^5.2.0", + "react-resizable-panels": "^0.0.63", + "server-only": "^0.0.1", + "strip-ansi": "^7.1.0", + "xstate": "^4.38.2" + }, + "repository": "https://github.com/commonalityco/commonality/packages/constraints/ui-constraints" +} \ No newline at end of file diff --git a/packages/feature-constraints/src/components/constraint-results.tsx b/packages/constraints/ui-constraints/src/constraint-results.tsx similarity index 100% rename from packages/feature-constraints/src/components/constraint-results.tsx rename to packages/constraints/ui-constraints/src/constraint-results.tsx diff --git a/packages/feature-constraints/src/components/feature-graph-chart.tsx b/packages/constraints/ui-constraints/src/feature-graph-chart.tsx similarity index 97% rename from packages/feature-constraints/src/components/feature-graph-chart.tsx rename to packages/constraints/ui-constraints/src/feature-graph-chart.tsx index 8d35fb0d..6727b410 100644 --- a/packages/feature-constraints/src/components/feature-graph-chart.tsx +++ b/packages/constraints/ui-constraints/src/feature-graph-chart.tsx @@ -7,7 +7,7 @@ import { GraphContext } from './graph-provider'; import FeatureGraphToolbar from './feature-graph-toolbar'; import { cn } from '@commonalityco/ui-design-system/cn'; import debounce from 'lodash/debounce'; -import { getElementDefinitions } from '../utilities'; +import { getElementDefinitions } from '@commonalityco/utils-constraints'; import { ProjectConfig } from '@commonalityco/utils-core'; interface GraphProperties { diff --git a/packages/feature-constraints/src/components/feature-graph-dependency-tooltip.tsx b/packages/constraints/ui-constraints/src/feature-graph-dependency-tooltip.tsx similarity index 100% rename from packages/feature-constraints/src/components/feature-graph-dependency-tooltip.tsx rename to packages/constraints/ui-constraints/src/feature-graph-dependency-tooltip.tsx diff --git a/packages/feature-constraints/src/components/feature-graph-header.tsx b/packages/constraints/ui-constraints/src/feature-graph-header.tsx similarity index 100% rename from packages/feature-constraints/src/components/feature-graph-header.tsx rename to packages/constraints/ui-constraints/src/feature-graph-header.tsx diff --git a/packages/feature-constraints/src/components/feature-graph-package-tooltip.tsx b/packages/constraints/ui-constraints/src/feature-graph-package-tooltip.tsx similarity index 100% rename from packages/feature-constraints/src/components/feature-graph-package-tooltip.tsx rename to packages/constraints/ui-constraints/src/feature-graph-package-tooltip.tsx diff --git a/packages/feature-constraints/src/components/feature-graph-sidebar.tsx b/packages/constraints/ui-constraints/src/feature-graph-sidebar.tsx similarity index 100% rename from packages/feature-constraints/src/components/feature-graph-sidebar.tsx rename to packages/constraints/ui-constraints/src/feature-graph-sidebar.tsx diff --git a/packages/feature-constraints/src/components/feature-graph-toolbar.tsx b/packages/constraints/ui-constraints/src/feature-graph-toolbar.tsx similarity index 100% rename from packages/feature-constraints/src/components/feature-graph-toolbar.tsx rename to packages/constraints/ui-constraints/src/feature-graph-toolbar.tsx diff --git a/packages/feature-constraints/src/components/graph-chart-loading.tsx b/packages/constraints/ui-constraints/src/graph-chart-loading.tsx similarity index 100% rename from packages/feature-constraints/src/components/graph-chart-loading.tsx rename to packages/constraints/ui-constraints/src/graph-chart-loading.tsx diff --git a/packages/feature-constraints/src/components/graph-chart.tsx b/packages/constraints/ui-constraints/src/graph-chart.tsx similarity index 100% rename from packages/feature-constraints/src/components/graph-chart.tsx rename to packages/constraints/ui-constraints/src/graph-chart.tsx diff --git a/packages/feature-constraints/src/components/graph-header.tsx b/packages/constraints/ui-constraints/src/graph-header.tsx similarity index 100% rename from packages/feature-constraints/src/components/graph-header.tsx rename to packages/constraints/ui-constraints/src/graph-header.tsx diff --git a/packages/feature-constraints/src/components/graph-layout.tsx b/packages/constraints/ui-constraints/src/graph-layout.tsx similarity index 100% rename from packages/feature-constraints/src/components/graph-layout.tsx rename to packages/constraints/ui-constraints/src/graph-layout.tsx diff --git a/packages/feature-constraints/src/components/graph-provider.tsx b/packages/constraints/ui-constraints/src/graph-provider.tsx similarity index 89% rename from packages/feature-constraints/src/components/graph-provider.tsx rename to packages/constraints/ui-constraints/src/graph-provider.tsx index edb24a17..947cfac6 100644 --- a/packages/feature-constraints/src/components/graph-provider.tsx +++ b/packages/constraints/ui-constraints/src/graph-provider.tsx @@ -1,7 +1,7 @@ 'use client'; import 'xstate'; import { createActorContext } from '@xstate/react'; -import { graphMachine } from '../state/graph-machine'; +import { graphMachine } from '@commonalityco/state-constraints'; export const GraphContext: ReturnType< typeof createActorContext diff --git a/packages/feature-constraints/src/components/graph-toolbar.tsx b/packages/constraints/ui-constraints/src/graph-toolbar.tsx similarity index 100% rename from packages/feature-constraints/src/components/graph-toolbar.tsx rename to packages/constraints/ui-constraints/src/graph-toolbar.tsx diff --git a/packages/feature-constraints/src/components/graph-tooltip.tsx b/packages/constraints/ui-constraints/src/graph-tooltip.tsx similarity index 100% rename from packages/feature-constraints/src/components/graph-tooltip.tsx rename to packages/constraints/ui-constraints/src/graph-tooltip.tsx diff --git a/packages/feature-constraints/src/components/index.ts b/packages/constraints/ui-constraints/src/index.ts similarity index 100% rename from packages/feature-constraints/src/components/index.ts rename to packages/constraints/ui-constraints/src/index.ts diff --git a/packages/feature-constraints/src/components/packages-filter-section.tsx b/packages/constraints/ui-constraints/src/packages-filter-section.tsx similarity index 100% rename from packages/feature-constraints/src/components/packages-filter-section.tsx rename to packages/constraints/ui-constraints/src/packages-filter-section.tsx diff --git a/packages/feature-constraints/src/components/sidebar.test.tsx b/packages/constraints/ui-constraints/src/sidebar.test.tsx similarity index 100% rename from packages/feature-constraints/src/components/sidebar.test.tsx rename to packages/constraints/ui-constraints/src/sidebar.test.tsx diff --git a/packages/feature-constraints/src/components/sidebar.tsx b/packages/constraints/ui-constraints/src/sidebar.tsx similarity index 100% rename from packages/feature-constraints/src/components/sidebar.tsx rename to packages/constraints/ui-constraints/src/sidebar.tsx diff --git a/packages/feature-constraints/src/components/tooltip-dependency.tsx b/packages/constraints/ui-constraints/src/tooltip-dependency.tsx similarity index 100% rename from packages/feature-constraints/src/components/tooltip-dependency.tsx rename to packages/constraints/ui-constraints/src/tooltip-dependency.tsx diff --git a/packages/feature-constraints/src/components/tooltip-package.tsx b/packages/constraints/ui-constraints/src/tooltip-package.tsx similarity index 100% rename from packages/feature-constraints/src/components/tooltip-package.tsx rename to packages/constraints/ui-constraints/src/tooltip-package.tsx diff --git a/packages/constraints/ui-constraints/tsconfig.json b/packages/constraints/ui-constraints/tsconfig.json new file mode 100644 index 00000000..eb8ce742 --- /dev/null +++ b/packages/constraints/ui-constraints/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@commonalityco/config-tsconfig/react.json", + "include": ["src/**/*.ts", "src/**/*.tsx"], + "compilerOptions": { + "outDir": "./dist", + "typeRoots": ["./node_modules/@types"] + } +} diff --git a/packages/constraints/ui-constraints/vitest.config.ts b/packages/constraints/ui-constraints/vitest.config.ts new file mode 100644 index 00000000..0343e5b4 --- /dev/null +++ b/packages/constraints/ui-constraints/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ test: { globals: true } }); diff --git a/packages/types/.eslintrc.cjs b/packages/constraints/utils-constraints/.eslintrc.cjs similarity index 100% rename from packages/types/.eslintrc.cjs rename to packages/constraints/utils-constraints/.eslintrc.cjs diff --git a/packages/constraints/utils-constraints/README.md b/packages/constraints/utils-constraints/README.md new file mode 100644 index 00000000..6edb5de0 --- /dev/null +++ b/packages/constraints/utils-constraints/README.md @@ -0,0 +1,9 @@ +# @commonalityco/ui-conformance + +> Get conformance information about a local project + +## Installation + +```sh +npm install @commonalityco/ui-conformance +``` diff --git a/packages/constraints/utils-constraints/commonality.json b/packages/constraints/utils-constraints/commonality.json new file mode 100644 index 00000000..4c34efa6 --- /dev/null +++ b/packages/constraints/utils-constraints/commonality.json @@ -0,0 +1 @@ +{"tags":["internal","feature"]} diff --git a/packages/constraints/utils-constraints/package.json b/packages/constraints/utils-constraints/package.json new file mode 100644 index 00000000..785ae776 --- /dev/null +++ b/packages/constraints/utils-constraints/package.json @@ -0,0 +1,75 @@ +{ + "name": "@commonalityco/utils-constraints", + "version": "0.0.1", + "type": "module", + "publishConfig": { + "access": "public" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": "./dist/index.js" + }, + "license": "MIT", + "scripts": { + "build": "tsc --build", + "dev": "tsc --watch", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "test": "vitest", + "type-check": "tsc --noEmit" + }, + "devDependencies": { + "@commonalityco/config-tsconfig": "workspace:*", + "@commonalityco/types": "workspace:*", + "@commonalityco/ui-core": "workspace:*", + "@commonalityco/ui-design-system": "workspace:*", + "@commonalityco/utils-core": "workspace:*", + "@commonalityco/utils-package": "workspace:*", + "@testing-library/jest-dom": "^6.1.3", + "@testing-library/react": "^14.0.0", + "@types/crypto-js": "^4.2.1", + "@types/cytoscape": "^3.19.16", + "@types/cytoscape-dagre": "^2.3.3", + "@types/cytoscape-popper": "^2.0.4", + "@types/fs-extra": "^11.0.2", + "@types/lodash": "^4.14.198", + "@types/lodash-es": "^4.17.12", + "@types/mock-fs": "^4.13.4", + "@types/react": "^18.2.22", + "cytoscape": "^3.26.0", + "eslint-config-commonality": "workspace:*", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "typescript": "^5.2.2" + }, + "peerDependencies": { + "@commonalityco/ui-core": "*", + "@commonalityco/ui-design-system": "*", + "@commonalityco/utils-package": "*", + "react": ">=18", + "react-dom": ">=18" + }, + "dependencies": { + "@floating-ui/react": "^0.26.3", + "@tanstack/react-table": "^8.10.1", + "@xstate/react": "^3.2.2", + "chalk": "^5.3.0", + "crypto-js": "^4.2.0", + "cytoscape-dagre": "^2.5.0", + "cytoscape-popper": "^2.0.0", + "detect-indent": "^7.0.1", + "fs-extra": "^11.1.1", + "jest-diff": "^29.7.0", + "localforage": "^1.10.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "lucide-react": "^0.274.0", + "mock-fs": "^5.2.0", + "react-resizable-panels": "^0.0.63", + "server-only": "^0.0.1", + "strip-ansi": "^7.1.0", + "xstate": "^4.38.2" + }, + "repository": "https://github.com/commonalityco/commonality/packages/constraints/utils-constraints" +} \ No newline at end of file diff --git a/packages/feature-constraints/src/utilities/actions.test.ts b/packages/constraints/utils-constraints/src/actions.test.ts similarity index 100% rename from packages/feature-constraints/src/utilities/actions.test.ts rename to packages/constraints/utils-constraints/src/actions.test.ts diff --git a/packages/feature-constraints/src/utilities/actions.ts b/packages/constraints/utils-constraints/src/actions.ts similarity index 100% rename from packages/feature-constraints/src/utilities/actions.ts rename to packages/constraints/utils-constraints/src/actions.ts diff --git a/packages/feature-constraints/src/utilities/bind-render-graph-events.ts b/packages/constraints/utils-constraints/src/bind-render-graph-events.ts similarity index 100% rename from packages/feature-constraints/src/utilities/bind-render-graph-events.ts rename to packages/constraints/utils-constraints/src/bind-render-graph-events.ts diff --git a/packages/feature-constraints/src/utilities/create-render-graph.ts b/packages/constraints/utils-constraints/src/create-render-graph.ts similarity index 100% rename from packages/feature-constraints/src/utilities/create-render-graph.ts rename to packages/constraints/utils-constraints/src/create-render-graph.ts diff --git a/packages/feature-constraints/src/utilities/create-traversal-graph.ts b/packages/constraints/utils-constraints/src/create-traversal-graph.ts similarity index 100% rename from packages/feature-constraints/src/utilities/create-traversal-graph.ts rename to packages/constraints/utils-constraints/src/create-traversal-graph.ts diff --git a/packages/feature-constraints/src/utilities/create-worker.ts b/packages/constraints/utils-constraints/src/create-worker.ts similarity index 100% rename from packages/feature-constraints/src/utilities/create-worker.ts rename to packages/constraints/utils-constraints/src/create-worker.ts diff --git a/packages/feature-constraints/src/utilities/get-element-definitions-with-updated-layout.ts b/packages/constraints/utils-constraints/src/get-element-definitions-with-updated-layout.ts similarity index 100% rename from packages/feature-constraints/src/utilities/get-element-definitions-with-updated-layout.ts rename to packages/constraints/utils-constraints/src/get-element-definitions-with-updated-layout.ts diff --git a/packages/feature-constraints/src/utilities/get-element-definitions.ts b/packages/constraints/utils-constraints/src/get-element-definitions.ts similarity index 100% rename from packages/feature-constraints/src/utilities/get-element-definitions.ts rename to packages/constraints/utils-constraints/src/get-element-definitions.ts diff --git a/packages/feature-constraints/src/utilities/images/next-logo.svg b/packages/constraints/utils-constraints/src/images/next-logo.svg similarity index 100% rename from packages/feature-constraints/src/utilities/images/next-logo.svg rename to packages/constraints/utils-constraints/src/images/next-logo.svg diff --git a/packages/feature-constraints/src/utilities/images/node-logo.svg b/packages/constraints/utils-constraints/src/images/node-logo.svg similarity index 100% rename from packages/feature-constraints/src/utilities/images/node-logo.svg rename to packages/constraints/utils-constraints/src/images/node-logo.svg diff --git a/packages/feature-constraints/src/utilities/images/react-logo.svg b/packages/constraints/utils-constraints/src/images/react-logo.svg similarity index 100% rename from packages/feature-constraints/src/utilities/images/react-logo.svg rename to packages/constraints/utils-constraints/src/images/react-logo.svg diff --git a/packages/feature-constraints/src/utilities/images/storybook-logo.svg b/packages/constraints/utils-constraints/src/images/storybook-logo.svg similarity index 100% rename from packages/feature-constraints/src/utilities/images/storybook-logo.svg rename to packages/constraints/utils-constraints/src/images/storybook-logo.svg diff --git a/packages/feature-constraints/src/utilities/index.ts b/packages/constraints/utils-constraints/src/index.ts similarity index 100% rename from packages/feature-constraints/src/utilities/index.ts rename to packages/constraints/utils-constraints/src/index.ts diff --git a/packages/feature-constraints/src/utilities/layout-options.ts b/packages/constraints/utils-constraints/src/layout-options.ts similarity index 100% rename from packages/feature-constraints/src/utilities/layout-options.ts rename to packages/constraints/utils-constraints/src/layout-options.ts diff --git a/packages/feature-constraints/src/utilities/query-keys.ts b/packages/constraints/utils-constraints/src/query-keys.ts similarity index 100% rename from packages/feature-constraints/src/utilities/query-keys.ts rename to packages/constraints/utils-constraints/src/query-keys.ts diff --git a/packages/feature-constraints/src/utilities/styles/edge.ts b/packages/constraints/utils-constraints/src/styles/edge.ts similarity index 100% rename from packages/feature-constraints/src/utilities/styles/edge.ts rename to packages/constraints/utils-constraints/src/styles/edge.ts diff --git a/packages/feature-constraints/src/utilities/styles/node.ts b/packages/constraints/utils-constraints/src/styles/node.ts similarity index 100% rename from packages/feature-constraints/src/utilities/styles/node.ts rename to packages/constraints/utils-constraints/src/styles/node.ts diff --git a/packages/feature-constraints/src/utilities/update-graph-elements.ts b/packages/constraints/utils-constraints/src/update-graph-elements.ts similarity index 100% rename from packages/feature-constraints/src/utilities/update-graph-elements.ts rename to packages/constraints/utils-constraints/src/update-graph-elements.ts diff --git a/packages/constraints/utils-constraints/tsconfig.json b/packages/constraints/utils-constraints/tsconfig.json new file mode 100644 index 00000000..eb8ce742 --- /dev/null +++ b/packages/constraints/utils-constraints/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@commonalityco/config-tsconfig/react.json", + "include": ["src/**/*.ts", "src/**/*.tsx"], + "compilerOptions": { + "outDir": "./dist", + "typeRoots": ["./node_modules/@types"] + } +} diff --git a/packages/constraints/utils-constraints/vitest.config.ts b/packages/constraints/utils-constraints/vitest.config.ts new file mode 100644 index 00000000..0343e5b4 --- /dev/null +++ b/packages/constraints/utils-constraints/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ test: { globals: true } }); diff --git a/packages/feature-conformance/CHANGELOG.md b/packages/feature-conformance/CHANGELOG.md deleted file mode 100644 index 14871896..00000000 --- a/packages/feature-conformance/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# @commonalityco/feature-conformance - -## 0.0.20 - -### Patch Changes - -- 33f249e: Always list filepath and publish recommended - -## 0.0.19 - -### Patch Changes - -- 1a98bec: Update Studio install - -## 0.0.18 - -### Patch Changes - -- ad4a813: Finalize Commonality Studio, checks, and constraints -- Updated dependencies [ad4a813] - - @commonalityco/ui-design-system@0.0.13 diff --git a/packages/feature-conformance/README.md b/packages/feature-conformance/README.md deleted file mode 100644 index 406c05d0..00000000 --- a/packages/feature-conformance/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# @commonalityco/feature-conformance - -> Get conformance information about a local project - -## Installation - -```sh -npm install @commonalityco/feature-conformance -``` diff --git a/packages/feature-conformance/src/index.ts b/packages/feature-conformance/src/index.ts deleted file mode 100644 index fb5884cc..00000000 --- a/packages/feature-conformance/src/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './utils/get-conformance-results'; -export * from './utils/run-fixes'; - -export * from './utils/create-test-check'; -export * from './utils/define-check'; - -export * from './utils/json'; -export * from './utils/text'; - -export * from './utils/diff'; -export * from './utils/get-status-for-results'; diff --git a/packages/feature-constraints/CHANGELOG.md b/packages/feature-constraints/CHANGELOG.md deleted file mode 100644 index bdd5f988..00000000 --- a/packages/feature-constraints/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -# @commonalityco/feature-constraints - -## 0.0.18 - -### Patch Changes - -- ad4a813: Finalize Commonality Studio, checks, and constraints -- Updated dependencies [ad4a813] - - @commonalityco/ui-design-system@0.0.13 - - @commonalityco/utils-package@0.0.11 - - @commonalityco/ui-core@0.0.15 diff --git a/packages/feature-constraints/README.md b/packages/feature-constraints/README.md deleted file mode 100644 index 406c05d0..00000000 --- a/packages/feature-constraints/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# @commonalityco/feature-conformance - -> Get conformance information about a local project - -## Installation - -```sh -npm install @commonalityco/feature-conformance -``` diff --git a/packages/feature-constraints/src/index.ts b/packages/feature-constraints/src/index.ts deleted file mode 100644 index e34fab55..00000000 --- a/packages/feature-constraints/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './components/index'; - -export * from './utilities/index'; - -export * from './data/index'; diff --git a/packages/feature-constraints/test/setup.ts b/packages/feature-constraints/test/setup.ts deleted file mode 100644 index 66eef4d6..00000000 --- a/packages/feature-constraints/test/setup.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { afterEach } from 'vitest'; -import { cleanup } from '@testing-library/react'; - -afterEach(() => { - cleanup(); -}); diff --git a/packages/feature-constraints/vitest.config.ts b/packages/feature-constraints/vitest.config.ts deleted file mode 100644 index e35182fc..00000000 --- a/packages/feature-constraints/vitest.config.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { defineConfig } from 'vitest/config'; - -export default defineConfig({ - test: { globals: true, setupFiles: ['./test/setup.ts'] }, -}); diff --git a/packages/ui-core/.eslintrc.cjs b/packages/shared/data-codeowners/.eslintrc.cjs similarity index 100% rename from packages/ui-core/.eslintrc.cjs rename to packages/shared/data-codeowners/.eslintrc.cjs diff --git a/packages/data-codeowners/CHANGELOG.md b/packages/shared/data-codeowners/CHANGELOG.md similarity index 100% rename from packages/data-codeowners/CHANGELOG.md rename to packages/shared/data-codeowners/CHANGELOG.md diff --git a/packages/data-codeowners/README.md b/packages/shared/data-codeowners/README.md similarity index 100% rename from packages/data-codeowners/README.md rename to packages/shared/data-codeowners/README.md diff --git a/packages/data-codeowners/commonality.json b/packages/shared/data-codeowners/commonality.json similarity index 100% rename from packages/data-codeowners/commonality.json rename to packages/shared/data-codeowners/commonality.json diff --git a/packages/data-codeowners/package.json b/packages/shared/data-codeowners/package.json similarity index 97% rename from packages/data-codeowners/package.json rename to packages/shared/data-codeowners/package.json index c89beb03..022183b4 100644 --- a/packages/data-codeowners/package.json +++ b/packages/shared/data-codeowners/package.json @@ -38,5 +38,5 @@ "eslint-config-commonality": "workspace:*", "typescript": "^5.2.2" }, - "repository": "https://github.com/commonalityco/commonality/packages/data-codeowners" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/data-codeowners" +} \ No newline at end of file diff --git a/packages/data-codeowners/src/core/get-codeowners.ts b/packages/shared/data-codeowners/src/core/get-codeowners.ts similarity index 100% rename from packages/data-codeowners/src/core/get-codeowners.ts rename to packages/shared/data-codeowners/src/core/get-codeowners.ts diff --git a/packages/data-codeowners/src/core/get-is-email.ts b/packages/shared/data-codeowners/src/core/get-is-email.ts similarity index 100% rename from packages/data-codeowners/src/core/get-is-email.ts rename to packages/shared/data-codeowners/src/core/get-is-email.ts diff --git a/packages/data-codeowners/src/core/get-is-team.ts b/packages/shared/data-codeowners/src/core/get-is-team.ts similarity index 100% rename from packages/data-codeowners/src/core/get-is-team.ts rename to packages/shared/data-codeowners/src/core/get-is-team.ts diff --git a/packages/data-codeowners/src/core/get-owners-for-path.ts b/packages/shared/data-codeowners/src/core/get-owners-for-path.ts similarity index 100% rename from packages/data-codeowners/src/core/get-owners-for-path.ts rename to packages/shared/data-codeowners/src/core/get-owners-for-path.ts diff --git a/packages/data-codeowners/src/get-codeowners-data.ts b/packages/shared/data-codeowners/src/get-codeowners-data.ts similarity index 100% rename from packages/data-codeowners/src/get-codeowners-data.ts rename to packages/shared/data-codeowners/src/get-codeowners-data.ts diff --git a/packages/data-codeowners/src/index.ts b/packages/shared/data-codeowners/src/index.ts similarity index 100% rename from packages/data-codeowners/src/index.ts rename to packages/shared/data-codeowners/src/index.ts diff --git a/packages/data-codeowners/src/utils/find-first-existing-file.ts b/packages/shared/data-codeowners/src/utils/find-first-existing-file.ts similarity index 100% rename from packages/data-codeowners/src/utils/find-first-existing-file.ts rename to packages/shared/data-codeowners/src/utils/find-first-existing-file.ts diff --git a/packages/data-codeowners/test/find-first-existing-file.test.ts b/packages/shared/data-codeowners/test/find-first-existing-file.test.ts similarity index 100% rename from packages/data-codeowners/test/find-first-existing-file.test.ts rename to packages/shared/data-codeowners/test/find-first-existing-file.test.ts diff --git a/packages/data-codeowners/test/fixtures/github-example/.commonality/config.json b/packages/shared/data-codeowners/test/fixtures/github-example/.commonality/config.json similarity index 100% rename from packages/data-codeowners/test/fixtures/github-example/.commonality/config.json rename to packages/shared/data-codeowners/test/fixtures/github-example/.commonality/config.json diff --git a/packages/data-codeowners/test/fixtures/github-example/.github/CODEOWNERS b/packages/shared/data-codeowners/test/fixtures/github-example/.github/CODEOWNERS similarity index 100% rename from packages/data-codeowners/test/fixtures/github-example/.github/CODEOWNERS rename to packages/shared/data-codeowners/test/fixtures/github-example/.github/CODEOWNERS diff --git a/packages/data-codeowners/test/fixtures/github-example/package.json b/packages/shared/data-codeowners/test/fixtures/github-example/package.json similarity index 100% rename from packages/data-codeowners/test/fixtures/github-example/package.json rename to packages/shared/data-codeowners/test/fixtures/github-example/package.json diff --git a/packages/data-codeowners/test/fixtures/github-example/pnpm-lock.yaml b/packages/shared/data-codeowners/test/fixtures/github-example/pnpm-lock.yaml similarity index 100% rename from packages/data-codeowners/test/fixtures/github-example/pnpm-lock.yaml rename to packages/shared/data-codeowners/test/fixtures/github-example/pnpm-lock.yaml diff --git a/packages/data-codeowners/test/fixtures/github-example/pnpm-workspace.yaml b/packages/shared/data-codeowners/test/fixtures/github-example/pnpm-workspace.yaml similarity index 100% rename from packages/data-codeowners/test/fixtures/github-example/pnpm-workspace.yaml rename to packages/shared/data-codeowners/test/fixtures/github-example/pnpm-workspace.yaml diff --git a/packages/data-codeowners/test/fixtures/missing-file/.commonality/config.json b/packages/shared/data-codeowners/test/fixtures/missing-file/.commonality/config.json similarity index 100% rename from packages/data-codeowners/test/fixtures/missing-file/.commonality/config.json rename to packages/shared/data-codeowners/test/fixtures/missing-file/.commonality/config.json diff --git a/packages/data-codeowners/test/fixtures/missing-file/package.json b/packages/shared/data-codeowners/test/fixtures/missing-file/package.json similarity index 100% rename from packages/data-codeowners/test/fixtures/missing-file/package.json rename to packages/shared/data-codeowners/test/fixtures/missing-file/package.json diff --git a/packages/data-codeowners/test/fixtures/missing-file/pnpm-lock.yaml b/packages/shared/data-codeowners/test/fixtures/missing-file/pnpm-lock.yaml similarity index 100% rename from packages/data-codeowners/test/fixtures/missing-file/pnpm-lock.yaml rename to packages/shared/data-codeowners/test/fixtures/missing-file/pnpm-lock.yaml diff --git a/packages/data-codeowners/test/fixtures/missing-file/pnpm-workspace.yaml b/packages/shared/data-codeowners/test/fixtures/missing-file/pnpm-workspace.yaml similarity index 100% rename from packages/data-codeowners/test/fixtures/missing-file/pnpm-workspace.yaml rename to packages/shared/data-codeowners/test/fixtures/missing-file/pnpm-workspace.yaml diff --git a/packages/data-codeowners/test/fixtures/simple/.github/CODEOWNERS b/packages/shared/data-codeowners/test/fixtures/simple/.github/CODEOWNERS similarity index 100% rename from packages/data-codeowners/test/fixtures/simple/.github/CODEOWNERS rename to packages/shared/data-codeowners/test/fixtures/simple/.github/CODEOWNERS diff --git a/packages/data-codeowners/test/fixtures/simple/app/app-one/package.json b/packages/shared/data-codeowners/test/fixtures/simple/app/app-one/package.json similarity index 100% rename from packages/data-codeowners/test/fixtures/simple/app/app-one/package.json rename to packages/shared/data-codeowners/test/fixtures/simple/app/app-one/package.json diff --git a/packages/data-codeowners/test/fixtures/simple/packages/pkg-one/package.json b/packages/shared/data-codeowners/test/fixtures/simple/packages/pkg-one/package.json similarity index 100% rename from packages/data-codeowners/test/fixtures/simple/packages/pkg-one/package.json rename to packages/shared/data-codeowners/test/fixtures/simple/packages/pkg-one/package.json diff --git a/packages/data-codeowners/test/get-codeowners.test.ts b/packages/shared/data-codeowners/test/get-codeowners.test.ts similarity index 100% rename from packages/data-codeowners/test/get-codeowners.test.ts rename to packages/shared/data-codeowners/test/get-codeowners.test.ts diff --git a/packages/data-codeowners/test/get-is-email.test.ts b/packages/shared/data-codeowners/test/get-is-email.test.ts similarity index 100% rename from packages/data-codeowners/test/get-is-email.test.ts rename to packages/shared/data-codeowners/test/get-is-email.test.ts diff --git a/packages/data-codeowners/test/get-owners-for-path.test.ts b/packages/shared/data-codeowners/test/get-owners-for-path.test.ts similarity index 100% rename from packages/data-codeowners/test/get-owners-for-path.test.ts rename to packages/shared/data-codeowners/test/get-owners-for-path.test.ts diff --git a/packages/data-codeowners/tsconfig.json b/packages/shared/data-codeowners/tsconfig.json similarity index 100% rename from packages/data-codeowners/tsconfig.json rename to packages/shared/data-codeowners/tsconfig.json diff --git a/packages/data-codeowners/vitest.config.ts b/packages/shared/data-codeowners/vitest.config.ts similarity index 100% rename from packages/data-codeowners/vitest.config.ts rename to packages/shared/data-codeowners/vitest.config.ts diff --git a/packages/ui-design-system/.eslintrc.cjs b/packages/shared/data-packages/.eslintrc.cjs similarity index 100% rename from packages/ui-design-system/.eslintrc.cjs rename to packages/shared/data-packages/.eslintrc.cjs diff --git a/packages/data-packages/CHANGELOG.md b/packages/shared/data-packages/CHANGELOG.md similarity index 100% rename from packages/data-packages/CHANGELOG.md rename to packages/shared/data-packages/CHANGELOG.md diff --git a/packages/data-packages/README.md b/packages/shared/data-packages/README.md similarity index 100% rename from packages/data-packages/README.md rename to packages/shared/data-packages/README.md diff --git a/packages/data-packages/commonality.json b/packages/shared/data-packages/commonality.json similarity index 100% rename from packages/data-packages/commonality.json rename to packages/shared/data-packages/commonality.json diff --git a/packages/data-packages/package.json b/packages/shared/data-packages/package.json similarity index 97% rename from packages/data-packages/package.json rename to packages/shared/data-packages/package.json index 8b1860a2..dfde7804 100644 --- a/packages/data-packages/package.json +++ b/packages/shared/data-packages/package.json @@ -37,5 +37,5 @@ "eslint-config-commonality": "workspace:*", "typescript": "^5.2.2" }, - "repository": "https://github.com/commonalityco/commonality/packages/data-packages" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/data-packages" +} \ No newline at end of file diff --git a/packages/data-packages/src/get-dependencies.ts b/packages/shared/data-packages/src/get-dependencies.ts similarity index 100% rename from packages/data-packages/src/get-dependencies.ts rename to packages/shared/data-packages/src/get-dependencies.ts diff --git a/packages/data-packages/src/get-package.ts b/packages/shared/data-packages/src/get-package.ts similarity index 100% rename from packages/data-packages/src/get-package.ts rename to packages/shared/data-packages/src/get-package.ts diff --git a/packages/data-packages/src/get-packages.ts b/packages/shared/data-packages/src/get-packages.ts similarity index 100% rename from packages/data-packages/src/get-packages.ts rename to packages/shared/data-packages/src/get-packages.ts diff --git a/packages/data-packages/src/get-root-package-name.ts b/packages/shared/data-packages/src/get-root-package-name.ts similarity index 100% rename from packages/data-packages/src/get-root-package-name.ts rename to packages/shared/data-packages/src/get-root-package-name.ts diff --git a/packages/data-packages/src/index.ts b/packages/shared/data-packages/src/index.ts similarity index 100% rename from packages/data-packages/src/index.ts rename to packages/shared/data-packages/src/index.ts diff --git a/packages/data-packages/test/fixtures/kitchen-sink/package.json b/packages/shared/data-packages/test/fixtures/kitchen-sink/package.json similarity index 100% rename from packages/data-packages/test/fixtures/kitchen-sink/package.json rename to packages/shared/data-packages/test/fixtures/kitchen-sink/package.json diff --git a/packages/data-packages/test/fixtures/kitchen-sink/packages/pkg-one/package.json b/packages/shared/data-packages/test/fixtures/kitchen-sink/packages/pkg-one/package.json similarity index 100% rename from packages/data-packages/test/fixtures/kitchen-sink/packages/pkg-one/package.json rename to packages/shared/data-packages/test/fixtures/kitchen-sink/packages/pkg-one/package.json diff --git a/packages/data-packages/test/fixtures/kitchen-sink/packages/pkg-two/package.json b/packages/shared/data-packages/test/fixtures/kitchen-sink/packages/pkg-two/package.json similarity index 100% rename from packages/data-packages/test/fixtures/kitchen-sink/packages/pkg-two/package.json rename to packages/shared/data-packages/test/fixtures/kitchen-sink/packages/pkg-two/package.json diff --git a/packages/data-packages/test/fixtures/kitchen-sink/pnpm-lock.yaml b/packages/shared/data-packages/test/fixtures/kitchen-sink/pnpm-lock.yaml similarity index 100% rename from packages/data-packages/test/fixtures/kitchen-sink/pnpm-lock.yaml rename to packages/shared/data-packages/test/fixtures/kitchen-sink/pnpm-lock.yaml diff --git a/packages/data-packages/test/fixtures/missing-json-root/packages/pkg-one/package.json b/packages/shared/data-packages/test/fixtures/missing-json-root/packages/pkg-one/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-json-root/packages/pkg-one/package.json rename to packages/shared/data-packages/test/fixtures/missing-json-root/packages/pkg-one/package.json diff --git a/packages/data-packages/test/fixtures/missing-json-root/pnpm-lock.yaml b/packages/shared/data-packages/test/fixtures/missing-json-root/pnpm-lock.yaml similarity index 100% rename from packages/data-packages/test/fixtures/missing-json-root/pnpm-lock.yaml rename to packages/shared/data-packages/test/fixtures/missing-json-root/pnpm-lock.yaml diff --git a/packages/data-packages/test/fixtures/missing-json/package.json b/packages/shared/data-packages/test/fixtures/missing-json/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-json/package.json rename to packages/shared/data-packages/test/fixtures/missing-json/package.json diff --git a/packages/data-packages/test/fixtures/missing-json/pnpm-lock.yaml b/packages/shared/data-packages/test/fixtures/missing-json/pnpm-lock.yaml similarity index 100% rename from packages/data-packages/test/fixtures/missing-json/pnpm-lock.yaml rename to packages/shared/data-packages/test/fixtures/missing-json/pnpm-lock.yaml diff --git a/packages/data-packages/test/fixtures/missing-lockfile/package.json b/packages/shared/data-packages/test/fixtures/missing-lockfile/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-lockfile/package.json rename to packages/shared/data-packages/test/fixtures/missing-lockfile/package.json diff --git a/packages/data-packages/test/fixtures/missing-lockfile/packages/pkg-one/package.json b/packages/shared/data-packages/test/fixtures/missing-lockfile/packages/pkg-one/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-lockfile/packages/pkg-one/package.json rename to packages/shared/data-packages/test/fixtures/missing-lockfile/packages/pkg-one/package.json diff --git a/packages/data-packages/test/fixtures/missing-name-root/package.json b/packages/shared/data-packages/test/fixtures/missing-name-root/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-name-root/package.json rename to packages/shared/data-packages/test/fixtures/missing-name-root/package.json diff --git a/packages/data-packages/test/fixtures/missing-name-root/packages/pkg-one/package.json b/packages/shared/data-packages/test/fixtures/missing-name-root/packages/pkg-one/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-name-root/packages/pkg-one/package.json rename to packages/shared/data-packages/test/fixtures/missing-name-root/packages/pkg-one/package.json diff --git a/packages/data-packages/test/fixtures/missing-name-root/pnpm-lock.yaml b/packages/shared/data-packages/test/fixtures/missing-name-root/pnpm-lock.yaml similarity index 100% rename from packages/data-packages/test/fixtures/missing-name-root/pnpm-lock.yaml rename to packages/shared/data-packages/test/fixtures/missing-name-root/pnpm-lock.yaml diff --git a/packages/data-packages/test/fixtures/missing-name/package.json b/packages/shared/data-packages/test/fixtures/missing-name/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-name/package.json rename to packages/shared/data-packages/test/fixtures/missing-name/package.json diff --git a/packages/data-packages/test/fixtures/missing-name/packages/pkg-one/package.json b/packages/shared/data-packages/test/fixtures/missing-name/packages/pkg-one/package.json similarity index 100% rename from packages/data-packages/test/fixtures/missing-name/packages/pkg-one/package.json rename to packages/shared/data-packages/test/fixtures/missing-name/packages/pkg-one/package.json diff --git a/packages/data-packages/test/fixtures/missing-name/pnpm-lock.yaml b/packages/shared/data-packages/test/fixtures/missing-name/pnpm-lock.yaml similarity index 100% rename from packages/data-packages/test/fixtures/missing-name/pnpm-lock.yaml rename to packages/shared/data-packages/test/fixtures/missing-name/pnpm-lock.yaml diff --git a/packages/data-packages/test/fixtures/single-package-repo/package.json b/packages/shared/data-packages/test/fixtures/single-package-repo/package.json similarity index 100% rename from packages/data-packages/test/fixtures/single-package-repo/package.json rename to packages/shared/data-packages/test/fixtures/single-package-repo/package.json diff --git a/packages/data-packages/test/fixtures/single-package-repo/pnpm-lock.yaml b/packages/shared/data-packages/test/fixtures/single-package-repo/pnpm-lock.yaml similarity index 100% rename from packages/data-packages/test/fixtures/single-package-repo/pnpm-lock.yaml rename to packages/shared/data-packages/test/fixtures/single-package-repo/pnpm-lock.yaml diff --git a/packages/data-packages/test/get-dependencies.test.ts b/packages/shared/data-packages/test/get-dependencies.test.ts similarity index 100% rename from packages/data-packages/test/get-dependencies.test.ts rename to packages/shared/data-packages/test/get-dependencies.test.ts diff --git a/packages/data-packages/test/get-package.test.ts b/packages/shared/data-packages/test/get-package.test.ts similarity index 100% rename from packages/data-packages/test/get-package.test.ts rename to packages/shared/data-packages/test/get-package.test.ts diff --git a/packages/data-packages/test/get-packages.test.ts b/packages/shared/data-packages/test/get-packages.test.ts similarity index 100% rename from packages/data-packages/test/get-packages.test.ts rename to packages/shared/data-packages/test/get-packages.test.ts diff --git a/packages/data-packages/test/get-root-package-name.test.ts b/packages/shared/data-packages/test/get-root-package-name.test.ts similarity index 100% rename from packages/data-packages/test/get-root-package-name.test.ts rename to packages/shared/data-packages/test/get-root-package-name.test.ts diff --git a/packages/data-packages/tsconfig.json b/packages/shared/data-packages/tsconfig.json similarity index 100% rename from packages/data-packages/tsconfig.json rename to packages/shared/data-packages/tsconfig.json diff --git a/packages/data-packages/vitest.config.ts b/packages/shared/data-packages/vitest.config.ts similarity index 100% rename from packages/data-packages/vitest.config.ts rename to packages/shared/data-packages/vitest.config.ts diff --git a/packages/ui-package/.eslintrc.cjs b/packages/shared/data-project/.eslintrc.cjs similarity index 100% rename from packages/ui-package/.eslintrc.cjs rename to packages/shared/data-project/.eslintrc.cjs diff --git a/packages/data-project/CHANGELOG.md b/packages/shared/data-project/CHANGELOG.md similarity index 100% rename from packages/data-project/CHANGELOG.md rename to packages/shared/data-project/CHANGELOG.md diff --git a/packages/data-project/README.md b/packages/shared/data-project/README.md similarity index 100% rename from packages/data-project/README.md rename to packages/shared/data-project/README.md diff --git a/packages/data-project/commonality.json b/packages/shared/data-project/commonality.json similarity index 100% rename from packages/data-project/commonality.json rename to packages/shared/data-project/commonality.json diff --git a/packages/data-project/package.json b/packages/shared/data-project/package.json similarity index 97% rename from packages/data-project/package.json rename to packages/shared/data-project/package.json index 367d12e0..b89befe0 100644 --- a/packages/data-project/package.json +++ b/packages/shared/data-project/package.json @@ -46,5 +46,5 @@ "yaml": "^2.3.2", "zod": "^3.22.4" }, - "repository": "https://github.com/commonalityco/commonality/packages/data-project" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/data-project" +} \ No newline at end of file diff --git a/packages/data-project/src/get-package-directories.ts b/packages/shared/data-project/src/get-package-directories.ts similarity index 100% rename from packages/data-project/src/get-package-directories.ts rename to packages/shared/data-project/src/get-package-directories.ts diff --git a/packages/data-project/src/get-package-manager.ts b/packages/shared/data-project/src/get-package-manager.ts similarity index 100% rename from packages/data-project/src/get-package-manager.ts rename to packages/shared/data-project/src/get-package-manager.ts diff --git a/packages/data-project/src/get-project-config.ts b/packages/shared/data-project/src/get-project-config.ts similarity index 95% rename from packages/data-project/src/get-project-config.ts rename to packages/shared/data-project/src/get-project-config.ts index c6d6fd6b..c6dd6ee6 100644 --- a/packages/data-project/src/get-project-config.ts +++ b/packages/shared/data-project/src/get-project-config.ts @@ -63,7 +63,7 @@ export const getProjectConfig = async ({ } catch (error) { if (error instanceof ZodError) { console.error( - `[commonality] Invalid project configuration.\n\n${normalizeZodMessage( + `\n[commonality] Invalid project configuration.\n\n${normalizeZodMessage( error, )}`, ); diff --git a/packages/data-project/src/get-root-directory.ts b/packages/shared/data-project/src/get-root-directory.ts similarity index 100% rename from packages/data-project/src/get-root-directory.ts rename to packages/shared/data-project/src/get-root-directory.ts diff --git a/packages/data-project/src/get-workspace-globs.ts b/packages/shared/data-project/src/get-workspace-globs.ts similarity index 100% rename from packages/data-project/src/get-workspace-globs.ts rename to packages/shared/data-project/src/get-workspace-globs.ts diff --git a/packages/data-project/src/index.ts b/packages/shared/data-project/src/index.ts similarity index 100% rename from packages/data-project/src/index.ts rename to packages/shared/data-project/src/index.ts diff --git a/packages/data-project/test/fixtures/deeply-nested/ignored-packages/pkg-three/package.json b/packages/shared/data-project/test/fixtures/deeply-nested/ignored-packages/pkg-three/package.json similarity index 100% rename from packages/data-project/test/fixtures/deeply-nested/ignored-packages/pkg-three/package.json rename to packages/shared/data-project/test/fixtures/deeply-nested/ignored-packages/pkg-three/package.json diff --git a/packages/data-project/test/fixtures/deeply-nested/package.json b/packages/shared/data-project/test/fixtures/deeply-nested/package.json similarity index 100% rename from packages/data-project/test/fixtures/deeply-nested/package.json rename to packages/shared/data-project/test/fixtures/deeply-nested/package.json diff --git a/packages/data-project/test/fixtures/deeply-nested/packages/nested/pkg-two/package.json b/packages/shared/data-project/test/fixtures/deeply-nested/packages/nested/pkg-two/package.json similarity index 100% rename from packages/data-project/test/fixtures/deeply-nested/packages/nested/pkg-two/package.json rename to packages/shared/data-project/test/fixtures/deeply-nested/packages/nested/pkg-two/package.json diff --git a/packages/data-project/test/fixtures/deeply-nested/packages/pkg-one/package.json b/packages/shared/data-project/test/fixtures/deeply-nested/packages/pkg-one/package.json similarity index 100% rename from packages/data-project/test/fixtures/deeply-nested/packages/pkg-one/package.json rename to packages/shared/data-project/test/fixtures/deeply-nested/packages/pkg-one/package.json diff --git a/packages/data-project/test/fixtures/deeply-nested/pnpm-lock.yaml b/packages/shared/data-project/test/fixtures/deeply-nested/pnpm-lock.yaml similarity index 100% rename from packages/data-project/test/fixtures/deeply-nested/pnpm-lock.yaml rename to packages/shared/data-project/test/fixtures/deeply-nested/pnpm-lock.yaml diff --git a/packages/data-project/test/fixtures/deeply-nested/pnpm-workspace.yaml b/packages/shared/data-project/test/fixtures/deeply-nested/pnpm-workspace.yaml similarity index 100% rename from packages/data-project/test/fixtures/deeply-nested/pnpm-workspace.yaml rename to packages/shared/data-project/test/fixtures/deeply-nested/pnpm-workspace.yaml diff --git a/packages/data-project/test/fixtures/invalid-project-config/commonality.config.ts b/packages/shared/data-project/test/fixtures/invalid-project-config/commonality.config.ts similarity index 100% rename from packages/data-project/test/fixtures/invalid-project-config/commonality.config.ts rename to packages/shared/data-project/test/fixtures/invalid-project-config/commonality.config.ts diff --git a/packages/data-project/test/fixtures/missing-workspace-globs/package.json b/packages/shared/data-project/test/fixtures/missing-workspace-globs/package.json similarity index 100% rename from packages/data-project/test/fixtures/missing-workspace-globs/package.json rename to packages/shared/data-project/test/fixtures/missing-workspace-globs/package.json diff --git a/packages/data-project/test/fixtures/missing-workspace-globs/pnpm-lock.yaml b/packages/shared/data-project/test/fixtures/missing-workspace-globs/pnpm-lock.yaml similarity index 100% rename from packages/data-project/test/fixtures/missing-workspace-globs/pnpm-lock.yaml rename to packages/shared/data-project/test/fixtures/missing-workspace-globs/pnpm-lock.yaml diff --git a/packages/data-project/test/fixtures/npm-workspace/package-lock.json b/packages/shared/data-project/test/fixtures/npm-workspace/package-lock.json similarity index 100% rename from packages/data-project/test/fixtures/npm-workspace/package-lock.json rename to packages/shared/data-project/test/fixtures/npm-workspace/package-lock.json diff --git a/packages/data-project/test/fixtures/npm-workspace/package.json b/packages/shared/data-project/test/fixtures/npm-workspace/package.json similarity index 100% rename from packages/data-project/test/fixtures/npm-workspace/package.json rename to packages/shared/data-project/test/fixtures/npm-workspace/package.json diff --git a/packages/data-project/test/fixtures/pnpm-workspace/package.json b/packages/shared/data-project/test/fixtures/pnpm-workspace/package.json similarity index 100% rename from packages/data-project/test/fixtures/pnpm-workspace/package.json rename to packages/shared/data-project/test/fixtures/pnpm-workspace/package.json diff --git a/packages/data-project/test/fixtures/pnpm-workspace/pnpm-lock.yaml b/packages/shared/data-project/test/fixtures/pnpm-workspace/pnpm-lock.yaml similarity index 100% rename from packages/data-project/test/fixtures/pnpm-workspace/pnpm-lock.yaml rename to packages/shared/data-project/test/fixtures/pnpm-workspace/pnpm-lock.yaml diff --git a/packages/data-project/test/fixtures/pnpm-workspace/pnpm-workspace.yaml b/packages/shared/data-project/test/fixtures/pnpm-workspace/pnpm-workspace.yaml similarity index 100% rename from packages/data-project/test/fixtures/pnpm-workspace/pnpm-workspace.yaml rename to packages/shared/data-project/test/fixtures/pnpm-workspace/pnpm-workspace.yaml diff --git a/packages/data-project/test/fixtures/uninitialized/package.json b/packages/shared/data-project/test/fixtures/uninitialized/package.json similarity index 100% rename from packages/data-project/test/fixtures/uninitialized/package.json rename to packages/shared/data-project/test/fixtures/uninitialized/package.json diff --git a/packages/data-project/test/fixtures/valid-project-config/commonality.config.ts b/packages/shared/data-project/test/fixtures/valid-project-config/commonality.config.ts similarity index 100% rename from packages/data-project/test/fixtures/valid-project-config/commonality.config.ts rename to packages/shared/data-project/test/fixtures/valid-project-config/commonality.config.ts diff --git a/packages/data-project/test/fixtures/yarn-workspace/package.json b/packages/shared/data-project/test/fixtures/yarn-workspace/package.json similarity index 100% rename from packages/data-project/test/fixtures/yarn-workspace/package.json rename to packages/shared/data-project/test/fixtures/yarn-workspace/package.json diff --git a/packages/data-project/test/fixtures/yarn-workspace/yarn.lock b/packages/shared/data-project/test/fixtures/yarn-workspace/yarn.lock similarity index 100% rename from packages/data-project/test/fixtures/yarn-workspace/yarn.lock rename to packages/shared/data-project/test/fixtures/yarn-workspace/yarn.lock diff --git a/packages/data-project/test/get-package-manager.test.ts b/packages/shared/data-project/test/get-package-manager.test.ts similarity index 100% rename from packages/data-project/test/get-package-manager.test.ts rename to packages/shared/data-project/test/get-package-manager.test.ts diff --git a/packages/data-project/test/get-project-config.test.ts b/packages/shared/data-project/test/get-project-config.test.ts similarity index 100% rename from packages/data-project/test/get-project-config.test.ts rename to packages/shared/data-project/test/get-project-config.test.ts diff --git a/packages/data-project/test/get-root-directory.test.ts b/packages/shared/data-project/test/get-root-directory.test.ts similarity index 100% rename from packages/data-project/test/get-root-directory.test.ts rename to packages/shared/data-project/test/get-root-directory.test.ts diff --git a/packages/data-project/test/get-workspace-globs.test.ts b/packages/shared/data-project/test/get-workspace-globs.test.ts similarity index 100% rename from packages/data-project/test/get-workspace-globs.test.ts rename to packages/shared/data-project/test/get-workspace-globs.test.ts diff --git a/packages/data-project/tsconfig.json b/packages/shared/data-project/tsconfig.json similarity index 100% rename from packages/data-project/tsconfig.json rename to packages/shared/data-project/tsconfig.json diff --git a/packages/data-project/vitest.config.ts b/packages/shared/data-project/vitest.config.ts similarity index 100% rename from packages/data-project/vitest.config.ts rename to packages/shared/data-project/vitest.config.ts diff --git a/packages/utils-core/.eslintrc.cjs b/packages/shared/data-tags/.eslintrc.cjs similarity index 100% rename from packages/utils-core/.eslintrc.cjs rename to packages/shared/data-tags/.eslintrc.cjs diff --git a/packages/data-tags/CHANGELOG.md b/packages/shared/data-tags/CHANGELOG.md similarity index 100% rename from packages/data-tags/CHANGELOG.md rename to packages/shared/data-tags/CHANGELOG.md diff --git a/packages/data-tags/README.md b/packages/shared/data-tags/README.md similarity index 100% rename from packages/data-tags/README.md rename to packages/shared/data-tags/README.md diff --git a/packages/data-tags/commonality.json b/packages/shared/data-tags/commonality.json similarity index 100% rename from packages/data-tags/commonality.json rename to packages/shared/data-tags/commonality.json diff --git a/packages/data-tags/package.json b/packages/shared/data-tags/package.json similarity index 97% rename from packages/data-tags/package.json rename to packages/shared/data-tags/package.json index 81fc3665..f5b8b70f 100644 --- a/packages/data-tags/package.json +++ b/packages/shared/data-tags/package.json @@ -40,5 +40,5 @@ "lodash": "^4.17.21", "lodash-es": "^4.17.21" }, - "repository": "https://github.com/commonalityco/commonality/packages/data-tags" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/data-tags" +} \ No newline at end of file diff --git a/packages/data-tags/src/get-tags-data.ts b/packages/shared/data-tags/src/get-tags-data.ts similarity index 100% rename from packages/data-tags/src/get-tags-data.ts rename to packages/shared/data-tags/src/get-tags-data.ts diff --git a/packages/data-tags/src/index.ts b/packages/shared/data-tags/src/index.ts similarity index 100% rename from packages/data-tags/src/index.ts rename to packages/shared/data-tags/src/index.ts diff --git a/packages/data-tags/src/set-tags.ts b/packages/shared/data-tags/src/set-tags.ts similarity index 100% rename from packages/data-tags/src/set-tags.ts rename to packages/shared/data-tags/src/set-tags.ts diff --git a/packages/data-tags/test/fixtures/empty-project/package.json b/packages/shared/data-tags/test/fixtures/empty-project/package.json similarity index 100% rename from packages/data-tags/test/fixtures/empty-project/package.json rename to packages/shared/data-tags/test/fixtures/empty-project/package.json diff --git a/packages/data-tags/test/fixtures/empty-project/packages/pkg-one/package.json b/packages/shared/data-tags/test/fixtures/empty-project/packages/pkg-one/package.json similarity index 100% rename from packages/data-tags/test/fixtures/empty-project/packages/pkg-one/package.json rename to packages/shared/data-tags/test/fixtures/empty-project/packages/pkg-one/package.json diff --git a/packages/data-tags/test/fixtures/empty-project/packages/pkg-three/package.json b/packages/shared/data-tags/test/fixtures/empty-project/packages/pkg-three/package.json similarity index 100% rename from packages/data-tags/test/fixtures/empty-project/packages/pkg-three/package.json rename to packages/shared/data-tags/test/fixtures/empty-project/packages/pkg-three/package.json diff --git a/packages/data-tags/test/fixtures/empty-project/packages/pkg-two/package.json b/packages/shared/data-tags/test/fixtures/empty-project/packages/pkg-two/package.json similarity index 100% rename from packages/data-tags/test/fixtures/empty-project/packages/pkg-two/package.json rename to packages/shared/data-tags/test/fixtures/empty-project/packages/pkg-two/package.json diff --git a/packages/data-tags/test/fixtures/empty-project/pnpm-lock.yaml b/packages/shared/data-tags/test/fixtures/empty-project/pnpm-lock.yaml similarity index 100% rename from packages/data-tags/test/fixtures/empty-project/pnpm-lock.yaml rename to packages/shared/data-tags/test/fixtures/empty-project/pnpm-lock.yaml diff --git a/packages/data-tags/test/fixtures/empty-project/pnpm-workspace.yaml b/packages/shared/data-tags/test/fixtures/empty-project/pnpm-workspace.yaml similarity index 100% rename from packages/data-tags/test/fixtures/empty-project/pnpm-workspace.yaml rename to packages/shared/data-tags/test/fixtures/empty-project/pnpm-workspace.yaml diff --git a/packages/data-tags/test/fixtures/kitchen-sink/package.json b/packages/shared/data-tags/test/fixtures/kitchen-sink/package.json similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/package.json rename to packages/shared/data-tags/test/fixtures/kitchen-sink/package.json diff --git a/packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/commonality.json b/packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/commonality.json similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/commonality.json rename to packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/commonality.json diff --git a/packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/package.json b/packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/package.json similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/package.json rename to packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-one/package.json diff --git a/packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-three/package.json b/packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-three/package.json similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-three/package.json rename to packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-three/package.json diff --git a/packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/commonality.json b/packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/commonality.json similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/commonality.json rename to packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/commonality.json diff --git a/packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/package.json b/packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/package.json similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/package.json rename to packages/shared/data-tags/test/fixtures/kitchen-sink/packages/pkg-two/package.json diff --git a/packages/data-tags/test/fixtures/kitchen-sink/pnpm-lock.yaml b/packages/shared/data-tags/test/fixtures/kitchen-sink/pnpm-lock.yaml similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/pnpm-lock.yaml rename to packages/shared/data-tags/test/fixtures/kitchen-sink/pnpm-lock.yaml diff --git a/packages/data-tags/test/fixtures/kitchen-sink/pnpm-workspace.yaml b/packages/shared/data-tags/test/fixtures/kitchen-sink/pnpm-workspace.yaml similarity index 100% rename from packages/data-tags/test/fixtures/kitchen-sink/pnpm-workspace.yaml rename to packages/shared/data-tags/test/fixtures/kitchen-sink/pnpm-workspace.yaml diff --git a/packages/data-tags/test/get-tags-data.test.ts b/packages/shared/data-tags/test/get-tags-data.test.ts similarity index 100% rename from packages/data-tags/test/get-tags-data.test.ts rename to packages/shared/data-tags/test/get-tags-data.test.ts diff --git a/packages/data-tags/test/set-tags.test.ts b/packages/shared/data-tags/test/set-tags.test.ts similarity index 100% rename from packages/data-tags/test/set-tags.test.ts rename to packages/shared/data-tags/test/set-tags.test.ts diff --git a/packages/data-tags/tsconfig.json b/packages/shared/data-tags/tsconfig.json similarity index 100% rename from packages/data-tags/tsconfig.json rename to packages/shared/data-tags/tsconfig.json diff --git a/packages/data-tags/vitest.config.ts b/packages/shared/data-tags/vitest.config.ts similarity index 100% rename from packages/data-tags/vitest.config.ts rename to packages/shared/data-tags/vitest.config.ts diff --git a/packages/utils-package/.eslintrc.cjs b/packages/shared/types/.eslintrc.cjs similarity index 100% rename from packages/utils-package/.eslintrc.cjs rename to packages/shared/types/.eslintrc.cjs diff --git a/packages/types/CHANGELOG.md b/packages/shared/types/CHANGELOG.md similarity index 100% rename from packages/types/CHANGELOG.md rename to packages/shared/types/CHANGELOG.md diff --git a/packages/types/README.md b/packages/shared/types/README.md similarity index 100% rename from packages/types/README.md rename to packages/shared/types/README.md diff --git a/packages/types/commonality.json b/packages/shared/types/commonality.json similarity index 100% rename from packages/types/commonality.json rename to packages/shared/types/commonality.json diff --git a/packages/types/package.json b/packages/shared/types/package.json similarity index 97% rename from packages/types/package.json rename to packages/shared/types/package.json index 79e804cb..5db58510 100644 --- a/packages/types/package.json +++ b/packages/shared/types/package.json @@ -32,5 +32,5 @@ "exports": { ".": "./src/index.ts" }, - "repository": "https://github.com/commonalityco/commonality/packages/types" + "repository": "https://github.com/commonalityco/commonality/packages/shared/types" } \ No newline at end of file diff --git a/packages/types/src/index.ts b/packages/shared/types/src/index.ts similarity index 100% rename from packages/types/src/index.ts rename to packages/shared/types/src/index.ts diff --git a/packages/types/tsconfig.json b/packages/shared/types/tsconfig.json similarity index 100% rename from packages/types/tsconfig.json rename to packages/shared/types/tsconfig.json diff --git a/packages/types/vitest.config.ts b/packages/shared/types/vitest.config.ts similarity index 100% rename from packages/types/vitest.config.ts rename to packages/shared/types/vitest.config.ts diff --git a/packages/shared/ui-core/.eslintrc.cjs b/packages/shared/ui-core/.eslintrc.cjs new file mode 100644 index 00000000..97414f7d --- /dev/null +++ b/packages/shared/ui-core/.eslintrc.cjs @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['commonality'], +}; diff --git a/packages/ui-core/CHANGELOG.md b/packages/shared/ui-core/CHANGELOG.md similarity index 100% rename from packages/ui-core/CHANGELOG.md rename to packages/shared/ui-core/CHANGELOG.md diff --git a/packages/ui-core/README.md b/packages/shared/ui-core/README.md similarity index 100% rename from packages/ui-core/README.md rename to packages/shared/ui-core/README.md diff --git a/packages/ui-core/commonality.json b/packages/shared/ui-core/commonality.json similarity index 100% rename from packages/ui-core/commonality.json rename to packages/shared/ui-core/commonality.json diff --git a/packages/ui-core/package.json b/packages/shared/ui-core/package.json similarity index 98% rename from packages/ui-core/package.json rename to packages/shared/ui-core/package.json index 5e621bf9..35b812b5 100644 --- a/packages/ui-core/package.json +++ b/packages/shared/ui-core/package.json @@ -62,5 +62,5 @@ "engines": { "node": ">=16" }, - "repository": "https://github.com/commonalityco/commonality/packages/ui-core" + "repository": "https://github.com/commonalityco/commonality/packages/shared/ui-core" } \ No newline at end of file diff --git a/packages/ui-core/src/bun-logo.tsx b/packages/shared/ui-core/src/bun-logo.tsx similarity index 100% rename from packages/ui-core/src/bun-logo.tsx rename to packages/shared/ui-core/src/bun-logo.tsx diff --git a/packages/ui-core/src/divider.tsx b/packages/shared/ui-core/src/divider.tsx similarity index 100% rename from packages/ui-core/src/divider.tsx rename to packages/shared/ui-core/src/divider.tsx diff --git a/packages/ui-core/src/download.svg b/packages/shared/ui-core/src/download.svg similarity index 100% rename from packages/ui-core/src/download.svg rename to packages/shared/ui-core/src/download.svg diff --git a/packages/ui-core/src/gradient-fade.tsx b/packages/shared/ui-core/src/gradient-fade.tsx similarity index 100% rename from packages/ui-core/src/gradient-fade.tsx rename to packages/shared/ui-core/src/gradient-fade.tsx diff --git a/packages/ui-core/src/index.ts b/packages/shared/ui-core/src/index.ts similarity index 100% rename from packages/ui-core/src/index.ts rename to packages/shared/ui-core/src/index.ts diff --git a/packages/ui-core/src/logo.tsx b/packages/shared/ui-core/src/logo.tsx similarity index 100% rename from packages/ui-core/src/logo.tsx rename to packages/shared/ui-core/src/logo.tsx diff --git a/packages/ui-core/src/navigation-button.tsx b/packages/shared/ui-core/src/navigation-button.tsx similarity index 100% rename from packages/ui-core/src/navigation-button.tsx rename to packages/shared/ui-core/src/navigation-button.tsx diff --git a/packages/ui-core/src/navigation-logo.tsx b/packages/shared/ui-core/src/navigation-logo.tsx similarity index 100% rename from packages/ui-core/src/navigation-logo.tsx rename to packages/shared/ui-core/src/navigation-logo.tsx diff --git a/packages/ui-core/src/navigation.tsx b/packages/shared/ui-core/src/navigation.tsx similarity index 100% rename from packages/ui-core/src/navigation.tsx rename to packages/shared/ui-core/src/navigation.tsx diff --git a/packages/ui-core/src/npm-logo.tsx b/packages/shared/ui-core/src/npm-logo.tsx similarity index 100% rename from packages/ui-core/src/npm-logo.tsx rename to packages/shared/ui-core/src/npm-logo.tsx diff --git a/packages/ui-core/src/pnpm-logo.tsx b/packages/shared/ui-core/src/pnpm-logo.tsx similarity index 100% rename from packages/ui-core/src/pnpm-logo.tsx rename to packages/shared/ui-core/src/pnpm-logo.tsx diff --git a/packages/ui-core/src/theme-button-loading.tsx b/packages/shared/ui-core/src/theme-button-loading.tsx similarity index 100% rename from packages/ui-core/src/theme-button-loading.tsx rename to packages/shared/ui-core/src/theme-button-loading.tsx diff --git a/packages/ui-core/src/theme-button.tsx b/packages/shared/ui-core/src/theme-button.tsx similarity index 100% rename from packages/ui-core/src/theme-button.tsx rename to packages/shared/ui-core/src/theme-button.tsx diff --git a/packages/ui-core/src/theme.ts b/packages/shared/ui-core/src/theme.ts similarity index 100% rename from packages/ui-core/src/theme.ts rename to packages/shared/ui-core/src/theme.ts diff --git a/packages/ui-core/src/yarn-logo.tsx b/packages/shared/ui-core/src/yarn-logo.tsx similarity index 100% rename from packages/ui-core/src/yarn-logo.tsx rename to packages/shared/ui-core/src/yarn-logo.tsx diff --git a/packages/ui-core/tsconfig.json b/packages/shared/ui-core/tsconfig.json similarity index 100% rename from packages/ui-core/tsconfig.json rename to packages/shared/ui-core/tsconfig.json diff --git a/packages/ui-core/vitest.config.ts b/packages/shared/ui-core/vitest.config.ts similarity index 100% rename from packages/ui-core/vitest.config.ts rename to packages/shared/ui-core/vitest.config.ts diff --git a/packages/shared/ui-design-system/.eslintrc.cjs b/packages/shared/ui-design-system/.eslintrc.cjs new file mode 100644 index 00000000..97414f7d --- /dev/null +++ b/packages/shared/ui-design-system/.eslintrc.cjs @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['commonality'], +}; diff --git a/packages/ui-design-system/CHANGELOG.md b/packages/shared/ui-design-system/CHANGELOG.md similarity index 100% rename from packages/ui-design-system/CHANGELOG.md rename to packages/shared/ui-design-system/CHANGELOG.md diff --git a/packages/ui-design-system/README.md b/packages/shared/ui-design-system/README.md similarity index 100% rename from packages/ui-design-system/README.md rename to packages/shared/ui-design-system/README.md diff --git a/packages/ui-design-system/commonality.json b/packages/shared/ui-design-system/commonality.json similarity index 100% rename from packages/ui-design-system/commonality.json rename to packages/shared/ui-design-system/commonality.json diff --git a/packages/ui-design-system/components.json b/packages/shared/ui-design-system/components.json similarity index 100% rename from packages/ui-design-system/components.json rename to packages/shared/ui-design-system/components.json diff --git a/packages/ui-design-system/package.json b/packages/shared/ui-design-system/package.json similarity index 98% rename from packages/ui-design-system/package.json rename to packages/shared/ui-design-system/package.json index 4c8b7bf4..1ad1f219 100644 --- a/packages/ui-design-system/package.json +++ b/packages/shared/ui-design-system/package.json @@ -69,5 +69,5 @@ "type-check": "tsc --noEmit" }, "main": "./src/index.ts", - "repository": "https://github.com/commonalityco/commonality/packages/ui-design-system" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/ui-design-system" +} \ No newline at end of file diff --git a/packages/ui-design-system/src/accordion.tsx b/packages/shared/ui-design-system/src/accordion.tsx similarity index 100% rename from packages/ui-design-system/src/accordion.tsx rename to packages/shared/ui-design-system/src/accordion.tsx diff --git a/packages/ui-design-system/src/alert.tsx b/packages/shared/ui-design-system/src/alert.tsx similarity index 100% rename from packages/ui-design-system/src/alert.tsx rename to packages/shared/ui-design-system/src/alert.tsx diff --git a/packages/ui-design-system/src/badge.tsx b/packages/shared/ui-design-system/src/badge.tsx similarity index 100% rename from packages/ui-design-system/src/badge.tsx rename to packages/shared/ui-design-system/src/badge.tsx diff --git a/packages/ui-design-system/src/button.tsx b/packages/shared/ui-design-system/src/button.tsx similarity index 100% rename from packages/ui-design-system/src/button.tsx rename to packages/shared/ui-design-system/src/button.tsx diff --git a/packages/ui-design-system/src/card.tsx b/packages/shared/ui-design-system/src/card.tsx similarity index 100% rename from packages/ui-design-system/src/card.tsx rename to packages/shared/ui-design-system/src/card.tsx diff --git a/packages/ui-design-system/src/checkbox.tsx b/packages/shared/ui-design-system/src/checkbox.tsx similarity index 100% rename from packages/ui-design-system/src/checkbox.tsx rename to packages/shared/ui-design-system/src/checkbox.tsx diff --git a/packages/ui-design-system/src/cn.ts b/packages/shared/ui-design-system/src/cn.ts similarity index 100% rename from packages/ui-design-system/src/cn.ts rename to packages/shared/ui-design-system/src/cn.ts diff --git a/packages/ui-design-system/src/command.tsx b/packages/shared/ui-design-system/src/command.tsx similarity index 100% rename from packages/ui-design-system/src/command.tsx rename to packages/shared/ui-design-system/src/command.tsx diff --git a/packages/ui-design-system/src/dialog.tsx b/packages/shared/ui-design-system/src/dialog.tsx similarity index 100% rename from packages/ui-design-system/src/dialog.tsx rename to packages/shared/ui-design-system/src/dialog.tsx diff --git a/packages/ui-design-system/src/dropdown-menu.tsx b/packages/shared/ui-design-system/src/dropdown-menu.tsx similarity index 100% rename from packages/ui-design-system/src/dropdown-menu.tsx rename to packages/shared/ui-design-system/src/dropdown-menu.tsx diff --git a/packages/ui-design-system/src/form.tsx b/packages/shared/ui-design-system/src/form.tsx similarity index 100% rename from packages/ui-design-system/src/form.tsx rename to packages/shared/ui-design-system/src/form.tsx diff --git a/packages/ui-design-system/src/heading.tsx b/packages/shared/ui-design-system/src/heading.tsx similarity index 100% rename from packages/ui-design-system/src/heading.tsx rename to packages/shared/ui-design-system/src/heading.tsx diff --git a/packages/ui-design-system/src/hover-card.tsx b/packages/shared/ui-design-system/src/hover-card.tsx similarity index 100% rename from packages/ui-design-system/src/hover-card.tsx rename to packages/shared/ui-design-system/src/hover-card.tsx diff --git a/packages/ui-design-system/src/index.ts b/packages/shared/ui-design-system/src/index.ts similarity index 100% rename from packages/ui-design-system/src/index.ts rename to packages/shared/ui-design-system/src/index.ts diff --git a/packages/ui-design-system/src/input.tsx b/packages/shared/ui-design-system/src/input.tsx similarity index 100% rename from packages/ui-design-system/src/input.tsx rename to packages/shared/ui-design-system/src/input.tsx diff --git a/packages/ui-design-system/src/kbd.tsx b/packages/shared/ui-design-system/src/kbd.tsx similarity index 100% rename from packages/ui-design-system/src/kbd.tsx rename to packages/shared/ui-design-system/src/kbd.tsx diff --git a/packages/ui-design-system/src/label.tsx b/packages/shared/ui-design-system/src/label.tsx similarity index 100% rename from packages/ui-design-system/src/label.tsx rename to packages/shared/ui-design-system/src/label.tsx diff --git a/packages/ui-design-system/src/popover.tsx b/packages/shared/ui-design-system/src/popover.tsx similarity index 100% rename from packages/ui-design-system/src/popover.tsx rename to packages/shared/ui-design-system/src/popover.tsx diff --git a/packages/ui-design-system/src/radio-group.tsx b/packages/shared/ui-design-system/src/radio-group.tsx similarity index 100% rename from packages/ui-design-system/src/radio-group.tsx rename to packages/shared/ui-design-system/src/radio-group.tsx diff --git a/packages/ui-design-system/src/scroll-area.tsx b/packages/shared/ui-design-system/src/scroll-area.tsx similarity index 100% rename from packages/ui-design-system/src/scroll-area.tsx rename to packages/shared/ui-design-system/src/scroll-area.tsx diff --git a/packages/ui-design-system/src/select.tsx b/packages/shared/ui-design-system/src/select.tsx similarity index 100% rename from packages/ui-design-system/src/select.tsx rename to packages/shared/ui-design-system/src/select.tsx diff --git a/packages/ui-design-system/src/separator.tsx b/packages/shared/ui-design-system/src/separator.tsx similarity index 100% rename from packages/ui-design-system/src/separator.tsx rename to packages/shared/ui-design-system/src/separator.tsx diff --git a/packages/ui-design-system/src/sheet.tsx b/packages/shared/ui-design-system/src/sheet.tsx similarity index 100% rename from packages/ui-design-system/src/sheet.tsx rename to packages/shared/ui-design-system/src/sheet.tsx diff --git a/packages/ui-design-system/src/skeleton.tsx b/packages/shared/ui-design-system/src/skeleton.tsx similarity index 100% rename from packages/ui-design-system/src/skeleton.tsx rename to packages/shared/ui-design-system/src/skeleton.tsx diff --git a/packages/ui-design-system/src/snippet.tsx b/packages/shared/ui-design-system/src/snippet.tsx similarity index 100% rename from packages/ui-design-system/src/snippet.tsx rename to packages/shared/ui-design-system/src/snippet.tsx diff --git a/packages/ui-design-system/src/switch.tsx b/packages/shared/ui-design-system/src/switch.tsx similarity index 100% rename from packages/ui-design-system/src/switch.tsx rename to packages/shared/ui-design-system/src/switch.tsx diff --git a/packages/ui-design-system/src/table.tsx b/packages/shared/ui-design-system/src/table.tsx similarity index 100% rename from packages/ui-design-system/src/table.tsx rename to packages/shared/ui-design-system/src/table.tsx diff --git a/packages/ui-design-system/src/tabs.tsx b/packages/shared/ui-design-system/src/tabs.tsx similarity index 100% rename from packages/ui-design-system/src/tabs.tsx rename to packages/shared/ui-design-system/src/tabs.tsx diff --git a/packages/ui-design-system/src/text.tsx b/packages/shared/ui-design-system/src/text.tsx similarity index 100% rename from packages/ui-design-system/src/text.tsx rename to packages/shared/ui-design-system/src/text.tsx diff --git a/packages/ui-design-system/src/toast.tsx b/packages/shared/ui-design-system/src/toast.tsx similarity index 100% rename from packages/ui-design-system/src/toast.tsx rename to packages/shared/ui-design-system/src/toast.tsx diff --git a/packages/ui-design-system/src/toaster.tsx b/packages/shared/ui-design-system/src/toaster.tsx similarity index 100% rename from packages/ui-design-system/src/toaster.tsx rename to packages/shared/ui-design-system/src/toaster.tsx diff --git a/packages/ui-design-system/src/toggle.tsx b/packages/shared/ui-design-system/src/toggle.tsx similarity index 100% rename from packages/ui-design-system/src/toggle.tsx rename to packages/shared/ui-design-system/src/toggle.tsx diff --git a/packages/ui-design-system/src/tooltip.tsx b/packages/shared/ui-design-system/src/tooltip.tsx similarity index 100% rename from packages/ui-design-system/src/tooltip.tsx rename to packages/shared/ui-design-system/src/tooltip.tsx diff --git a/packages/ui-design-system/src/use-toast.ts b/packages/shared/ui-design-system/src/use-toast.ts similarity index 100% rename from packages/ui-design-system/src/use-toast.ts rename to packages/shared/ui-design-system/src/use-toast.ts diff --git a/packages/ui-design-system/src/utils.ts b/packages/shared/ui-design-system/src/utils.ts similarity index 100% rename from packages/ui-design-system/src/utils.ts rename to packages/shared/ui-design-system/src/utils.ts diff --git a/packages/ui-design-system/tailwind.config.js b/packages/shared/ui-design-system/tailwind.config.js similarity index 100% rename from packages/ui-design-system/tailwind.config.js rename to packages/shared/ui-design-system/tailwind.config.js diff --git a/packages/ui-design-system/tsconfig.json b/packages/shared/ui-design-system/tsconfig.json similarity index 100% rename from packages/ui-design-system/tsconfig.json rename to packages/shared/ui-design-system/tsconfig.json diff --git a/packages/ui-design-system/vitest.config.ts b/packages/shared/ui-design-system/vitest.config.ts similarity index 100% rename from packages/ui-design-system/vitest.config.ts rename to packages/shared/ui-design-system/vitest.config.ts diff --git a/packages/ui-design-system/vitest.config.ts.timestamp-1698895735617-4681da5c321b6.mjs b/packages/shared/ui-design-system/vitest.config.ts.timestamp-1698895735617-4681da5c321b6.mjs similarity index 100% rename from packages/ui-design-system/vitest.config.ts.timestamp-1698895735617-4681da5c321b6.mjs rename to packages/shared/ui-design-system/vitest.config.ts.timestamp-1698895735617-4681da5c321b6.mjs diff --git a/packages/shared/ui-package/.eslintrc.cjs b/packages/shared/ui-package/.eslintrc.cjs new file mode 100644 index 00000000..97414f7d --- /dev/null +++ b/packages/shared/ui-package/.eslintrc.cjs @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['commonality'], +}; diff --git a/packages/ui-package/CHANGELOG.md b/packages/shared/ui-package/CHANGELOG.md similarity index 100% rename from packages/ui-package/CHANGELOG.md rename to packages/shared/ui-package/CHANGELOG.md diff --git a/packages/ui-package/README.md b/packages/shared/ui-package/README.md similarity index 100% rename from packages/ui-package/README.md rename to packages/shared/ui-package/README.md diff --git a/packages/ui-package/commonality.json b/packages/shared/ui-package/commonality.json similarity index 100% rename from packages/ui-package/commonality.json rename to packages/shared/ui-package/commonality.json diff --git a/packages/ui-package/package.json b/packages/shared/ui-package/package.json similarity index 98% rename from packages/ui-package/package.json rename to packages/shared/ui-package/package.json index abbd159c..140b18b9 100644 --- a/packages/ui-package/package.json +++ b/packages/shared/ui-package/package.json @@ -52,5 +52,5 @@ "type-check": "tsc --noEmit" }, "main": "./src/index.ts", - "repository": "https://github.com/commonalityco/commonality/packages/ui-package" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/ui-package" +} \ No newline at end of file diff --git a/packages/ui-package/src/codeowners-filter-button.tsx b/packages/shared/ui-package/src/codeowners-filter-button.tsx similarity index 100% rename from packages/ui-package/src/codeowners-filter-button.tsx rename to packages/shared/ui-package/src/codeowners-filter-button.tsx diff --git a/packages/ui-package/src/index.ts b/packages/shared/ui-package/src/index.ts similarity index 100% rename from packages/ui-package/src/index.ts rename to packages/shared/ui-package/src/index.ts diff --git a/packages/ui-package/src/packages-table-paginator.tsx b/packages/shared/ui-package/src/packages-table-paginator.tsx similarity index 100% rename from packages/ui-package/src/packages-table-paginator.tsx rename to packages/shared/ui-package/src/packages-table-paginator.tsx diff --git a/packages/ui-package/src/tags-filter-button.tsx b/packages/shared/ui-package/src/tags-filter-button.tsx similarity index 100% rename from packages/ui-package/src/tags-filter-button.tsx rename to packages/shared/ui-package/src/tags-filter-button.tsx diff --git a/packages/ui-package/tailwind.config.js b/packages/shared/ui-package/tailwind.config.js similarity index 100% rename from packages/ui-package/tailwind.config.js rename to packages/shared/ui-package/tailwind.config.js diff --git a/packages/ui-package/test/codeowners-filter-button.test.tsx b/packages/shared/ui-package/test/codeowners-filter-button.test.tsx similarity index 100% rename from packages/ui-package/test/codeowners-filter-button.test.tsx rename to packages/shared/ui-package/test/codeowners-filter-button.test.tsx diff --git a/packages/ui-package/test/packages-table-paginator.test.tsx b/packages/shared/ui-package/test/packages-table-paginator.test.tsx similarity index 100% rename from packages/ui-package/test/packages-table-paginator.test.tsx rename to packages/shared/ui-package/test/packages-table-paginator.test.tsx diff --git a/packages/ui-package/test/setup.ts b/packages/shared/ui-package/test/setup.ts similarity index 100% rename from packages/ui-package/test/setup.ts rename to packages/shared/ui-package/test/setup.ts diff --git a/packages/ui-package/test/tags-filter-button.test.tsx b/packages/shared/ui-package/test/tags-filter-button.test.tsx similarity index 100% rename from packages/ui-package/test/tags-filter-button.test.tsx rename to packages/shared/ui-package/test/tags-filter-button.test.tsx diff --git a/packages/ui-package/tsconfig.json b/packages/shared/ui-package/tsconfig.json similarity index 100% rename from packages/ui-package/tsconfig.json rename to packages/shared/ui-package/tsconfig.json diff --git a/packages/ui-package/vitest.config.ts b/packages/shared/ui-package/vitest.config.ts similarity index 100% rename from packages/ui-package/vitest.config.ts rename to packages/shared/ui-package/vitest.config.ts diff --git a/packages/shared/utils-core/.eslintrc.cjs b/packages/shared/utils-core/.eslintrc.cjs new file mode 100644 index 00000000..97414f7d --- /dev/null +++ b/packages/shared/utils-core/.eslintrc.cjs @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['commonality'], +}; diff --git a/packages/utils-core/CHANGELOG.md b/packages/shared/utils-core/CHANGELOG.md similarity index 100% rename from packages/utils-core/CHANGELOG.md rename to packages/shared/utils-core/CHANGELOG.md diff --git a/packages/utils-core/README.md b/packages/shared/utils-core/README.md similarity index 100% rename from packages/utils-core/README.md rename to packages/shared/utils-core/README.md diff --git a/packages/utils-core/commonality.json b/packages/shared/utils-core/commonality.json similarity index 100% rename from packages/utils-core/commonality.json rename to packages/shared/utils-core/commonality.json diff --git a/packages/utils-core/package.json b/packages/shared/utils-core/package.json similarity index 74% rename from packages/utils-core/package.json rename to packages/shared/utils-core/package.json index 1bbad8a5..4ffdd2a6 100644 --- a/packages/utils-core/package.json +++ b/packages/shared/utils-core/package.json @@ -5,19 +5,13 @@ "description": "Contains the common constants used in all Commonality applications and packages", "sideEffects": false, "publishConfig": { - "access": "public", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "exports": { - ".": "./dist/index.js", - "./ui": "./dist/ui/index.ts" - } + "access": "public" }, - "types": "./src/index.ts", - "main": "./src/index.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": "./src/index.ts", - "./ui": "./src/ui/index.ts" + ".": "./dist/index.js", + "./ui": "./dist/ui/index.js" }, "license": "MIT", "scripts": { @@ -43,5 +37,5 @@ "@sindresorhus/slugify": "^2.2.1", "zod": "^3.22.4" }, - "repository": "https://github.com/commonalityco/commonality/packages/utils-core" -} + "repository": "https://github.com/commonalityco/commonality/packages/shared/utils-core" +} \ No newline at end of file diff --git a/packages/utils-core/src/constants.ts b/packages/shared/utils-core/src/constants.ts similarity index 100% rename from packages/utils-core/src/constants.ts rename to packages/shared/utils-core/src/constants.ts diff --git a/packages/utils-core/src/format-package-name.ts b/packages/shared/utils-core/src/format-package-name.ts similarity index 100% rename from packages/utils-core/src/format-package-name.ts rename to packages/shared/utils-core/src/format-package-name.ts diff --git a/packages/utils-core/src/format-tag-name.ts b/packages/shared/utils-core/src/format-tag-name.ts similarity index 100% rename from packages/utils-core/src/format-tag-name.ts rename to packages/shared/utils-core/src/format-tag-name.ts diff --git a/packages/utils-core/src/index.ts b/packages/shared/utils-core/src/index.ts similarity index 100% rename from packages/utils-core/src/index.ts rename to packages/shared/utils-core/src/index.ts diff --git a/packages/utils-core/src/slugify-package-name.ts b/packages/shared/utils-core/src/slugify-package-name.ts similarity index 100% rename from packages/utils-core/src/slugify-package-name.ts rename to packages/shared/utils-core/src/slugify-package-name.ts diff --git a/packages/utils-core/src/slugify-tag-name.ts b/packages/shared/utils-core/src/slugify-tag-name.ts similarity index 100% rename from packages/utils-core/src/slugify-tag-name.ts rename to packages/shared/utils-core/src/slugify-tag-name.ts diff --git a/packages/utils-core/src/ui/get-icon-for-package.ts b/packages/shared/utils-core/src/ui/get-icon-for-package.ts similarity index 100% rename from packages/utils-core/src/ui/get-icon-for-package.ts rename to packages/shared/utils-core/src/ui/get-icon-for-package.ts diff --git a/packages/utils-core/src/ui/images/logo-next.tsx b/packages/shared/utils-core/src/ui/images/logo-next.tsx similarity index 100% rename from packages/utils-core/src/ui/images/logo-next.tsx rename to packages/shared/utils-core/src/ui/images/logo-next.tsx diff --git a/packages/utils-core/src/ui/images/logo-node.tsx b/packages/shared/utils-core/src/ui/images/logo-node.tsx similarity index 100% rename from packages/utils-core/src/ui/images/logo-node.tsx rename to packages/shared/utils-core/src/ui/images/logo-node.tsx diff --git a/packages/utils-core/src/ui/images/logo-react.tsx b/packages/shared/utils-core/src/ui/images/logo-react.tsx similarity index 100% rename from packages/utils-core/src/ui/images/logo-react.tsx rename to packages/shared/utils-core/src/ui/images/logo-react.tsx diff --git a/packages/utils-core/src/ui/images/storybook-logo.svg b/packages/shared/utils-core/src/ui/images/storybook-logo.svg similarity index 100% rename from packages/utils-core/src/ui/images/storybook-logo.svg rename to packages/shared/utils-core/src/ui/images/storybook-logo.svg diff --git a/packages/utils-core/src/ui/index.ts b/packages/shared/utils-core/src/ui/index.ts similarity index 100% rename from packages/utils-core/src/ui/index.ts rename to packages/shared/utils-core/src/ui/index.ts diff --git a/packages/utils-core/test/format-package-name.test.ts b/packages/shared/utils-core/test/format-package-name.test.ts similarity index 100% rename from packages/utils-core/test/format-package-name.test.ts rename to packages/shared/utils-core/test/format-package-name.test.ts diff --git a/packages/utils-core/test/format-tag-name.test.ts b/packages/shared/utils-core/test/format-tag-name.test.ts similarity index 100% rename from packages/utils-core/test/format-tag-name.test.ts rename to packages/shared/utils-core/test/format-tag-name.test.ts diff --git a/packages/utils-core/test/slugify-package-name.test.ts b/packages/shared/utils-core/test/slugify-package-name.test.ts similarity index 100% rename from packages/utils-core/test/slugify-package-name.test.ts rename to packages/shared/utils-core/test/slugify-package-name.test.ts diff --git a/packages/utils-core/test/slugify-tag-name.test.ts b/packages/shared/utils-core/test/slugify-tag-name.test.ts similarity index 100% rename from packages/utils-core/test/slugify-tag-name.test.ts rename to packages/shared/utils-core/test/slugify-tag-name.test.ts diff --git a/packages/utils-core/tsconfig.json b/packages/shared/utils-core/tsconfig.json similarity index 100% rename from packages/utils-core/tsconfig.json rename to packages/shared/utils-core/tsconfig.json diff --git a/packages/utils-core/vitest.config.ts b/packages/shared/utils-core/vitest.config.ts similarity index 100% rename from packages/utils-core/vitest.config.ts rename to packages/shared/utils-core/vitest.config.ts diff --git a/packages/shared/utils-package/.eslintrc.cjs b/packages/shared/utils-package/.eslintrc.cjs new file mode 100644 index 00000000..97414f7d --- /dev/null +++ b/packages/shared/utils-package/.eslintrc.cjs @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['commonality'], +}; diff --git a/packages/utils-package/CHANGELOG.md b/packages/shared/utils-package/CHANGELOG.md similarity index 100% rename from packages/utils-package/CHANGELOG.md rename to packages/shared/utils-package/CHANGELOG.md diff --git a/packages/utils-package/README.md b/packages/shared/utils-package/README.md similarity index 100% rename from packages/utils-package/README.md rename to packages/shared/utils-package/README.md diff --git a/packages/utils-package/commonality.json b/packages/shared/utils-package/commonality.json similarity index 100% rename from packages/utils-package/commonality.json rename to packages/shared/utils-package/commonality.json diff --git a/packages/utils-package/package.json b/packages/shared/utils-package/package.json similarity index 97% rename from packages/utils-package/package.json rename to packages/shared/utils-package/package.json index 067609f4..8eb99c73 100644 --- a/packages/utils-package/package.json +++ b/packages/shared/utils-package/package.json @@ -42,5 +42,5 @@ "type-check": "tsc --noEmit" }, "types": "./src/index.ts", - "repository": "https://github.com/commonalityco/commonality/packages/utils-package" + "repository": "https://github.com/commonalityco/commonality/packages/shared/utils-package" } \ No newline at end of file diff --git a/packages/utils-package/src/format-package-name.ts b/packages/shared/utils-package/src/format-package-name.ts similarity index 100% rename from packages/utils-package/src/format-package-name.ts rename to packages/shared/utils-package/src/format-package-name.ts diff --git a/packages/utils-package/src/icons/logo-next.tsx b/packages/shared/utils-package/src/icons/logo-next.tsx similarity index 100% rename from packages/utils-package/src/icons/logo-next.tsx rename to packages/shared/utils-package/src/icons/logo-next.tsx diff --git a/packages/utils-package/src/icons/logo-node.tsx b/packages/shared/utils-package/src/icons/logo-node.tsx similarity index 100% rename from packages/utils-package/src/icons/logo-node.tsx rename to packages/shared/utils-package/src/icons/logo-node.tsx diff --git a/packages/utils-package/src/icons/logo-react.tsx b/packages/shared/utils-package/src/icons/logo-react.tsx similarity index 100% rename from packages/utils-package/src/icons/logo-react.tsx rename to packages/shared/utils-package/src/icons/logo-react.tsx diff --git a/packages/utils-package/src/icons/storybook-logo.svg b/packages/shared/utils-package/src/icons/storybook-logo.svg similarity index 100% rename from packages/utils-package/src/icons/storybook-logo.svg rename to packages/shared/utils-package/src/icons/storybook-logo.svg diff --git a/packages/utils-package/src/index.ts b/packages/shared/utils-package/src/index.ts similarity index 100% rename from packages/utils-package/src/index.ts rename to packages/shared/utils-package/src/index.ts diff --git a/packages/utils-package/tsconfig.json b/packages/shared/utils-package/tsconfig.json similarity index 100% rename from packages/utils-package/tsconfig.json rename to packages/shared/utils-package/tsconfig.json diff --git a/packages/utils-package/vitest.config.ts b/packages/shared/utils-package/vitest.config.ts similarity index 100% rename from packages/utils-package/vitest.config.ts rename to packages/shared/utils-package/vitest.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9ed06f5..45661e60 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,10 +25,10 @@ importers: version: 0.34.6(vitest@0.34.6) commonality: specifier: workspace:* - version: link:packages/commonality + version: link:apps/commonality commonality-recommended: specifier: workspace:* - version: link:packages/commonality-recommended + version: link:packages/commonality/commonality-recommended eslint: specifier: ^8.54.0 version: 8.54.0 @@ -73,11 +73,174 @@ importers: specifier: workspace:^ version: link:apps/studio + apps/commonality: + dependencies: + '@antfu/install-pkg': + specifier: ^0.3.1 + version: 0.3.1 + '@sindresorhus/slugify': + specifier: ^2.2.1 + version: 2.2.1 + chalk: + specifier: ^5.3.0 + version: 5.3.0 + chokidar: + specifier: ^3.5.3 + version: 3.5.3 + commander: + specifier: ^11.0.0 + version: 11.1.0 + detect-indent: + specifier: ^7.0.1 + version: 7.0.1 + find-up: + specifier: ^6.3.0 + version: 6.3.0 + fs-extra: + specifier: ^11.1.1 + version: 11.2.0 + get-port: + specifier: ^7.0.0 + version: 7.0.0 + globby: + specifier: ^13.2.2 + version: 13.2.2 + jest-diff: + specifier: ^29.7.0 + version: 29.7.0 + jiti: + specifier: ^1.21.0 + version: 1.21.0 + kill-port: + specifier: ^2.0.1 + version: 2.0.1 + local-pkg: + specifier: ^0.5.0 + version: 0.5.0 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 + minimatch: + specifier: ^9.0.3 + version: 9.0.3 + ora: + specifier: ^7.0.1 + version: 7.0.1 + pathe: + specifier: ^1.1.1 + version: 1.1.1 + picocolors: + specifier: ^1.0.0 + version: 1.0.0 + prompts: + specifier: ^2.4.2 + version: 2.4.2 + std-env: + specifier: ^3.6.0 + version: 3.6.0 + strip-ansi: + specifier: ^7.1.0 + version: 7.1.0 + update-notifier: + specifier: ^6.0.2 + version: 6.0.2 + wait-on: + specifier: ^7.2.0 + version: 7.2.0(debug@4.3.4) + yaml: + specifier: ^2.3.2 + version: 2.3.4 + zod: + specifier: ^3.22.4 + version: 3.22.4 + devDependencies: + '@commonalityco/config-tsconfig': + specifier: workspace:* + version: link:../../tooling/config-tsconfig + '@commonalityco/data-codeowners': + specifier: workspace:* + version: link:../../packages/shared/data-codeowners + '@commonalityco/data-conformance': + specifier: workspace:* + version: link:../../packages/conformance/data-conformance + '@commonalityco/data-constraints': + specifier: workspace:* + version: link:../../packages/constraints/data-constraints + '@commonalityco/data-packages': + specifier: workspace:* + version: link:../../packages/shared/data-packages + '@commonalityco/data-project': + specifier: workspace:* + version: link:../../packages/shared/data-project + '@commonalityco/data-tags': + specifier: workspace:* + version: link:../../packages/shared/data-tags + '@commonalityco/types': + specifier: workspace:* + version: link:../../packages/shared/types + '@commonalityco/utils-conformance': + specifier: workspace:* + version: link:../../packages/conformance/utils-conformance + '@commonalityco/utils-constraints': + specifier: workspace:* + version: link:../../packages/constraints/utils-constraints + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../../packages/shared/utils-core + '@swc/core': + specifier: ^1.3.86 + version: 1.3.99 + '@types/fs-extra': + specifier: ^11.0.2 + version: 11.0.4 + '@types/kill-port': + specifier: ^2.0.1 + version: 2.0.3 + '@types/node': + specifier: ^20.10.0 + version: 20.10.5 + '@types/prompts': + specifier: ^2.4.4 + version: 2.4.9 + '@types/update-notifier': + specifier: ^6.0.5 + version: 6.0.8 + '@types/wait-on': + specifier: ^5.3.1 + version: 5.3.4 + dts-bundle-generator: + specifier: ^9.0.0 + version: 9.0.0 + esbuild: + specifier: ^0.19.3 + version: 0.19.8 + eslint-config-commonality: + specifier: workspace:* + version: link:../../tooling/config-eslint + mock-stdin: + specifier: ^1.0.0 + version: 1.0.0 + npm-run-all: + specifier: ^4.1.5 + version: 4.1.5 + ts-node: + specifier: ^10.9.1 + version: 10.9.2(@swc/core@1.3.99)(@types/node@20.10.5)(typescript@5.3.3) + tsup: + specifier: ^8.0.1 + version: 8.0.1(@swc/core@1.3.99)(ts-node@10.9.2)(typescript@5.3.3) + typescript: + specifier: ^5.2.2 + version: 5.3.3 + apps/documentation: dependencies: '@commonalityco/ui-design-system': specifier: workspace:* - version: link:../../packages/ui-design-system + version: link:../../packages/shared/ui-design-system next: specifier: ^13.0.6 version: 13.5.6(react-dom@18.2.0)(react@18.2.0) @@ -139,40 +302,49 @@ importers: version: link:../../tooling/config-tailwind '@commonalityco/data-codeowners': specifier: workspace:* - version: link:../../packages/data-codeowners + version: link:../../packages/shared/data-codeowners + '@commonalityco/data-constraints': + specifier: workspace:* + version: link:../../packages/constraints/data-constraints '@commonalityco/data-packages': specifier: workspace:* - version: link:../../packages/data-packages + version: link:../../packages/shared/data-packages '@commonalityco/data-project': specifier: workspace:* - version: link:../../packages/data-project + version: link:../../packages/shared/data-project '@commonalityco/data-tags': specifier: workspace:* - version: link:../../packages/data-tags - '@commonalityco/feature-conformance': + version: link:../../packages/shared/data-tags + '@commonalityco/types': specifier: workspace:* - version: link:../../packages/feature-conformance - '@commonalityco/feature-constraints': + version: link:../../packages/shared/types + '@commonalityco/ui-conformance': specifier: workspace:* - version: link:../../packages/feature-constraints - '@commonalityco/types': + version: link:../../packages/conformance/ui-conformance + '@commonalityco/ui-constraints': specifier: workspace:* - version: link:../../packages/types + version: link:../../packages/constraints/ui-constraints '@commonalityco/ui-core': specifier: workspace:* - version: link:../../packages/ui-core + version: link:../../packages/shared/ui-core '@commonalityco/ui-design-system': specifier: workspace:* - version: link:../../packages/ui-design-system + version: link:../../packages/shared/ui-design-system '@commonalityco/ui-package': specifier: workspace:* - version: link:../../packages/ui-package + version: link:../../packages/shared/ui-package + '@commonalityco/utils-conformance': + specifier: workspace:* + version: link:../../packages/conformance/utils-conformance + '@commonalityco/utils-constraints': + specifier: workspace:* + version: link:../../packages/constraints/utils-constraints '@commonalityco/utils-core': specifier: workspace:* - version: link:../../packages/utils-core + version: link:../../packages/shared/utils-core '@commonalityco/utils-package': specifier: workspace:* - version: link:../../packages/utils-package + version: link:../../packages/shared/utils-package '@hookform/resolvers': specifier: ^3.3.1 version: 3.3.2(react-hook-form@7.49.2) @@ -341,27 +513,27 @@ importers: apps/workshop: dependencies: - '@commonalityco/feature-conformance': + '@commonalityco/types': specifier: workspace:* - version: link:../../packages/feature-conformance - '@commonalityco/feature-constraints': + version: link:../../packages/shared/types + '@commonalityco/ui-conformance': specifier: workspace:* - version: link:../../packages/feature-constraints - '@commonalityco/types': + version: link:../../packages/conformance/ui-conformance + '@commonalityco/ui-constraints': specifier: workspace:* - version: link:../../packages/types + version: link:../../packages/constraints/ui-constraints '@commonalityco/ui-core': specifier: workspace:* - version: link:../../packages/ui-core + version: link:../../packages/shared/ui-core '@commonalityco/ui-design-system': specifier: workspace:* - version: link:../../packages/ui-design-system + version: link:../../packages/shared/ui-design-system '@commonalityco/ui-package': specifier: workspace:* - version: link:../../packages/ui-package + version: link:../../packages/shared/ui-package '@commonalityco/utils-core': specifier: workspace:* - version: link:../../packages/utils-core + version: link:../../packages/shared/utils-core next: specifier: 14.0.1 version: 14.0.1(@babel/core@7.23.6)(react-dom@18.2.0)(react@18.2.0) @@ -466,344 +638,512 @@ importers: specifier: ^5.88.2 version: 5.89.0(esbuild@0.18.20) - packages/commonality: + packages/commonality/commonality-recommended: dependencies: - '@antfu/install-pkg': - specifier: ^0.3.1 - version: 0.3.1 - '@sindresorhus/slugify': - specifier: ^2.2.1 - version: 2.2.1 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + semver: + specifier: ^7.5.4 + version: 7.5.4 + validate-npm-package-name: + specifier: ^5.0.0 + version: 5.0.0 + devDependencies: + '@commonalityco/config-tsconfig': + specifier: workspace:* + version: link:../../../tooling/config-tsconfig + '@types/lodash': + specifier: ^4.14.198 + version: 4.14.202 + '@types/mock-fs': + specifier: ^4.13.4 + version: 4.13.4 + '@types/semver': + specifier: ^7.5.6 + version: 7.5.6 + '@types/validate-npm-package-name': + specifier: ^4.0.2 + version: 4.0.2 + commonality: + specifier: workspace:* + version: link:../../../apps/commonality + eslint-config-commonality: + specifier: workspace:* + version: link:../../../tooling/config-eslint + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 + typescript: + specifier: ^5.2.2 + version: 5.3.3 + + packages/conformance/data-conformance: + dependencies: + '@tanstack/react-table': + specifier: ^8.10.1 + version: 8.11.0(react-dom@18.2.0)(react@18.2.0) chalk: specifier: ^5.3.0 version: 5.3.0 - chokidar: - specifier: ^3.5.3 - version: 3.5.3 - commander: - specifier: ^11.0.0 - version: 11.1.0 detect-indent: specifier: ^7.0.1 version: 7.0.1 - find-up: - specifier: ^6.3.0 - version: 6.3.0 fs-extra: specifier: ^11.1.1 version: 11.2.0 - get-port: - specifier: ^7.0.0 - version: 7.0.0 - globby: - specifier: ^13.2.2 - version: 13.2.2 jest-diff: specifier: ^29.7.0 version: 29.7.0 - jiti: - specifier: ^1.21.0 - version: 1.21.0 - kill-port: - specifier: ^2.0.1 - version: 2.0.1 - local-pkg: - specifier: ^0.5.0 - version: 0.5.0 - lodash: - specifier: ^4.17.21 - version: 4.17.21 lodash-es: specifier: ^4.17.21 version: 4.17.21 - minimatch: - specifier: ^9.0.3 - version: 9.0.3 - ora: - specifier: ^7.0.1 - version: 7.0.1 + lucide-react: + specifier: ^0.274.0 + version: 0.274.0(react@18.2.0) + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 pathe: specifier: ^1.1.1 version: 1.1.1 - picocolors: - specifier: ^1.0.0 - version: 1.0.0 - prompts: - specifier: ^2.4.2 - version: 2.4.2 - std-env: - specifier: ^3.6.0 - version: 3.6.0 + server-only: + specifier: ^0.0.1 + version: 0.0.1 strip-ansi: specifier: ^7.1.0 version: 7.1.0 - update-notifier: - specifier: ^6.0.2 - version: 6.0.2 - wait-on: - specifier: ^7.2.0 - version: 7.2.0(debug@4.3.4) - yaml: - specifier: ^2.3.2 - version: 2.3.4 - zod: - specifier: ^3.22.4 - version: 3.22.4 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig - '@commonalityco/data-codeowners': - specifier: workspace:* - version: link:../data-codeowners - '@commonalityco/data-packages': - specifier: workspace:* - version: link:../data-packages - '@commonalityco/data-project': - specifier: workspace:* - version: link:../data-project - '@commonalityco/data-tags': - specifier: workspace:* - version: link:../data-tags - '@commonalityco/feature-conformance': - specifier: workspace:* - version: link:../feature-conformance - '@commonalityco/feature-constraints': - specifier: workspace:* - version: link:../feature-constraints + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types + '@commonalityco/ui-design-system': + specifier: workspace:* + version: link:../../shared/ui-design-system '@commonalityco/utils-core': specifier: workspace:* - version: link:../utils-core - '@swc/core': - specifier: ^1.3.86 - version: 1.3.99 + version: link:../../shared/utils-core + '@testing-library/jest-dom': + specifier: ^6.1.3 + version: 6.1.5(jest@29.7.0)(vitest@0.34.6) + '@testing-library/react': + specifier: ^14.0.0 + version: 14.1.2(react-dom@18.2.0)(react@18.2.0) '@types/fs-extra': specifier: ^11.0.2 version: 11.0.4 - '@types/kill-port': - specifier: ^2.0.1 - version: 2.0.3 - '@types/node': - specifier: ^20.10.0 - version: 20.10.5 - '@types/prompts': - specifier: ^2.4.4 - version: 2.4.9 - '@types/update-notifier': - specifier: ^6.0.5 - version: 6.0.8 - '@types/wait-on': - specifier: ^5.3.1 - version: 5.3.4 - esbuild: - specifier: ^0.19.3 - version: 0.19.8 - eslint-config-commonality: - specifier: workspace:* - version: link:../../tooling/config-eslint - mock-stdin: - specifier: ^1.0.0 - version: 1.0.0 - npm-run-all: - specifier: ^4.1.5 - version: 4.1.5 - ts-node: - specifier: ^10.9.1 - version: 10.9.2(@swc/core@1.3.99)(@types/node@20.10.5)(typescript@5.3.3) - tsup: - specifier: ^8.0.1 - version: 8.0.1(@swc/core@1.3.99)(ts-node@10.9.2)(typescript@5.3.3) - typescript: - specifier: ^5.2.2 - version: 5.3.3 - - packages/commonality-recommended: - dependencies: - lodash: - specifier: ^4.17.21 - version: 4.17.21 - semver: - specifier: ^7.5.4 - version: 7.5.4 - validate-npm-package-name: - specifier: ^5.0.0 - version: 5.0.0 - devDependencies: - '@commonalityco/config-tsconfig': - specifier: workspace:* - version: link:../../tooling/config-tsconfig - '@types/lodash': - specifier: ^4.14.198 - version: 4.14.202 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 '@types/mock-fs': specifier: ^4.13.4 version: 4.13.4 - '@types/semver': - specifier: ^7.5.6 - version: 7.5.6 - '@types/validate-npm-package-name': - specifier: ^4.0.2 - version: 4.0.2 - commonality: - specifier: workspace:* - version: link:../commonality + '@types/react': + specifier: ^18.2.22 + version: 18.2.45 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint - mock-fs: - specifier: ^5.2.0 - version: 5.2.0 + version: link:../../../tooling/config-eslint + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) typescript: specifier: ^5.2.2 version: 5.3.3 - packages/data-codeowners: + packages/conformance/ui-conformance: dependencies: - fast-glob: - specifier: ^3.3.1 - version: 3.3.2 + '@tanstack/react-table': + specifier: ^8.10.1 + version: 8.11.0(react-dom@18.2.0)(react@18.2.0) + chalk: + specifier: ^5.3.0 + version: 5.3.0 + detect-indent: + specifier: ^7.0.1 + version: 7.0.1 fs-extra: specifier: ^11.1.1 version: 11.2.0 - ignore: - specifier: ^5.2.4 - version: 5.3.0 - minimatch: - specifier: ^9.0.3 - version: 9.0.3 + jest-diff: + specifier: ^29.7.0 + version: 29.7.0 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 + lucide-react: + specifier: ^0.274.0 + version: 0.274.0(react@18.2.0) + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 + pathe: + specifier: ^1.1.1 + version: 1.1.1 + server-only: + specifier: ^0.0.1 + version: 0.0.1 + strip-ansi: + specifier: ^7.1.0 + version: 7.1.0 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types + '@commonalityco/ui-design-system': + specifier: workspace:* + version: link:../../shared/ui-design-system + '@commonalityco/utils-conformance': + specifier: workspace:* + version: link:../utils-conformance + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../../shared/utils-core + '@testing-library/jest-dom': + specifier: ^6.1.3 + version: 6.1.5(jest@29.7.0)(vitest@0.34.6) + '@testing-library/react': + specifier: ^14.0.0 + version: 14.1.2(react-dom@18.2.0)(react@18.2.0) '@types/fs-extra': specifier: ^11.0.2 version: 11.0.4 - '@types/node': - specifier: ^20.10.0 - version: 20.10.5 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 + '@types/mock-fs': + specifier: ^4.13.4 + version: 4.13.4 + '@types/react': + specifier: ^18.2.22 + version: 18.2.45 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) typescript: specifier: ^5.2.2 version: 5.3.3 - packages/data-packages: + packages/conformance/utils-conformance: dependencies: - '@commonalityco/data-project': - specifier: workspace:* - version: link:../data-project - '@commonalityco/utils-core': - specifier: workspace:* - version: link:../utils-core + '@tanstack/react-table': + specifier: ^8.10.1 + version: 8.11.0(react-dom@18.2.0)(react@18.2.0) + chalk: + specifier: ^5.3.0 + version: 5.3.0 + detect-indent: + specifier: ^7.0.1 + version: 7.0.1 fs-extra: specifier: ^11.1.1 version: 11.2.0 + jest-diff: + specifier: ^29.7.0 + version: 29.7.0 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 + lucide-react: + specifier: ^0.274.0 + version: 0.274.0(react@18.2.0) + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 + pathe: + specifier: ^1.1.1 + version: 1.1.1 + server-only: + specifier: ^0.0.1 + version: 0.0.1 + strip-ansi: + specifier: ^7.1.0 + version: 7.1.0 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types + '@commonalityco/ui-design-system': + specifier: workspace:* + version: link:../../shared/ui-design-system + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../../shared/utils-core + '@testing-library/jest-dom': + specifier: ^6.1.3 + version: 6.1.5(jest@29.7.0)(vitest@0.34.6) + '@testing-library/react': + specifier: ^14.0.0 + version: 14.1.2(react-dom@18.2.0)(react@18.2.0) '@types/fs-extra': specifier: ^11.0.2 version: 11.0.4 - '@types/node': - specifier: ^20.10.0 - version: 20.10.5 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 + '@types/mock-fs': + specifier: ^4.13.4 + version: 4.13.4 + '@types/react': + specifier: ^18.2.22 + version: 18.2.45 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) typescript: specifier: ^5.2.2 version: 5.3.3 - packages/data-project: + packages/constraints/data-constraints: dependencies: - '@commonalityco/utils-core': - specifier: workspace:* - version: link:../utils-core + '@floating-ui/react': + specifier: ^0.26.3 + version: 0.26.3(react-dom@18.2.0)(react@18.2.0) + '@tanstack/react-table': + specifier: ^8.10.1 + version: 8.11.0(react-dom@18.2.0)(react@18.2.0) + '@xstate/react': + specifier: ^3.2.2 + version: 3.2.2(@types/react@18.2.45)(react@18.2.0)(xstate@4.38.3) chalk: specifier: ^5.3.0 version: 5.3.0 - cosmiconfig: - specifier: ^8.3.6 - version: 8.3.6(typescript@5.3.3) - cosmiconfig-typescript-loader: - specifier: ^5.0.0 - version: 5.0.0(@types/node@20.10.5)(cosmiconfig@8.3.6)(typescript@5.3.3) - find-up: - specifier: ^6.3.0 - version: 6.3.0 + crypto-js: + specifier: ^4.2.0 + version: 4.2.0 + cytoscape-dagre: + specifier: ^2.5.0 + version: 2.5.0(cytoscape@3.28.0) + cytoscape-popper: + specifier: ^2.0.0 + version: 2.0.0(cytoscape@3.28.0) + detect-indent: + specifier: ^7.0.1 + version: 7.0.1 fs-extra: specifier: ^11.1.1 version: 11.2.0 - globby: - specifier: ^13.2.2 - version: 13.2.2 - jiti: - specifier: ^1.21.0 - version: 1.21.0 - yaml: - specifier: ^2.3.2 - version: 2.3.4 - zod: - specifier: ^3.22.4 - version: 3.22.4 + jest-diff: + specifier: ^29.7.0 + version: 29.7.0 + localforage: + specifier: ^1.10.0 + version: 1.10.0 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 + lucide-react: + specifier: ^0.274.0 + version: 0.274.0(react@18.2.0) + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 + react-resizable-panels: + specifier: ^0.0.63 + version: 0.0.63(react-dom@18.2.0)(react@18.2.0) + server-only: + specifier: ^0.0.1 + version: 0.0.1 + strip-ansi: + specifier: ^7.1.0 + version: 7.1.0 + xstate: + specifier: ^4.38.2 + version: 4.38.3 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types + '@commonalityco/ui-core': + specifier: workspace:* + version: link:../../shared/ui-core + '@commonalityco/ui-design-system': + specifier: workspace:* + version: link:../../shared/ui-design-system + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../../shared/utils-core + '@commonalityco/utils-package': + specifier: workspace:* + version: link:../../shared/utils-package + '@testing-library/jest-dom': + specifier: ^6.1.3 + version: 6.1.5(jest@29.7.0)(vitest@0.34.6) + '@testing-library/react': + specifier: ^14.0.0 + version: 14.1.2(react-dom@18.2.0)(react@18.2.0) + '@types/crypto-js': + specifier: ^4.2.1 + version: 4.2.1 + '@types/cytoscape': + specifier: ^3.19.16 + version: 3.19.16 + '@types/cytoscape-dagre': + specifier: ^2.3.3 + version: 2.3.3 + '@types/cytoscape-popper': + specifier: ^2.0.4 + version: 2.0.4 '@types/fs-extra': specifier: ^11.0.2 version: 11.0.4 - '@types/node': - specifier: ^20.10.0 - version: 20.10.5 + '@types/lodash': + specifier: ^4.14.198 + version: 4.14.202 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 + '@types/mock-fs': + specifier: ^4.13.4 + version: 4.13.4 + '@types/react': + specifier: ^18.2.22 + version: 18.2.45 + cytoscape: + specifier: ^3.26.0 + version: 3.28.0 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint - mock-fs: - specifier: ^5.2.0 - version: 5.2.0 + version: link:../../../tooling/config-eslint + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) typescript: specifier: ^5.2.2 version: 5.3.3 - packages/data-tags: + packages/constraints/state-constraints: dependencies: - '@commonalityco/data-project': - specifier: workspace:* - version: link:../data-project - '@commonalityco/utils-core': - specifier: workspace:* - version: link:../utils-core + '@floating-ui/react': + specifier: ^0.26.3 + version: 0.26.3(react-dom@18.2.0)(react@18.2.0) + '@tanstack/react-table': + specifier: ^8.10.1 + version: 8.11.0(react-dom@18.2.0)(react@18.2.0) + '@xstate/react': + specifier: ^3.2.2 + version: 3.2.2(@types/react@18.2.45)(react@18.2.0)(xstate@4.38.3) + chalk: + specifier: ^5.3.0 + version: 5.3.0 + crypto-js: + specifier: ^4.2.0 + version: 4.2.0 + cytoscape-dagre: + specifier: ^2.5.0 + version: 2.5.0(cytoscape@3.28.0) + cytoscape-popper: + specifier: ^2.0.0 + version: 2.0.0(cytoscape@3.28.0) + detect-indent: + specifier: ^7.0.1 + version: 7.0.1 fs-extra: specifier: ^11.1.1 version: 11.2.0 + jest-diff: + specifier: ^29.7.0 + version: 29.7.0 + localforage: + specifier: ^1.10.0 + version: 1.10.0 lodash: specifier: ^4.17.21 version: 4.17.21 lodash-es: specifier: ^4.17.21 version: 4.17.21 + lucide-react: + specifier: ^0.274.0 + version: 0.274.0(react@18.2.0) + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 + react-resizable-panels: + specifier: ^0.0.63 + version: 0.0.63(react-dom@18.2.0)(react@18.2.0) + server-only: + specifier: ^0.0.1 + version: 0.0.1 + strip-ansi: + specifier: ^7.1.0 + version: 7.1.0 + xstate: + specifier: ^4.38.2 + version: 4.38.3 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types + '@commonalityco/ui-core': + specifier: workspace:* + version: link:../../shared/ui-core + '@commonalityco/ui-design-system': + specifier: workspace:* + version: link:../../shared/ui-design-system + '@commonalityco/utils-constraints': + specifier: workspace:* + version: link:../utils-constraints + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../../shared/utils-core + '@commonalityco/utils-package': + specifier: workspace:* + version: link:../../shared/utils-package + '@testing-library/jest-dom': + specifier: ^6.1.3 + version: 6.1.5(jest@29.7.0)(vitest@0.34.6) + '@testing-library/react': + specifier: ^14.0.0 + version: 14.1.2(react-dom@18.2.0)(react@18.2.0) + '@types/crypto-js': + specifier: ^4.2.1 + version: 4.2.1 + '@types/cytoscape': + specifier: ^3.19.16 + version: 3.19.16 + '@types/cytoscape-dagre': + specifier: ^2.3.3 + version: 2.3.3 + '@types/cytoscape-popper': + specifier: ^2.0.4 + version: 2.0.4 '@types/fs-extra': specifier: ^11.0.2 version: 11.0.4 @@ -812,25 +1152,52 @@ importers: version: 4.14.202 '@types/lodash-es': specifier: ^4.17.12 - version: 4.17.12 - '@types/node': - specifier: ^20.10.0 - version: 20.10.5 + version: 4.17.12 + '@types/mock-fs': + specifier: ^4.13.4 + version: 4.13.4 + '@types/react': + specifier: ^18.2.22 + version: 18.2.45 + cytoscape: + specifier: ^3.26.0 + version: 3.28.0 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) typescript: specifier: ^5.2.2 version: 5.3.3 - packages/feature-conformance: + packages/constraints/ui-constraints: dependencies: + '@floating-ui/react': + specifier: ^0.26.3 + version: 0.26.3(react-dom@18.2.0)(react@18.2.0) '@tanstack/react-table': specifier: ^8.10.1 version: 8.11.0(react-dom@18.2.0)(react@18.2.0) + '@xstate/react': + specifier: ^3.2.2 + version: 3.2.2(@types/react@18.2.45)(react@18.2.0)(xstate@4.38.3) chalk: specifier: ^5.3.0 version: 5.3.0 + crypto-js: + specifier: ^4.2.0 + version: 4.2.0 + cytoscape-dagre: + specifier: ^2.5.0 + version: 2.5.0(cytoscape@3.28.0) + cytoscape-popper: + specifier: ^2.0.0 + version: 2.0.0(cytoscape@3.28.0) detect-indent: specifier: ^7.0.1 version: 7.0.1 @@ -840,6 +1207,12 @@ importers: jest-diff: specifier: ^29.7.0 version: 29.7.0 + localforage: + specifier: ^1.10.0 + version: 1.10.0 + lodash: + specifier: ^4.17.21 + version: 4.17.21 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -849,37 +1222,67 @@ importers: mock-fs: specifier: ^5.2.0 version: 5.2.0 - pathe: - specifier: ^1.1.1 - version: 1.1.1 + react-resizable-panels: + specifier: ^0.0.63 + version: 0.0.63(react-dom@18.2.0)(react@18.2.0) server-only: specifier: ^0.0.1 version: 0.0.1 strip-ansi: specifier: ^7.1.0 version: 7.1.0 + xstate: + specifier: ^4.38.2 + version: 4.38.3 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig + '@commonalityco/state-constraints': + specifier: workspace:* + version: link:../state-constraints '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types + '@commonalityco/ui-core': + specifier: workspace:* + version: link:../../shared/ui-core '@commonalityco/ui-design-system': specifier: workspace:* - version: link:../ui-design-system + version: link:../../shared/ui-design-system + '@commonalityco/utils-constraints': + specifier: workspace:* + version: link:../utils-constraints '@commonalityco/utils-core': specifier: workspace:* - version: link:../utils-core + version: link:../../shared/utils-core + '@commonalityco/utils-package': + specifier: workspace:* + version: link:../../shared/utils-package '@testing-library/jest-dom': specifier: ^6.1.3 version: 6.1.5(jest@29.7.0)(vitest@0.34.6) '@testing-library/react': specifier: ^14.0.0 version: 14.1.2(react-dom@18.2.0)(react@18.2.0) + '@types/crypto-js': + specifier: ^4.2.1 + version: 4.2.1 + '@types/cytoscape': + specifier: ^3.19.16 + version: 3.19.16 + '@types/cytoscape-dagre': + specifier: ^2.3.3 + version: 2.3.3 + '@types/cytoscape-popper': + specifier: ^2.0.4 + version: 2.0.4 '@types/fs-extra': specifier: ^11.0.2 version: 11.0.4 + '@types/lodash': + specifier: ^4.14.198 + version: 4.14.202 '@types/lodash-es': specifier: ^4.17.12 version: 4.17.12 @@ -889,9 +1292,12 @@ importers: '@types/react': specifier: ^18.2.22 version: 18.2.45 + cytoscape: + specifier: ^3.26.0 + version: 3.28.0 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint react: specifier: ^18.2.0 version: 18.2.0 @@ -902,7 +1308,7 @@ importers: specifier: ^5.2.2 version: 5.3.3 - packages/feature-constraints: + packages/constraints/utils-constraints: dependencies: '@floating-ui/react': specifier: ^0.26.3 @@ -964,22 +1370,22 @@ importers: devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* - version: link:../types + version: link:../../shared/types '@commonalityco/ui-core': specifier: workspace:* - version: link:../ui-core + version: link:../../shared/ui-core '@commonalityco/ui-design-system': specifier: workspace:* - version: link:../ui-design-system + version: link:../../shared/ui-design-system '@commonalityco/utils-core': specifier: workspace:* - version: link:../utils-core + version: link:../../shared/utils-core '@commonalityco/utils-package': specifier: workspace:* - version: link:../utils-package + version: link:../../shared/utils-package '@testing-library/jest-dom': specifier: ^6.1.3 version: 6.1.5(jest@29.7.0)(vitest@0.34.6) @@ -1018,7 +1424,7 @@ importers: version: 3.28.0 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint react: specifier: ^18.2.0 version: 18.2.0 @@ -1029,22 +1435,185 @@ importers: specifier: ^5.2.2 version: 5.3.3 - packages/types: + packages/shared/data-codeowners: + dependencies: + fast-glob: + specifier: ^3.3.1 + version: 3.3.2 + fs-extra: + specifier: ^11.1.1 + version: 11.2.0 + ignore: + specifier: ^5.2.4 + version: 5.3.0 + minimatch: + specifier: ^9.0.3 + version: 9.0.3 + devDependencies: + '@commonalityco/config-tsconfig': + specifier: workspace:* + version: link:../../../tooling/config-tsconfig + '@commonalityco/types': + specifier: workspace:* + version: link:../types + '@types/fs-extra': + specifier: ^11.0.2 + version: 11.0.4 + '@types/node': + specifier: ^20.10.0 + version: 20.10.5 + eslint-config-commonality: + specifier: workspace:* + version: link:../../../tooling/config-eslint + typescript: + specifier: ^5.2.2 + version: 5.3.3 + + packages/shared/data-packages: + dependencies: + '@commonalityco/data-project': + specifier: workspace:* + version: link:../data-project + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../utils-core + fs-extra: + specifier: ^11.1.1 + version: 11.2.0 devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig + '@commonalityco/types': + specifier: workspace:* + version: link:../types + '@types/fs-extra': + specifier: ^11.0.2 + version: 11.0.4 + '@types/node': + specifier: ^20.10.0 + version: 20.10.5 + eslint-config-commonality: + specifier: workspace:* + version: link:../../../tooling/config-eslint + typescript: + specifier: ^5.2.2 + version: 5.3.3 + + packages/shared/data-project: + dependencies: '@commonalityco/utils-core': specifier: workspace:* version: link:../utils-core + chalk: + specifier: ^5.3.0 + version: 5.3.0 + cosmiconfig: + specifier: ^8.3.6 + version: 8.3.6(typescript@5.3.3) + cosmiconfig-typescript-loader: + specifier: ^5.0.0 + version: 5.0.0(@types/node@20.10.5)(cosmiconfig@8.3.6)(typescript@5.3.3) + find-up: + specifier: ^6.3.0 + version: 6.3.0 + fs-extra: + specifier: ^11.1.1 + version: 11.2.0 + globby: + specifier: ^13.2.2 + version: 13.2.2 + jiti: + specifier: ^1.21.0 + version: 1.21.0 + yaml: + specifier: ^2.3.2 + version: 2.3.4 + zod: + specifier: ^3.22.4 + version: 3.22.4 + devDependencies: + '@commonalityco/config-tsconfig': + specifier: workspace:* + version: link:../../../tooling/config-tsconfig + '@commonalityco/types': + specifier: workspace:* + version: link:../types + '@types/fs-extra': + specifier: ^11.0.2 + version: 11.0.4 + '@types/node': + specifier: ^20.10.0 + version: 20.10.5 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint + mock-fs: + specifier: ^5.2.0 + version: 5.2.0 + typescript: + specifier: ^5.2.2 + version: 5.3.3 + + packages/shared/data-tags: + dependencies: + '@commonalityco/data-project': + specifier: workspace:* + version: link:../data-project + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../utils-core + fs-extra: + specifier: ^11.1.1 + version: 11.2.0 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 + devDependencies: + '@commonalityco/config-tsconfig': + specifier: workspace:* + version: link:../../../tooling/config-tsconfig + '@commonalityco/types': + specifier: workspace:* + version: link:../types + '@types/fs-extra': + specifier: ^11.0.2 + version: 11.0.4 + '@types/lodash': + specifier: ^4.14.198 + version: 4.14.202 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 + '@types/node': + specifier: ^20.10.0 + version: 20.10.5 + eslint-config-commonality: + specifier: workspace:* + version: link:../../../tooling/config-eslint typescript: specifier: ^5.2.2 version: 5.3.3 - packages/ui-core: + packages/shared/types: + devDependencies: + '@commonalityco/config-tsconfig': + specifier: workspace:* + version: link:../../../tooling/config-tsconfig + '@commonalityco/utils-core': + specifier: workspace:* + version: link:../utils-core + eslint-config-commonality: + specifier: workspace:* + version: link:../../../tooling/config-eslint + typescript: + specifier: ^5.2.2 + version: 5.3.3 + + packages/shared/ui-core: dependencies: '@commonalityco/types': specifier: workspace:* @@ -1070,10 +1639,10 @@ importers: devDependencies: '@commonalityco/config-tailwind': specifier: workspace:* - version: link:../../tooling/config-tailwind + version: link:../../../tooling/config-tailwind '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/ui-design-system': specifier: workspace:* version: link:../ui-design-system @@ -1088,7 +1657,7 @@ importers: version: 15.5.10 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint lucide-react: specifier: ^0.274.0 version: 0.274.0(react@18.2.0) @@ -1111,7 +1680,7 @@ importers: specifier: ^5.2.2 version: 5.3.3 - packages/ui-design-system: + packages/shared/ui-design-system: dependencies: '@hookform/resolvers': specifier: ^3.3.1 @@ -1185,10 +1754,10 @@ importers: devDependencies: '@commonalityco/config-tailwind': specifier: workspace:* - version: link:../../tooling/config-tailwind + version: link:../../../tooling/config-tailwind '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@testing-library/jest-dom': specifier: ^6.1.3 version: 6.1.5(jest@29.7.0)(vitest@0.34.6) @@ -1200,7 +1769,7 @@ importers: version: 18.2.45 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint lucide-react: specifier: ^0.274.0 version: 0.274.0(react@18.2.0) @@ -1220,14 +1789,14 @@ importers: specifier: ^5.2.2 version: 5.3.3 - packages/ui-package: + packages/shared/ui-package: devDependencies: '@commonalityco/config-tailwind': specifier: workspace:* - version: link:../../tooling/config-tailwind + version: link:../../../tooling/config-tailwind '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* version: link:../types @@ -1266,7 +1835,7 @@ importers: version: 3.5.0(vite@4.5.1) eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint lucide-react: specifier: ^0.274.0 version: 0.274.0(react@18.2.0) @@ -1283,7 +1852,7 @@ importers: specifier: ^5.2.2 version: 5.3.3 - packages/utils-core: + packages/shared/utils-core: dependencies: '@sindresorhus/slugify': specifier: ^2.2.1 @@ -1294,13 +1863,13 @@ importers: devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@types/react': specifier: ^18.2.22 version: 18.2.45 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint react: specifier: ^18.2.0 version: 18.2.0 @@ -1311,7 +1880,7 @@ importers: specifier: ^5.2.2 version: 5.3.3 - packages/utils-package: + packages/shared/utils-package: dependencies: '@commonalityco/utils-core': specifier: workspace:* @@ -1319,7 +1888,7 @@ importers: devDependencies: '@commonalityco/config-tsconfig': specifier: workspace:* - version: link:../../tooling/config-tsconfig + version: link:../../../tooling/config-tsconfig '@commonalityco/types': specifier: workspace:* version: link:../types @@ -1328,7 +1897,7 @@ importers: version: 18.2.45 eslint-config-commonality: specifier: workspace:* - version: link:../../tooling/config-eslint + version: link:../../../tooling/config-eslint postcss: specifier: ^8.4.30 version: 8.4.32 @@ -9964,6 +10533,15 @@ packages: engines: {node: '>=12'} dev: true + /dts-bundle-generator@9.0.0: + resolution: {integrity: sha512-4XPDOb+F1fkPrvqFL4hnNW2Edc3uiFxQDsK8gUMP8/45+QkA+dSOH0ZWZCKXEjA3ITVbPGV1li8oP8JE4Z/Y0g==} + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + typescript: 5.3.3 + yargs: 17.7.2 + dev: true + /duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} dev: true