Description: switch to @rollup/plugin-typescript to fix build failure with rollup 3
 The old rollup-plugin-typescript (1.0.1) shipped in
 node-rollup-plugin-typescript 12.3.0~ds+~cs1.0.1 no longer transforms
 .ts sources under rollup 3.30 (its createFilter-based transform is not
 applied), so rollup fails with "RollupError: Unexpected token" on the
 TypeScript type syntax in src/fecha.ts.  Switch to the modern
 @rollup/plugin-typescript and pass explicit compiler options
 ({ module: "esnext" }, tsconfig disabled) as done in the Debian
 4.2.1+dfsg1-4 upload.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Reviewed-By: openkylin auto fixer
Last-Update: 2026-09-04

--- node-fecha-4.2.1+dfsg1.orig/rollup.config.js
+++ node-fecha-4.2.1+dfsg1/rollup.config.js
@@ -1,4 +1,4 @@
-const typescript = require("rollup-plugin-typescript");
+const typescript = require("@rollup/plugin-typescript");
 
 module.exports = [
   // Compressed (for direct consumption in browser)
@@ -12,7 +12,7 @@ module.exports = [
       file: "dist/fecha.js",
       exports: "named"
     },
-    plugins: [typescript()]
+    plugins: [typescript({ tsconfig: false, compilerOptions: { module: "esnext" } })]
   },
   // For Node: no minify, output in lib dir
   {
@@ -23,7 +23,7 @@ module.exports = [
       file: "lib/fecha.umd.js",
       exports: "named"
     },
-    plugins: [typescript()]
+    plugins: [typescript({ tsconfig: false, compilerOptions: { module: "esnext" } })]
   },
   {
     input: "src/fecha.ts",
@@ -33,6 +33,6 @@ module.exports = [
       file: "lib/fecha.js",
       exports: "named"
     },
-    plugins: [typescript()]
+    plugins: [typescript({ tsconfig: false, compilerOptions: { module: "esnext" } })]
   }
 ];
