MCPcopy Create free account
hub / github.com/nodejs/node / change

Method change

deps/npm/lib/commands/version.js:73–81  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

71 }
72
73 async change (args) {
74 const libnpmversion = require('libnpmversion')
75 const prefix = this.npm.config.get('tag-version-prefix')
76 const version = await libnpmversion(args[0], {
77 ...this.npm.flatOptions,
78 path: this.npm.prefix,
79 })
80 return output.standard(`${prefix}${version}`)
81 }
82
83 async changeWorkspaces (args) {
84 const updateWorkspaces = require('../utils/update-workspaces.js')

Callers 1

execMethod · 0.95

Calls 2

getMethod · 0.65
requireFunction · 0.50

Tested by

no test coverage detected