Skip to content

Commit

Permalink
fixup! Merge remote-tracking branch 'origin/canary' into wbinnssmith/…
Browse files Browse the repository at this point in the history
…fs-extra-actions
  • Loading branch information
wbinnssmith committed Oct 10, 2023
1 parent 3039cef commit cf9d043
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/next-stats-action/src/prepare/repo-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = (actionInfo) => {
let pkgs

try {
pkgs = await fsp.readdir(path.join(repoDir, 'packages'))
pkgs = await fs.readdir(path.join(repoDir, 'packages'))
} catch (err) {
if (err.code === 'ENOENT') {
require('console').log('no packages to link')
Expand Down Expand Up @@ -120,7 +120,7 @@ module.exports = (actionInfo) => {
pkgData.files.push('native')

try {
const swcBinariesDirContents = await fsp.readdir(
const swcBinariesDirContents = await fs.readdir(
path.join(pkgPath, 'native')
)
require('console').log(
Expand Down Expand Up @@ -153,7 +153,7 @@ module.exports = (actionInfo) => {
}
}

await fsp.writeFile(
await fs.writeFile(
pkgDataPath,
JSON.stringify(pkgData, null, 2),
'utf8'
Expand Down Expand Up @@ -184,9 +184,9 @@ module.exports = (actionInfo) => {
'disabled-native-gitignore'
)

await fsp.rename(nativeGitignorePath, renamedGitignorePath)
await fs.rename(nativeGitignorePath, renamedGitignorePath)
cleanup = async () => {
await fsp.rename(renamedGitignorePath, nativeGitignorePath)
await fs.rename(renamedGitignorePath, nativeGitignorePath)
}
}

Expand All @@ -199,7 +199,7 @@ module.exports = (actionInfo) => {
})

return Promise.all([
fsp.rename(path.resolve(pkgPath, stdout.trim()), packedPkgPath),
fs.rename(path.resolve(pkgPath, stdout.trim()), packedPkgPath),
cleanup?.(),
])
}
Expand Down

0 comments on commit cf9d043

Please sign in to comment.