| 14 | const queue = new PQueue({ concurrency: 4 }); |
| 15 | |
| 16 | const handleHash = async (packagePath: string, packageJson: PackageJson) => { |
| 17 | // Get hash of current package and compare with old hash |
| 18 | const hash = await getHash(packagePath); |
| 19 | if (packageJson.publishHash !== hash || ctx.force) { |
| 20 | changedList.push({ |
| 21 | name: packageJson.name, |
| 22 | hash, |
| 23 | path: packagePath, |
| 24 | version: packageJson.version, |
| 25 | }); |
| 26 | } |
| 27 | }; |
| 28 | |
| 29 | for (const packageDir of ctx.packages) { |
| 30 | const packages = await getPackages(packageDir); |