MCPcopy
hub / github.com/vercel/next.js / main

Function main

rspack/change-npm-name.js:84–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84function main() {
85 const rootDir = __dirname
86
87 const rootPackageJsonPath = path.join(rootDir, 'package.json')
88 updatePackageJson(rootPackageJsonPath, newPackageName)
89
90 const bindingPackageJsonPath = path.join(
91 rootDir,
92 'crates/binding/package.json'
93 )
94 updatePackageJson(bindingPackageJsonPath, bindingPackageName)
95
96 const bindingIndexPath = path.join(rootDir, 'crates/binding/index.js')
97 updateBindingIndex(bindingIndexPath, bindingPackageName)
98
99 console.log('\n🎉 Package name update completed!')
100}
101
102main()

Callers 1

change-npm-name.jsFile · 0.70

Calls 4

updatePackageJsonFunction · 0.85
updateBindingIndexFunction · 0.85
joinMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected