Skip to content

Commit

Permalink
fix(build): component dir (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Dec 7, 2023
1 parent 2a7dce3 commit d9ba4d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-unplugin-deps.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export { ${element.name}, show${element.name}, ${element.name} as default };`;
outputMjs = `import ${element.name} from './${element.name}.js';
export { ${element.name}, ${element.name} as default };`;
}
let folderName = element.name.toLowerCase();
tasks.push(
fs.outputFile(path.resolve(__dirname, `../dist/packages/${element.name}/index.mjs`), outputMjs, 'utf8', () => {
fs.outputFile(path.resolve(__dirname, `../dist/packages/${folderName}/index.mjs`), outputMjs, 'utf8', () => {
// console.log('')
})
);
let folderName = element.name.toLowerCase();
outputFileEntry += `export * from "./packages/${folderName}/index.mjs";\n`;
components.push(element.name);
}
Expand Down

0 comments on commit d9ba4d2

Please sign in to comment.