File: fix-for-rollup-2.patch

package info (click to toggle)
node-rollup-plugin-typescript 10.0.1~ds%2B~1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,232 kB
  • sloc: javascript: 1,742; makefile: 21
file content (27 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: fix for current tsc & rollup 2
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-04

--- a/packages/typescript/src/index.ts
+++ b/packages/typescript/src/index.ts
@@ -145,7 +145,7 @@
 
       const output = findTypescriptOutput(ts, parsedOptions, id, emittedFiles, tsCache);
 
-      return output.code != null ? (output as SourceDescription) : null;
+      return output["code"] != null ? (output as SourceDescription) : null;
     },
 
     async generateBundle(outputOptions) {
--- a/packages/typescript/src/outputFile.ts
+++ b/packages/typescript/src/outputFile.ts
@@ -10,6 +10,8 @@
 import type TSCache from './tscache';
 
 export interface TypescriptSourceDescription extends Partial<SourceDescription> {
+  code: string;
+  map: string;
   declarations: string[];
 }