Comparing version 0.1.20 to 0.1.21
{ | ||
"name": "@swc/cli", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "CLI for the swc project", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -102,22 +102,24 @@ "use strict"; | ||
}; | ||
for (const cfg of opts.config) { | ||
const i = cfg.indexOf('='); | ||
let key, value; | ||
if (i === -1) { | ||
key = cfg; | ||
value = true; | ||
} | ||
else { | ||
key = cfg.substring(0, i); | ||
value = cfg.substring(i + 1); | ||
} | ||
let obj = swcOptions; | ||
const ks = key.split('.'); | ||
for (const k of ks.slice(0, ks.length - 1)) { | ||
if (!obj[k]) { | ||
obj[k] = {}; | ||
if (opts.config) { | ||
for (const cfg of opts.config) { | ||
const i = cfg.indexOf('='); | ||
let key, value; | ||
if (i === -1) { | ||
key = cfg; | ||
value = true; | ||
} | ||
obj = obj[k]; | ||
else { | ||
key = cfg.substring(0, i); | ||
value = cfg.substring(i + 1); | ||
} | ||
let obj = swcOptions; | ||
const ks = key.split('.'); | ||
for (const k of ks.slice(0, ks.length - 1)) { | ||
if (!obj[k]) { | ||
obj[k] = {}; | ||
} | ||
obj = obj[k]; | ||
} | ||
obj[ks[ks.length - 1]] = value; | ||
} | ||
obj[ks[ks.length - 1]] = value; | ||
} | ||
@@ -124,0 +126,0 @@ let cliOptions = { |
{ | ||
"name": "@swc/cli", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "CLI for the swc project", | ||
@@ -5,0 +5,0 @@ "main": "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
39354
782