MCPcopy Create free account
hub / github.com/adobe/react-spectrum / update

Function update

scripts/updateParcel.js:7–14  ·  view source on GitHub ↗
(pkg)

Source from the content-addressed store, hash-verified

5let versions = new Map();
6
7async function update(pkg) {
8 let json = JSON.parse(fs.readFileSync(pkg, 'utf8'));
9 await updateDeps(json.dependencies);
10 await updateDeps(json.devDependencies);
11 await updateDeps(json.peerDependencies);
12 await updateDeps(json.resolutions);
13 fs.writeFileSync(pkg, JSON.stringify(json, false, 2) + '\n');
14}
15
16async function updateDeps(deps = {}) {
17 for (let dep in deps) {

Callers 1

runFunction · 0.70

Calls 2

updateDepsFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected