beathers 5.2.0 → 5.2.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.
@@ -1,4 +1,5 @@
1
1
  import fs from 'fs-extra';
2
+ import { pathToFileURL } from 'node:url';
2
3
  import path from 'path';
3
4
  const userConfigFiles = ['beathers.configs.js', 'beathers.configs.ts', 'beathers.configs.json'];
4
5
  function findConfigFile(basePath) {
@@ -12,7 +13,8 @@ function findConfigFile(basePath) {
12
13
  async function loadJsOrTsConfig(filePath) {
13
14
  try {
14
15
  const absolutePath = path.resolve(filePath);
15
- const module = await import(absolutePath);
16
+ const fileUrl = pathToFileURL(absolutePath).href;
17
+ const module = await import(fileUrl);
16
18
  return module.default ?? module;
17
19
  }
18
20
  catch (error) {
@@ -118,7 +118,7 @@ async function promptFormat() {
118
118
  const readline = await import('readline');
119
119
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
120
120
  return new Promise((resolve) => {
121
- rl.question('📁 Choose file format (json/js/ts) [json]: ', (answer) => {
121
+ rl.question('📁 Choose file format (json/js/ts): json', (answer) => {
122
122
  rl.close();
123
123
  const format = answer.toLowerCase().trim();
124
124
  if (format === 'js' || format === 'ts')
@@ -134,13 +134,13 @@ async function initCommand() {
134
134
  const fileName = formatMap[format];
135
135
  const filePath = path.join(process.cwd(), fileName);
136
136
  if (await fs.pathExists(filePath)) {
137
- const shouldOverride = await promptUser(`⚠️ ${fileName} already exists. Do you want to override it? (y/n): `);
137
+ const shouldOverride = await promptUser(`⚠️ ${fileName} already exists. Do you want to override it? (Y/N): `);
138
138
  if (!shouldOverride) {
139
139
  console.log('❌ Operation aborted.');
140
140
  return;
141
141
  }
142
142
  }
143
- const includeStarterValues = await promptUser('📝 Would you like to include starter configuration values? (y/n): ');
143
+ const includeStarterValues = await promptUser('📝 Would you like to include starter configuration values? (Y/N): ');
144
144
  const emptyTemplate = {
145
145
  colors: {},
146
146
  typography: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beathers",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "type": "module",
5
5
  "description": "Beather is a lightweight SCSS library that serves as a comprehensive design system for your projects. It offers a structured and consistent approach to manage colors, fonts, and other design related variables, making it easier to maintain a cohesive visual identity across your application.",
6
6
  "main": "dist/index.js",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Beathers v5.2.0 (https://bhoenixstudio.com/beathers)
2
+ * Beathers v5.2.1 (https://bhoenixstudio.com/beathers)
3
3
  * Copyright 2020-2025 Bhoenix Studio
4
4
  */
5
5