Comparing version 7.0.0-beta8 to 7.0.0-beta9
{ | ||
"name": "titanium", | ||
"version": "7.0.0-beta8", | ||
"version": "7.0.0-beta9", | ||
"author": "TiDev, Inc. <npm@tidev.io>", | ||
@@ -28,3 +28,3 @@ "description": "Command line interface for building Titanium SDK apps", | ||
"semver": "7.6.0", | ||
"undici": "6.6.1", | ||
"undici": "6.6.2", | ||
"which": "4.0.0", | ||
@@ -31,0 +31,0 @@ "wrap-ansi": "9.0.0", |
@@ -219,3 +219,3 @@ import chalk from 'chalk'; | ||
const cargv = cmd.opts(); | ||
this.debugLogger.trace(`Copying ${cmd.options.length} options...`); | ||
this.debugLogger.trace(`Copying ${cmd.options.length} options... (${cmd.name()})`); | ||
for (const o of cmd.options) { | ||
@@ -226,3 +226,3 @@ let name = o.name(); | ||
} | ||
this.debugLogger.trace(` Setting ${name} = ${cargv[o.attributeName()]}`); | ||
this.debugLogger.trace(` Setting ${name} = ${cargv[o.attributeName()]} (prev: ${argv[name]})`); | ||
argv[name] = cargv[o.attributeName()]; | ||
@@ -555,2 +555,11 @@ } | ||
// this is a hack... `-d` now conflicts between `--workspace-dir` and | ||
// the now global `--project-dir` option causing `--project-dir` to | ||
// snipe `--workspace-dir`, so we treat them the same for the `create` | ||
// command | ||
if (cmdName === 'create' && !this.argv['workspace-dir'] && this.argv['project-dir']) { | ||
cmd.setOptionValue('workspaceDir', expand(this.argv['project-dir'])); | ||
this.argv['project-dir'] = undefined; | ||
} | ||
if (optionBranches?.length) { | ||
@@ -780,3 +789,6 @@ this.debugLogger.trace(`Processing missing option branches: ${optionBranches.join(', ')}`); | ||
const cwd = expand(this.argv['project-dir'] || '.'); | ||
this.argv['project-dir'] = cwd; | ||
if (cmdName !== 'create') { | ||
// create command doesn't have a --project-dir option | ||
this.argv['project-dir'] = cwd; | ||
} | ||
@@ -1309,10 +1321,2 @@ // load hooks | ||
// this is a hack... `-d` now conflicts between `--workspace-dir` and | ||
// the now global `--project-dir` option causing `--project-dir` to | ||
// snipe `--workspace-dir`, so we treat them the same for the `create` | ||
// command | ||
if (this.command.name() === 'create' && !this.argv['workspace-dir']) { | ||
this.argv['workspace-dir'] = this.argv['project-dir']; | ||
} | ||
// this while loop is essentially a pump that processes missing/invalid | ||
@@ -1319,0 +1323,0 @@ // options one at a time, recalculating them each iteration |
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
197862
5858
+ Addedundici@6.6.2(transitive)
- Removedundici@6.6.1(transitive)
Updatedundici@6.6.2