Skip to content

using Pushwork for tools: dist gets deleted when rebuilding, including dist/.pushwork #4

@joshuahhh

Description

@joshuahhh

EDIT: Whoops I forgot that you actually push the whole tool directory, not just dist. Leaving this here in case there's anything of interest; feel free to close.

Maybe I'm setting things up wrong but:

To use Pushwork to sync a built tool (from e.g. patchwork-extra) you want to initialize Pushwork on the dist directory, which puts .pushwork into dist/.pushwork. But then, when Vite rebuilds the project, everything in dist gets cleared out, including dist/.pushwork.

Reasonable change to make this work: running pushwork init dist from the parent directory could put .pushwork into that parent directory, but referring to the dist subdirectory?

SWE brain is sounding alarm bells, like "what if you want to pushwork init X from the parent for multiple different Xs?" but idk I care more about getting this use-case to work. Maybe there's a better approach though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions