Description: Fix rollup-plugin-typescript2 include patterns for picomatch >= 4
 rollup-plugin-typescript2 builds its file filter from the default include
 patterns "*.ts+(|x)" and "**/*.ts+(|x)". These use extglobs with an empty
 alternative, which picomatch >= 4 no longer matches, so the filter rejects
 every file: the entry module is not resolved/transformed and rollup aborts
 with "Could not resolve './src/all' from 'index.ts'". Pass explicit include
 patterns, which refer to the very same set of files for picomatch 2 and 4.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-16

--- node-zrender-6.0.0+dfsg.orig/build/build.js
+++ node-zrender-6.0.0+dfsg/build/build.js
@@ -19,6 +19,12 @@ function createInputOption(env, isWatch)
         plugins: [
             typescript({
                 clean: !isWatch,
+                // The plugin's default include patterns ("*.ts+(|x)", "**/*.ts+(|x)")
+                // use extglobs with an empty alternative, which picomatch >= 4 does not
+                // match anymore, so every file gets filtered out. Use explicit
+                // patterns, which resolve to the very same set of files for
+                // picomatch 2 and 4.
+                include: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
                 tsconfigOverride: {
                     compilerOptions: {
                         // Rollup don't use CommonJS by default.
