MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / CleanDeps

Method CleanDeps

tools/mage/js.go:283–288  ·  view source on GitHub ↗

CleanDeps removes all installed node packages (rm -rf node_modules).

()

Source from the content-addressed store, hash-verified

281
282// CleanDeps removes all installed node packages (rm -rf node_modules).
283func (js Js) CleanDeps() error {
284 if err := sh.Rm("node_modules"); err != nil {
285 return fmt.Errorf("failed to delete node_modules: %w", err)
286 }
287 return nil
288}
289
290// Test runs frontend jest tests.
291func (js Js) Test() error {

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected