Skip to content

Commit f3ebaf0

Browse files
committed
clean up
1 parent 642c418 commit f3ebaf0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/pwa-kit-create-app/scripts/create-mobify-app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,10 @@ const processAppExtensions = (
807807
const appExtensionDestDir = p.join(appExtensionsDir, appExtensionName)
808808
sh.mkdir('-p', appExtensionDestDir)
809809

810-
sh.cp('-rf', p.join(appExtensionTmpPath, '.*'), appExtensionDestDir) // Copy hidden files
811-
sh.cp('-rf', p.join(appExtensionTmpPath, '*'), appExtensionDestDir) // Copy regular files
810+
// Copy hidden files
811+
sh.cp('-rf', p.join(appExtensionTmpPath, '.*'), appExtensionDestDir)
812+
// Copy regular files
813+
sh.cp('-rf', p.join(appExtensionTmpPath, '*'), appExtensionDestDir)
812814

813815
// Clean up the temporary Application Extension directory
814816
sh.rm('-rf', appExtensionTmp)

packages/pwa-kit-dev/bin/pwa-kit-dev.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ const main = async () => {
456456
})
457457

458458
// Lint each extension
459-
for (const extension of extensions) {
459+
extensions.map(extension => {
460460
const extensionPath = p.join(extensionsDir, extension)
461461
let lintPath = extensionPath
462462

@@ -467,14 +467,14 @@ const main = async () => {
467467
})
468468

469469
// Lint each subdirectory for namespaced extensions
470-
for (const subDir of subDirs) {
470+
subDirs.forEach(subDir => {
471471
const subDirPath = p.join(extensionPath, subDir)
472472
execSync(
473473
`cd ${subDirPath} && "${eslint}" --resolve-plugins-relative-to "${pkgRoot}"${
474474
fix ? ' --fix' : ''
475475
} .`
476476
)
477-
}
477+
})
478478
} else {
479479
// For non-namespaced extensions
480480
execSync(
@@ -483,7 +483,7 @@ const main = async () => {
483483
} .`
484484
)
485485
}
486-
}
486+
})
487487
}
488488

489489
// Run eslint on the provided path

0 commit comments

Comments
 (0)