()
| 82 | } |
| 83 | |
| 84 | function 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 | |
| 102 | main() |
no test coverage detected