Skip to content

Rescript clean of individual project #7707

@nojaf

Description

@nojaf

Currently, running rescript clean path/to/parent/config in a sub-package folder will clean the entire project root.

my-monorepo/
├── rescript.json
├── packages/
│   ├── package-1/
│   │   ├── rescript.json
│   │   ├── src/
│   ├── package-2/
│   │   ├── rescript.json
│   │   ├── src/
│   ├── ...

For example:

package-2> rescript clean ../..

This command cleans both projects.

This behavior might not be desirable, as we are likely only looking to clean the current folder and its dependencies or the dependent project.

What is the expected behavior here?

//cc @jfrolich

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions