kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
542f7583ed
commit
a0fd73bb00
|
@ -24,7 +24,7 @@ components.map(component => {
|
|||
const tagWithoutPrefix = component.tagName.replace(/^sl-/, '');
|
||||
const componentDir = path.join(reactDir, tagWithoutPrefix);
|
||||
const componentFile = path.join(componentDir, 'index.ts');
|
||||
const importPath = component.path.split(/\.js$/)[0] + ".component.js";
|
||||
const importPath = component.path.split(/\.js$/)[0] + '.component.js';
|
||||
const eventImports = (component.events || [])
|
||||
.map(event => `import { ${event.eventName} } from '../../../src/events/events';`)
|
||||
.join('\n');
|
||||
|
|
Ładowanie…
Reference in New Issue