I need to build several distinct NodeModules in the same project.
I have this directory structure
root
├ Sources
│ ├ Module1
│ │ └ Module1.swift
│ └ Module2
│ └ Module2.swift
├ package.json
└ Package.swift
And in Package.swift I declared my 2 .dynamic products and the 2 associated targets.
When I run node-swift build I get this error :
Error: Found more than 1 dynamic library in the Swift Package. Consider specifying which product should be built via the swift.product field in package.json.
I ended up patching cli.js to accept another command line argument specifying which product to build.
Is there some other way to achieve this ?
I need to build several distinct
NodeModulesin the same project.I have this directory structure
And in
Package.swiftI declared my 2.dynamicproducts and the 2 associated targets.When I run
node-swift buildI get this error :Error: Found more than 1 dynamic library in the Swift Package. Consider specifying which product should be built via the swift.product field in package.json.I ended up patching
cli.jsto accept another command line argument specifying which product to build.Is there some other way to achieve this ?