@@ -131,7 +131,7 @@ def _package_notice_file(save_dir):
131131 notice_txt = f .read ()
132132
133133 with open (os .path .join (save_dir , 'notice.ts' ), 'wt' ) as f :
134- commented_notice = [' * ' + line for line in notice_txt .splitlines ()]
134+ commented_notice = [f ' * { line } ' . rstrip () for line in notice_txt .splitlines ()]
135135 lines = ['/* eslint-disable @kbn/eslint/require-license-header */' , '' , '/* @notice' ]
136136 lines = lines + commented_notice + [' */' , '' ]
137137 f .write ('\n ' .join (lines ))
@@ -150,14 +150,15 @@ def _package_index_file(self, save_dir):
150150 const_exports = ['export const rawRules = [' ]
151151 const_exports .extend (f" rule{ i } ," for i , _ in enumerate (sorted_rules , 1 ))
152152 const_exports .append ("];" )
153- const_exports .append (" " )
153+ const_exports .append ("" )
154154
155155 index_ts = [JS_LICENSE , "" ]
156156 index_ts .extend (comments )
157157 index_ts .append ("" )
158158 index_ts .extend (rule_imports )
159159 index_ts .append ("" )
160160 index_ts .extend (const_exports )
161+
161162 with open (os .path .join (save_dir , 'index.ts' ), 'wt' ) as f :
162163 f .write ('\n ' .join (index_ts ))
163164
0 commit comments