-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Labels
bugSomething isn't working properlySomething isn't working properly
Description
The problem
The above line works fine on Linux-based systems but breaks on Windows when using the default shell (PowerShell), because -rf
is incorrect syntax. The default setting is to remove the dist folder after building, which currently breaks semantic-release publish
unless deleting is explicitly disabled.
Expected behavior
Deletion of the folder works as expected regardless of operating system.
A fix that should work on any OS could look something like this
import shutil
def remove_dists(path: str):
logger.debug(f"Removing build folder: `{path}`")
shutil.rmtree(path)
Metadata
Metadata
Assignees
Labels
bugSomething isn't working properlySomething isn't working properly