I have a playground with multiple sources in a Sources directory in addition to the main Contents.swift. I have been unable to compile & run the playground from the command line.
The compiler is unable to resolve any items located in the separate sources and gives multiple error such as
contents.swift:8:26: error: cannot find 'JSON' in scope
print("JSON rawdata\n\n\(JSON)\n")
^~~~
The playground executes successfully from the IDE so the constants & functions etc are declared correctly as Public
I have tried swiftc Contents.swift Sources/JSON.swift Sources/Filemanager.swift etc but with no success
Where am I going wrong?