Skip to main content


Building a package generates temporary files or folders that clutter a project. Sometimes these artifacts aren't properly cleaned up because a process failed midway. The clean command can be used to remove all temporary files and all build artifacts (lib, esm, etc folders).

"scripts": {
"clean": "packemon clean"

Cleaning a project before a release is a good practice for ensuring unknown artifacts are not distributed.