vueless 1.3.7-beta.1 → 1.3.7-beta.2

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.3.7-beta.1",
3
+ "version": "1.3.7-beta.2",
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",
@@ -252,10 +252,11 @@ export async function detectTypeScript() {
252
252
  * @return {Promise<void>} A promise that resolves when the configuration import and index file generation is completed.
253
253
  */
254
254
  export async function autoImportUserConfigs(basePath = "") {
255
+ const vuelessAppDir = path.join(cwd(), basePath, VUELESS_APP_DIR);
255
256
  const vuelessConfigDir = path.join(cwd(), basePath, VUELESS_APP_CONFIGS_DIR);
256
257
 
257
- const indexTsPath = path.join(vuelessConfigDir, `${CONFIG_INDEX_FILE_NAME}${TYPESCRIPT_EXT}`);
258
- const indexJsPath = path.join(vuelessConfigDir, `${CONFIG_INDEX_FILE_NAME}${JAVASCRIPT_EXT}`);
258
+ const indexTsPath = path.join(vuelessAppDir, `${CONFIG_INDEX_FILE_NAME}${TYPESCRIPT_EXT}`);
259
+ const indexJsPath = path.join(vuelessAppDir, `${CONFIG_INDEX_FILE_NAME}${JAVASCRIPT_EXT}`);
259
260
 
260
261
  const hasTypeScript = await detectTypeScript();
261
262
 
@@ -282,7 +283,7 @@ export async function autoImportUserConfigs(basePath = "") {
282
283
  if (componentConfigFiles.length) {
283
284
  for (const configFilePath of componentConfigFiles) {
284
285
  const fileName = path.basename(configFilePath, path.extname(configFilePath));
285
- const relativePath = path.relative(vuelessConfigDir, configFilePath);
286
+ const relativePath = path.relative(vuelessAppDir, configFilePath);
286
287
  const importPath = "./" + relativePath.replace(/\\/g, "/");
287
288
 
288
289
  imports.push(`import ${fileName} from "${importPath}";`);
@@ -290,8 +291,8 @@ export async function autoImportUserConfigs(basePath = "") {
290
291
  }
291
292
  }
292
293
 
293
- if (!existsSync(vuelessConfigDir)) {
294
- await mkdir(vuelessConfigDir, { recursive: true });
294
+ if (!existsSync(vuelessAppDir)) {
295
+ await mkdir(vuelessAppDir, { recursive: true });
295
296
  }
296
297
 
297
298
  const indexFileContent = await generateConfigIndexContent(imports, componentEntries);