create-bearnie 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,12 @@ var link = (text, url) => `\x1B]8;;${url}\x07${pc.cyan(text)}\x1B]8;;\x07`;
|
|
|
13
13
|
function parseThemeArg() {
|
|
14
14
|
const themeArg = process.argv.find((arg) => arg.startsWith("--theme="));
|
|
15
15
|
if (!themeArg) return null;
|
|
16
|
-
|
|
16
|
+
const equalIndex = themeArg.indexOf("=");
|
|
17
|
+
let value = themeArg.slice(equalIndex + 1);
|
|
18
|
+
if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
|
|
19
|
+
value = value.slice(1, -1);
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
17
22
|
}
|
|
18
23
|
function parseFullArg() {
|
|
19
24
|
return process.argv.includes("--full");
|