@stonyx/utils 0.2.3-beta.21 → 0.2.3-beta.23

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # stonyx-utils
6
6
 
7
- Utilities module for the Stonyx Framework. Provides helpers for files, objects, strings, dates, and promises.
7
+ Utilities module for the Stonyx Framework. Provides helpers for files, objects, strings, dates, promises, and prompts.
8
8
 
9
9
  ---
10
10
 
package/dist/file.js CHANGED
@@ -111,10 +111,10 @@ export async function forEachFileImport(dir, callback, options = {}) {
111
111
  await forEachFileImport(filePath, callback, newOptions);
112
112
  continue;
113
113
  }
114
- if (!stats.isFile() || !file.endsWith('.js'))
114
+ if (!stats.isFile() || !(file.endsWith('.js') || file.endsWith('.ts')))
115
115
  continue;
116
116
  const prefix = process.platform === 'win32' ? 'file://' : '';
117
- const rawName = file.replace('.js', '');
117
+ const rawName = file.replace(/\.(js|ts)$/, '');
118
118
  let name = options.rawName ? rawName : kebabCaseToCamelCase(rawName);
119
119
  if (options.namePrefix)
120
120
  name = `${options.namePrefix}${name}`;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "keywords": [
4
4
  "stonyx-module"
5
5
  ],
6
- "version": "0.2.3-beta.21",
6
+ "version": "0.2.3-beta.23",
7
7
  "description": "Utils module for Stonyx Framework",
8
8
  "repository": {
9
9
  "type": "git",