Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondkmp committed Oct 31, 2024
1 parent 8b08187 commit 80c8e6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/app-builder-lib/src/asar/unpackDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function detectUnpackedDirs(fileSet: ResolvedFileSet, autoUnpackDirs: Set
for (let i = 0, n = fileSet.files.length; i < n; i++) {
const file = fileSet.files[i]
const stat: FilterStats = metadata.get(file)!
if (!stat.destNodeModulesFilePath) {
if (!stat.destNodeModulesDirPath) {
continue
}

Expand All @@ -42,7 +42,6 @@ export function detectUnpackedDirs(fileSet: ResolvedFileSet, autoUnpackDirs: Set
if (log.isDebugEnabled) {
log.debug({ file: stat.destNodeModulesFilePath, reason: "contains executable code" }, "not packed into asar archive")
}
autoUnpackDirs.add(stat.destNodeModulesDirPath!)
break
autoUnpackDirs.add(stat.destNodeModulesDirPath)
}
}
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/util/NodeModuleCopyHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class NodeModuleCopyHelper extends FileCopyHelper {
super(matcher, matcher.isEmpty() ? null : matcher.createFilter(), packager)
}

async collectNodeModules(moduleInfo: NodeModuleInfo, nodeModuleExcludedExts: Array<string>, destination:string): Promise<Array<string>> {
async collectNodeModules(moduleInfo: NodeModuleInfo, nodeModuleExcludedExts: Array<string>, destination: string): Promise<Array<string>> {
const filter = this.filter
const metadata = this.metadata

Expand Down

0 comments on commit 80c8e6d

Please sign in to comment.