REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1011 B
Close
/opt/alt/alt-nodejs19/root/lib/node_modules/npm/lib/workspaces/update-workspaces.js
Text
Base64
'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, targeting 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
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
get-workspaces.js
1.70 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update-workspaces.js
1011 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).