Skip to content

Commit

Permalink
close #1;fix: vuesax-alpha build doesn't have styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tranthinh-coding committed Aug 17, 2023
1 parent 5592e52 commit e7121ab
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"nuxt": "^3.0.0",
"typescript": "^4.9.4",
"vue": "^3.2.45",
"vuesax-alpha": "0.2.0-beta.28"
"vuesax-alpha": "0.2.0-beta.51"
}
}
17 changes: 13 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function resolveComponents (config: Options) {
const componentName = subComponentsMap[name] || name
const dir = hyphenate(componentName.slice(2))
const filePath = from !== iconLibraryName
? `${libraryName}/es/packages/components/${dir}/index`
? `${libraryName}/es/components/${dir}/index`
: from

addComponent({
Expand Down
2 changes: 1 addition & 1 deletion src/core/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getStyleDir (config: Options, name: string) {
const dir = hyphenate(name.slice(2))
const type = config.importStyle === 'scss' ? 'index' : 'css'

return `${libraryName}/es/packages/components/${dir}/style/${type}`
return `${libraryName}/es/components/${dir}/style/${type}`
}

export function resolveStyles (config: Options, name: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Options extends TransformOptions {
/**
* A list of components that need to be automatically imported externally.
*
* @default 'from vuesax-alpha/es/packages/components'
* @default 'from vuesax-alpha/es/components'
*
* If there are components that are not imported automatically from Vuesax Alpha, you need to add the component name here.
*/
Expand Down

0 comments on commit e7121ab

Please sign in to comment.