Skip to content

Commit d50c9a0

Browse files
committed
fix: 🐛 (customization) adjust top level configs
1 parent 2896035 commit d50c9a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/customization.mjs

+8
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,17 @@ function renameKebabCases(libraryName) {
8181
to: kebabcase(libraryName)
8282
}
8383

84+
const replaceTopLevelConfigOptions = {
85+
ignore: 'node_modules/**/*',
86+
files: '*.{ts,html,json,scss,js}',
87+
from: new RegExp(LIBRARY_NAME),
88+
to: kebabcase(libraryName)
89+
}
90+
8491
try {
8592
spinner.start();
8693
replaceInFile.sync(replaceOptions);
94+
replaceInFile.sync(replaceTopLevelConfigOptions);
8795
spinner.stop();
8896
} catch (error) {
8997
spinner.fail('Oh no, an error occurred while replacing configs, import paths, selectors, HTML component usage')

0 commit comments

Comments
 (0)