@@ -339,10 +339,10 @@ extension PackageToJS.BuildOptions {
339
339
--product <product> Product to build (default: executable target if there's only one)
340
340
--output <path> Path to the output directory (default: .build/plugins/PackageToJS/outputs/Package)
341
341
--package-name <name> Name of the package (default: lowercased Package.swift name)
342
- --explain Whether to explain the build plan (default: false)
343
- --no-optimize Whether to disable wasm-opt optimization (default: false)
344
- --use-cdn Whether to use CDN for dependency packages (default: false)
345
- --enable-code-coverage Whether to enable code coverage collection (default: false)
342
+ --explain Whether to explain the build plan
343
+ --no-optimize Whether to disable wasm-opt optimization
344
+ --use-cdn Whether to use CDN for dependency packages
345
+ --enable-code-coverage Whether to enable code coverage collection
346
346
--debug-info-format The format of debug info to keep in the final wasm file (values: none, dwarf, name; default: none)
347
347
348
348
SUBCOMMANDS:
@@ -394,13 +394,13 @@ extension PackageToJS.TestOptions {
394
394
USAGE: swift package --swift-sdk <swift-sdk> [SwiftPM options] js test [options]
395
395
396
396
OPTIONS:
397
- --build-only Whether to build only (default: false)
397
+ --build-only Whether to build only
398
398
--prelude <path> Path to the prelude script
399
- --environment <name> The environment to use for the tests
399
+ --environment <name> The environment to use for the tests (values: node, browser; default: node)
400
400
--inspect Whether to run tests in the browser with inspector enabled
401
- --use-cdn Whether to use CDN for dependency packages (default: false)
402
- --enable-code-coverage Whether to enable code coverage collection (default: false)
403
- --verbose Whether to print verbose output (default: false)
401
+ --use-cdn Whether to use CDN for dependency packages
402
+ --enable-code-coverage Whether to enable code coverage collection
403
+ --verbose Whether to print verbose output
404
404
-Xnode <args> Extra arguments to pass to Node.js
405
405
406
406
EXAMPLES:
0 commit comments