Unverified Commit 094153f9 authored by Steven's avatar Steven Committed by GitHub

Fix repo-setup when .DS_Store exists (#30119)

parent c8f25ba7
...@@ -73,6 +73,10 @@ module.exports = (actionInfo) => { ...@@ -73,6 +73,10 @@ module.exports = (actionInfo) => {
const packedPkgPath = path.join(pkgPath, `${pkg}-packed.tgz`) const packedPkgPath = path.join(pkgPath, `${pkg}-packed.tgz`)
const pkgDataPath = path.join(pkgPath, 'package.json') const pkgDataPath = path.join(pkgPath, 'package.json')
if (!fs.existsSync(pkgDataPath)) {
console.log(`Skipping ${pkgDataPath}`)
continue
}
const pkgData = require(pkgDataPath) const pkgData = require(pkgDataPath)
const { name } = pkgData const { name } = pkgData
pkgDatas.set(name, { pkgDatas.set(name, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment