@@ -77,21 +77,13 @@ function renameKebabCases(libraryName) {
77
77
const replaceOptions = {
78
78
ignore : 'node_modules/**/*' ,
79
79
files : '**/*.{ts,html,json,scss,js}' ,
80
- from : new RegExp ( LIBRARY_NAME ) ,
81
- to : kebabcase ( libraryName )
82
- }
83
-
84
- const replaceTopLevelConfigOptions = {
85
- ignore : 'node_modules/**/*' ,
86
- files : '*.{ts,html,json,scss,js}' ,
87
- from : new RegExp ( LIBRARY_NAME ) ,
80
+ from : new RegExp ( LIBRARY_NAME , 'g' ) ,
88
81
to : kebabcase ( libraryName )
89
82
}
90
83
91
84
try {
92
85
spinner . start ( ) ;
93
86
replaceInFile . sync ( replaceOptions ) ;
94
- replaceInFile . sync ( replaceTopLevelConfigOptions ) ;
95
87
spinner . stop ( ) ;
96
88
} catch ( error ) {
97
89
spinner . fail ( 'Oh no, an error occurred while replacing configs, import paths, selectors, HTML component usage' )
@@ -105,13 +97,13 @@ function renameCamelCases(libraryName) {
105
97
const replaceOptions = {
106
98
ignore : 'node_modules/**/*' ,
107
99
files : '**/*.{ts,html,json,scss,js}' ,
108
- from : new RegExp ( camelcase ( LIBRARY_NAME ) ) ,
100
+ from : new RegExp ( camelcase ( LIBRARY_NAME ) , 'g' ) ,
109
101
to : camelcase ( libraryName )
110
102
}
111
103
112
104
try {
113
105
spinner . start ( ) ;
114
- replaceInFile . sync ( replaceOptions ) ;
106
+ // replaceInFile.sync(replaceOptions);
115
107
spinner . stop ( ) ;
116
108
} catch ( error ) {
117
109
spinner . fail ( 'Oh no, an error occurred while replacing class names, configs, styles' )
0 commit comments