Skip to content

Is prettier required in zenstadk sdk ? #1079

@NeoN0x

Description

@NeoN0x

Description and expected behavior

I'm digging into my project and saw that prettier is installed allongside zenstack because of the sdk package.

  └─┬ zenstack
    └─┬ @zenstackhq/sdk
      └── prettier

From here, in the packages/sdk/package.json

https://github.com/zenstackhq/zenstack/blob/8c9b80dac912b2156fdbb4f25cb462ff2c50ebeb/packages/sdk/package.json

However, it appears to be used in the to declare the function "formatFile"

https://github.com/zenstackhq/zenstack/blob/8c9b80dac912b2156fdbb4f25cb462ff2c50ebeb/packages/sdk/src/code-gen.ts

But it seems that formatFile function is never called anywhere (my search : https://github.com/search?q=repo%3Azenstackhq%2Fzenstack%20formatFile&type=code) + all through the documentation.

So the question is the following : is prettier required at all for zenstack to function ?

If no, it would be great to remove this deps.

Screenshots
N/A

Environment (please complete the following information):
N/A

Additional context
N/A

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions