MCPcopy
hub / github.com/darkreader/darkreader / clean

Function clean

tasks/clean.js:7–12  ·  view source on GitHub ↗
({platforms, debug})

Source from the content-addressed store, hash-verified

5import {removeFolder} from './utils.js';
6
7async function clean({platforms, debug}) {
8 const enabledPlatforms = Object.values(PLATFORM).filter((platform) => platform !== PLATFORM.API && platforms[platform]);
9 for (const platform of enabledPlatforms) {
10 await removeFolder(getDestDir({debug, platform}));
11 }
12}
13
14const cleanTask = createTask(
15 'clean',

Callers 2

removeDynamicThemeFunction · 0.85
cleanUpFunction · 0.85

Calls 2

removeFolderFunction · 0.90
getDestDirFunction · 0.90

Tested by

no test coverage detected