Skip to content

What's the best way to add the entire contents of a folder? #6

@benhickson

Description

@benhickson

running command hygen-create add folder-name

Currently, subfolders are not being picked up.

If i run hygen-create add folder-name/* it picks up some subfolders, but important subfolders like .changeset are still ignored.

If i run hygen-create add folder-name/.* it picks up everything, but also picks up the parent directory, which is no good.

In the dist folder, i see a method

HygenCreate.add(files_and_dirs: any, recursive?: boolean, in_subdir?: boolean): void

But the CLI doesn't seem to expose a way to pass the recursive argument. If edit the dist to set the CLI's .add() call to pass true to the recursive argument, things work as I'd expect. I would use patch-package to do this, but patch-package doesn't work with pnpm, which we use.

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