vueless 1.2.6 → 1.2.7-beta.0
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/plugin-vite.js +1 -1
- package/utils/node/helper.d.ts +1 -1
- package/utils/node/helper.js +2 -2
package/package.json
CHANGED
package/plugin-vite.js
CHANGED
|
@@ -126,7 +126,7 @@ export const Vueless = function (options = {}) {
|
|
|
126
126
|
await autoImportUserConfigs(basePath);
|
|
127
127
|
|
|
128
128
|
/* merge and cache component configs. */
|
|
129
|
-
await cacheMergedConfigs(vuelessSrcDir);
|
|
129
|
+
await cacheMergedConfigs({ vuelessSrcDir, basePath });
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
await buildWebTypes({ vuelessSrcDir, basePath });
|
package/utils/node/helper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export function getVueDirs(): string[];
|
|
|
7
7
|
export function getVuelessConfigDirs(): string[];
|
|
8
8
|
export function getMergedComponentConfig(name: any): Promise<any>;
|
|
9
9
|
export function getDefaultComponentConfig(name: any, configDir: any): Promise<{}>;
|
|
10
|
-
export function cacheMergedConfigs(basePath
|
|
10
|
+
export function cacheMergedConfigs({ vuelessSrcDir, basePath }?: {}): Promise<void>;
|
|
11
11
|
export function buildTSFile(entryPath: any, configOutFile: any): Promise<void>;
|
|
12
12
|
export function removeFolderIfEmpty(dirPath: any): Promise<void>;
|
|
13
13
|
export function detectTypeScript(): Promise<boolean>;
|
package/utils/node/helper.js
CHANGED
|
@@ -117,12 +117,12 @@ export async function getDefaultComponentConfig(name, configDir) {
|
|
|
117
117
|
return config;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export async function cacheMergedConfigs(basePath) {
|
|
120
|
+
export async function cacheMergedConfigs({ vuelessSrcDir, basePath } = {}) {
|
|
121
121
|
const vuelessConfig = await getVuelessConfig(basePath);
|
|
122
122
|
const componentNames = Object.entries(COMPONENTS);
|
|
123
123
|
|
|
124
124
|
for await (const [componentName, componentDir] of componentNames) {
|
|
125
|
-
const defaultComponentConfigPath = path.join(
|
|
125
|
+
const defaultComponentConfigPath = path.join(vuelessSrcDir, componentDir, "config.ts");
|
|
126
126
|
|
|
127
127
|
const defaultConfig = await getDefaultComponentConfig(
|
|
128
128
|
componentName,
|