File tree 2 files changed +6
-1
lines changed
BridgeJS/Sources/BridgeJSCommandPlugin
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct BridgeJSCommandPlugin: CommandPlugin {
27
27
Generated code will be placed in the target's 'Generated' directory.
28
28
29
29
OPTIONS:
30
- --target <target> Specify target(s) to generate bridge code for. If omitted,
30
+ --target <target> Specify target(s) to generate bridge code for. If omitted,
31
31
generates for all targets with JavaScriptKit dependency.
32
32
"""
33
33
}
Original file line number Diff line number Diff line change @@ -564,6 +564,11 @@ struct PackagingPlanner {
564
564
packageInputs. append ( packageJsonTask)
565
565
566
566
if exportedSkeletons. count > 0 || importedSkeletons. count > 0 {
567
+ if ProcessInfo . processInfo. environment [ " JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS " ] == nil {
568
+ fatalError (
569
+ " BridgeJS is still an experimental feature. Set the environment variable JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS=1 to enable. "
570
+ )
571
+ }
567
572
let bridgeJs = outputDir. appending ( path: " bridge.js " )
568
573
let bridgeDts = outputDir. appending ( path: " bridge.d.ts " )
569
574
packageInputs. append (
You can’t perform that action at this time.
0 commit comments