Skip to content

Commit 4d26fd2

Browse files
committed
chore: wip
1 parent d7d8a09 commit 4d26fd2

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

.stacks/core/actions/src/helpers/lib-entries.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ export function generateEntryPointData(type: LibraryType): string {
100100

101101
for (const component of library.vueComponents?.tags.map(tag => tag.name)) {
102102
if (Array.isArray(component))
103-
arr.push(`export { default as ${component[1]} } from '../../../../../resources/components/${component[0]}.vue'`)
103+
arr.push(`export { default as ${component[1]} } from '../../../../resources/components/${component[0]}.vue'`)
104104
else
105-
arr.push(`export { default as ${component} } from '../../../../../resources/components/${component}.vue'`)
105+
arr.push(`export { default as ${component} } from '../../../../resources/components/${component}.vue'`)
106106
}
107107

108108
// join the array into a string with each element being on a new line
@@ -122,12 +122,12 @@ export function generateEntryPointData(type: LibraryType): string {
122122

123123
for (const component of library.webComponents?.tags.map(tag => tag.name)) {
124124
if (Array.isArray(component)) {
125-
imports.push(`import ${component[1]} from '../../../../../resources/components/${component[0]}.vue'`)
125+
imports.push(`import ${component[1]} from '../../../../resources/components/${component[0]}.vue'`)
126126
declarations.push(`const ${component[1]}CustomElement = defineCustomElement(${component[1]})`)
127127
definitions.push(`customElements.define('${kebabCase(component[1])}', ${component[1]}CustomElement)`)
128128
}
129129
else {
130-
imports.push(`import ${component} from '../../../../../resources/components/${component}.vue'`)
130+
imports.push(`import ${component} from '../../../../resources/components/${component}.vue'`)
131131
declarations.push(`const ${component}CustomElement = defineCustomElement(${component})`)
132132
definitions.push(`customElements.define('${kebabCase(component)}', ${component}CustomElement)`)
133133
}
File renamed without changes.

0 commit comments

Comments
 (0)