MCPcopy Create free account
hub / github.com/npm/cli / setBundleDeps

Function setBundleDeps

scripts/bundle-and-gitignore-deps.js:182–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180}
181
182const setBundleDeps = async () => {
183 const pkg = await PackageJson.load(CWD)
184
185 pkg.update({
186 bundleDependencies: Object.keys(pkg.content.dependencies).sort(localeCompare),
187 })
188
189 await pkg.save()
190
191 return pkg.content.bundleDependencies
192}
193
194/*
195This file sets what is checked in to node_modules. The root .gitignore file

Callers 1

mainFunction · 0.85

Calls 3

updateMethod · 0.80
loadMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected