vueless 1.0.2-beta.60 → 1.0.2-beta.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.0.2-beta.60",
3
+ "version": "1.0.2-beta.62",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -9,6 +9,8 @@ import { vuelessConfig, getMergedConfig } from "./vuelessConfig.js";
9
9
 
10
10
  import {
11
11
  COMPONENTS,
12
+ JAVASCRIPT_EXT,
13
+ TYPESCRIPT_EXT,
12
14
  VUELESS_CONFIGS_CACHED_DIR,
13
15
  VUELESS_MERGED_CONFIGS_CACHED_DIR,
14
16
  } from "../../constants.js";
@@ -163,8 +165,9 @@ export async function autoImportUserConfigs() {
163
165
 
164
166
  const hasTsIndex = existsSync(indexTsPath);
165
167
  const indexFilePath = hasTsIndex ? indexTsPath : indexJsPath;
168
+ const fileExt = hasTsIndex ? TYPESCRIPT_EXT : JAVASCRIPT_EXT;
166
169
 
167
- const configFiles = await getDirFiles(vuelessConfigDir, ".ts", {
170
+ const configFiles = await getDirFiles(vuelessConfigDir, fileExt, {
168
171
  recursive: true,
169
172
  exclude: ["index.ts", "index.js"],
170
173
  });