vueless 1.2.6-beta.12 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.2.6-beta.12",
3
+ "version": "1.2.7-beta.0",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
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 });
@@ -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: any): Promise<void>;
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>;
@@ -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(basePath, componentDir, "config.ts");
125
+ const defaultComponentConfigPath = path.join(vuelessSrcDir, componentDir, "config.ts");
126
126
 
127
127
  const defaultConfig = await getDefaultComponentConfig(
128
128
  componentName,