Comparing version 0.1.48 to 0.1.49
@@ -42,3 +42,4 @@ "use strict"; | ||
_commander.default.option("--mode <development | production | none>", "Mode to use"); | ||
_commander.default.option('--context [path]', ` The base directory (absolute path!) for resolving the 'entry'` + ` option. If 'output.pathinfo' is set, the included pathinfo is shortened to this directory`, 'The current directory'); | ||
_commander.default.option("--target [browser | node]", "Target runtime environment"); | ||
_commander.default.option('--context [path]', `The base directory (absolute path!) for resolving the 'entry'` + ` option. If 'output.pathinfo' is set, the included pathinfo is shortened to this directory`, 'The current directory'); | ||
_commander.default.option('--entry [list]', "List of entries", collect); | ||
@@ -184,2 +185,5 @@ // commander.option('-W --watch', `Enter watch mode, which rebuilds on file change.`) | ||
} | ||
if (opts.target) { | ||
configOpts.target = opts.target; | ||
} | ||
if (!configOpts.output) { | ||
@@ -186,0 +190,0 @@ configOpts.output = { |
{ | ||
"name": "@swc/cli", | ||
"version": "0.1.48", | ||
"version": "0.1.49", | ||
"description": "CLI for the swc project", | ||
@@ -5,0 +5,0 @@ "main": "lib/swc/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67052
1726