One Hat Cyber Team
Your IP :
18.117.10.207
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
node_modules
/
npm
/
lib
/
workspaces
/
Edit File:
update-workspaces.js
'use strict' const Arborist = require('@npmcli/arborist') const reifyFinish = require('../utils/reify-finish.js') async function updateWorkspaces ({ config, flatOptions, localPrefix, npm, workspaces, }) { if (!flatOptions.workspacesUpdate || !workspaces.length) { return } // default behavior is to not save by default in order to avoid // race condition problems when publishing multiple workspaces // that have dependencies on one another, it might still be useful // in some cases, which then need to set --save const save = config.isDefault('save') ? false : config.get('save') // runs a minimalistic reify update, targetting only the workspaces // that had version updates and skipping fund/audit/save const opts = { ...flatOptions, audit: false, fund: false, path: localPrefix, save, } const arb = new Arborist(opts) await arb.reify({ ...opts, update: workspaces }) await reifyFinish(npm, arb) } module.exports = updateWorkspaces
Simpan