Skip to content

clean

Terminal window
sloptor clean [--types] [-n --dry-run] [PATH]

Remove build outputs; --types also removes generated editor types.

Argument Description
[PATH] Project path: a tsconfig file, a directory containing one, or any path to search upward from
Flag Description Aliases
--types / --no-types Also remove the generated editor types (rotor.d.ts and its legacy companions)
-n, --dry-run / --no-dry-run List what would be removed without deleting anything
Flag Description Aliases
-v, -V, --version Print sloptor's version
--color <WHEN> When to use colour [auto, always, never] (default: auto)
-h, --help Print help (see more with '--help')
Terminal window
sloptor clean # remove outDir and include/
sloptor clean --types # also remove rotor.d.ts and its legacy companions
sloptor clean -n # list what would be removed