From c5f22d234f5bebc025361da58d981c2842581813 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Sun, 19 Jan 2025 13:05:09 -0600 Subject: [PATCH] fix `export * type` to `export type *` in patch-ts --- patch-ts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch-ts.js b/patch-ts.js index e4b6072d..df40386e 100644 --- a/patch-ts.js +++ b/patch-ts.js @@ -7,7 +7,7 @@ for (const file of files) { const cts = file.replace('.d.ts', '.d.cts') // Add type qualifiers in annotations - shell.sed('-i', /(import|export [*{])\s+(?!type\b)/, '$1 type ', file) + shell.sed('-i', /(import|export )*\s+(?!type\b)/, '$1 type ', file) // Remove .js extensions shell.sed('-i', /from '(\.[^.]+)\.js'/, "from '$1'", file)