vueless 0.0.420 → 0.0.421

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.
@@ -24,7 +24,7 @@ import {
24
24
  /**
25
25
  * Merging component configs in a given sequence (bigger number = bigger priority):
26
26
  * 1. Default component config
27
- * 2. Custom global component config (/vueless.config.js)
27
+ * 2. Custom global component config (/vueless.config.{js,ts})
28
28
  * 3. Component config (:config="{...}" props)
29
29
  * 4. Component classes (class="...")
30
30
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.420",
3
+ "version": "0.0.421",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -53,7 +53,7 @@
53
53
  "@release-it/bumper": "^6.0.1",
54
54
  "@vitejs/plugin-vue": "^5.0.5",
55
55
  "@vue/eslint-config-prettier": "^9.0.0",
56
- "@vueless/plugin-vite": "^0.0.67",
56
+ "@vueless/plugin-vite": "^0.0.68",
57
57
  "@vueless/storybook": "^0.0.34",
58
58
  "@vueless/web-types": "^0.0.15",
59
59
  "autoprefixer": "^10.4.19",
@@ -17,8 +17,8 @@ const isStrategyOverride = process.env.VUELESS_STRATEGY === "override";
17
17
  export const vuelessContent = [
18
18
  "./vueless.config.{js,ts}",
19
19
  "./node_modules/vueless/**/*.{js,ts,vue}",
20
- ...(isStrategyOverride ? ["!./src/**/ui.*/config.js"] : []), // only for vueless env
21
- ...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/config.js"] : []),
20
+ ...(isStrategyOverride ? ["!./src/**/ui.*/config.{js,ts}"] : []), // only for vueless env
21
+ ...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/config.{js,ts}"] : []),
22
22
  ];
23
23
 
24
24
  /**
package/utils/utilUI.js CHANGED
@@ -20,8 +20,13 @@ if (isSSR) {
20
20
  /* Load Vueless config from the project root in IIFE (no top-level await). */
21
21
  (async () => {
22
22
  try {
23
- // eslint-disable-next-line prettier/prettier
24
- vuelessConfig = (await import(/* @vite-ignore */ `${process.cwd()}/vueless.config.js`)).default;
23
+ const filePath = `${process.cwd()}/vueless.config`;
24
+
25
+ vuelessConfig = (await import(/* @vite-ignore */ `${filePath}.js`)).default;
26
+
27
+ if (!vuelessConfig) {
28
+ vuelessConfig = (await import(/* @vite-ignore */ `${filePath}.ts`)).default;
29
+ }
25
30
  } catch (error) {
26
31
  vuelessConfig = {};
27
32
  }
@@ -30,8 +35,9 @@ if (isSSR) {
30
35
 
31
36
  if (isCSR) {
32
37
  vuelessConfig =
33
- Object.values(import.meta.glob("/vueless.config.js", { eager: true, import: "default" }))[0] ||
34
- {};
38
+ Object.values(
39
+ import.meta.glob("/vueless.config.{js,ts}", { eager: true, import: "default" }),
40
+ )[0] || {};
35
41
  }
36
42
 
37
43
  /**
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.420",
4
+ "version": "0.0.421",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",