vueless 1.3.7-beta.7 → 1.3.7-beta.8

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.7",
3
+ "version": "1.3.7-beta.8",
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",
@@ -57,7 +57,7 @@
57
57
  "@vue/eslint-config-typescript": "^14.6.0",
58
58
  "@vue/test-utils": "^2.4.6",
59
59
  "@vue/tsconfig": "^0.7.0",
60
- "@vueless/storybook": "^1.3.18",
60
+ "@vueless/storybook": "^1.4.0",
61
61
  "eslint": "^9.32.0",
62
62
  "eslint-plugin-storybook": "^10.0.2",
63
63
  "eslint-plugin-vue": "^10.3.0",
@@ -133,9 +133,10 @@ export async function generateIconExports() {
133
133
 
134
134
  const entries = files.map((filePath) => {
135
135
  const fullImportPath = path.resolve(filePath).replace(/\\/g, "/");
136
- const virtualPath = filePath.replace(/\\/g, "/");
136
+ const relativePath = path.relative(cwd(), filePath).replace(/\\/g, "/");
137
+ const iconPath = relativePath.replace(ICONS_CACHED_DIR, "");
137
138
 
138
- return ` ["${virtualPath}", import("${fullImportPath}?component")]`;
139
+ return ` ["${iconPath}", import("${fullImportPath}?component")]`;
139
140
  });
140
141
 
141
142
  return `export const cachedIcons = [\n${entries.join(",\n")}\n];`;