Skip to content

@autoform/react should be a peerDependencies of @autoform/mui, instead of dependencies #194

@csr632

Description

@csr632

When I need to use buildZodFieldConfig:

import { z } from 'zod';
import { buildZodFieldConfig } from '@autoform/react';
import { FieldTypes } from '@autoform/mui';
const fieldConfig = buildZodFieldConfig<
  FieldTypes,
  {
    // You can define custom props here
    isImportant?: boolean;
  }
>();

I need to import it from @autoform/react. But it is auto-installed as a dependencies of @autoform/mui. I cannot import it in my project (I am using pnpm which strictly preventing phantom dependency). For some reason I cannot config public-hoist-pattern of pnpm (team regulation to prevent phantom dependency).
So I have to install @autoform/react in my project, which may causing duplicate @autoform/react packages in the node_modules tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions