Skip to content

cleanPublic not working #988

@mgrsskls

Description

@mgrsskls

I am using Pattern Lab Node 3.0.0-beta.2 on Mac, with Node v11.9.0`.

Expected Behavior

When setting cleanPublic to true (or not defining it again since it's in the default settings), the folder defined in paths.public.root.patterns should be emptied.

Actual Behavior

The folder doesn't get emptied.

Steps to Reproduce

Run npm run pl:serve, create a pattern in source/_patterns, save it.

As far as I can tell, options.cleanPublic is used in packages/core/src/index.js/ instead of patternlab.config.cleanPublic, but cleanPublic is not a property in options, only in patternlab.config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions