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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. 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
- return themeArg.split("=")[1];
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bearnie",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Create a new Astro project with Bearnie UI components",
5
5
  "type": "module",
6
6
  "license": "MIT",