PATH: //opt/alt/alt-nodejs20/root/lib/node_modules/npm/lib/utils
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 audit-error.js
↓
X
📄 auth.js
↓
X
📄 cmd-list.js
↓
X
📄 completion.fish
↓
X
📄 completion.sh
↓
X
📄 did-you-mean.js
↓
X
📄 display.js
↓
X
📄 error-message.js
↓
X
📄 explain-dep.js
↓
X
📄 explain-eresolve.js
↓
X
📄 format-bytes.js
↓
X
📄 format-search-stream.js
↓
X
📄 format.js
↓
X
📄 get-identity.js
↓
X
📄 get-workspaces.js
↓
X
📄 installed-deep.js
↓
X
📄 installed-shallow.js
↓
X
📄 is-windows.js
↓
X
📄 log-file.js
↓
X
📄 npm-usage.js
↓
X
📄 open-url.js
↓
X
📄 output-error.js
↓
X
📄 ping.js
↓
X
📄 queryable.js
↓
X
📄 read-user-info.js
↓
X
📄 reify-finish.js
↓
X
📄 reify-output.js
↓
X
📄 sbom-cyclonedx.js
↓
X
📄 sbom-spdx.js
↓
X
📄 tar.js
↓
X
📄 timers.js
↓
X
📄 update-workspaces.js
↓
X
📄 validate-lockfile.js
↓
X
📄 verify-signatures.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: update-workspaces.js
'use strict' 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 Arborist = require('@npmcli/arborist') const arb = new Arborist(opts) await arb.reify({ ...opts, update: workspaces }) await reifyFinish(npm, arb) } module.exports = updateWorkspaces
SIMPAN PERUBAHAN