Skip to content

Commit 9964dcf

Browse files
committed
SwiftExtract: document the dummy.json placeholder in Package.swift
The `Resources/dummy.json` placeholder exists only so SwiftPM emits a `Bundle.module` for the SwiftExtract target — the real `static-build-config.json` is generated at build time by `_StaticBuildConfigPlugin`. Note that on the `.process("Resources")` line so a future reader doesn't try to delete the empty-looking file.
1 parent 1c12eb5 commit 9964dcf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ let package = Package(
354354
],
355355
path: "Sources/SwiftExtract",
356356
resources: [
357+
// Holds the `dummy.json` placeholder so SwiftPM emits a `Bundle.module`
358+
// for this target. The real `static-build-config.json` is generated at
359+
// build time by the `_StaticBuildConfigPlugin` build tool below.
357360
.process("Resources")
358361
],
359362
swiftSettings: [

0 commit comments

Comments
 (0)