UNPKG

npm-link-up

Version:

Use this package to link your projects together for local development.

14 lines (13 loc) 427 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.cleanCache = void 0; const cp = require("child_process"); const cleanCache = (cb) => { const k = cp.spawn('bash'); k.stdin.end('npm cache clean -f;'); k.stderr.pipe(process.stderr); k.once('exit', code => { code > 0 ? cb({ path: 'npm cache clean', code: code }) : cb(null); }); }; exports.cleanCache = cleanCache;