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 +1 -1
- package/utils/node/helper.js +4 -1
package/package.json
CHANGED
package/utils/node/helper.js
CHANGED
|
@@ -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,
|
|
170
|
+
const configFiles = await getDirFiles(vuelessConfigDir, fileExt, {
|
|
168
171
|
recursive: true,
|
|
169
172
|
exclude: ["index.ts", "index.js"],
|
|
170
173
|
});
|