Server IP : 192.64.118.117 / Your IP : 18.191.86.218 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/alt-nodejs20/root/lib/node_modules/npm/lib/commands/ |
Upload File : |
const reifyFinish = require('../utils/reify-finish.js') const ArboristWorkspaceCmd = require('../arborist-cmd.js') // prune extraneous packages class Prune extends ArboristWorkspaceCmd { static description = 'Remove extraneous packages' static name = 'prune' static params = [ 'omit', 'include', 'dry-run', 'json', 'foreground-scripts', 'ignore-scripts', ...super.params, ] static usage = ['[[<@scope>/]<pkg>...]'] async exec () { const where = this.npm.prefix const Arborist = require('@npmcli/arborist') const opts = { ...this.npm.flatOptions, path: where, workspaces: this.workspaceNames, } const arb = new Arborist(opts) await arb.prune(opts) await reifyFinish(this.npm, arb) } } module.exports = Prune