Skip to content

Commit 6236711

Browse files
[skip ci] Fix display name of output path
1 parent 2f8e37f commit 6236711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Plugins/PackageToJS/Sources/PackageToJSPlugin.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ struct PackageToJSPlugin: CommandPlugin {
266266
private func printProgress(context: MiniMake.ProgressPrinter.Context, message: String) {
267267
let buildCwd = FileManager.default.currentDirectoryPath
268268
let outputPath = context.scope.resolve(path: context.subject.output).path
269-
let displayName = outputPath.hasPrefix(buildCwd)
269+
let displayName = outputPath.hasPrefix(buildCwd + "/")
270270
? String(outputPath.dropFirst(buildCwd.count + 1)) : outputPath
271271
printStderr("[\(context.built + 1)/\(context.total)] \(displayName): \(message)")
272272
}

0 commit comments

Comments
 (0)