Debian Codegraph @

debian/patches/tsconfig.patch

raw
1 From: Sergei Golovan
2 Subject: Patch enables building TypeScript declarations and source maps
3 for plugins and adds sources to the installed files to make debugging
4 easier.
5 Last-Modified: Wed, 22 Apr 2026 00:30:56 +0300
6
7 --- a/tsconfig.json
8 +++ b/tsconfig.json
9 @@ -26,6 +26,7 @@
10 /* If you're building for a library in a monorepo: */
11 "declarationMap": true,
12 /* Don't advertise @private properties */
13 - "stripInternal": true
14 - },
15 + "stripInternal": true,
16 + "declarationDir": "dist/types",
17 + }
18 }
19 --- a/plugin/tsconfig.json
20 +++ b/plugin/tsconfig.json
21 @@ -10,6 +10,11 @@
22 "outDir": "./dist", /* Specify an output folder for all emitted files. */
23 "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
24 "strict": true, /* Enable all strict type-checking options. */
25 - "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */
26 + "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
27 + /* If you're building for a library: */
28 + "declaration": true,
29 + /* If you're building for a library in a monorepo: */
30 + "declarationMap": true,
31 + "declarationDir": "./dist",
32 }
33 }
34 --- a/progress-plugin/tsconfig.json
35 +++ b/progress-plugin/tsconfig.json
36 @@ -8,6 +8,11 @@
37 "outDir": "./dist",
38 "esModuleInterop": true,
39 "strict": true,
40 - "noImplicitAny": true
41 + "noImplicitAny": true,
42 + /* If you're building for a library: */
43 + "declaration": true,
44 + /* If you're building for a library in a monorepo: */
45 + "declarationMap": true,
46 + "declarationDir": "./dist",
47 }
48 }
49 --- a/plugin/package.json
50 +++ b/plugin/package.json
51 @@ -17,7 +17,7 @@
52 }
53 },
54 "files": [
55 - "bin",
56 + "src",
57 "dist"
58 ],
59 "scripts": {
60 --- a/progress-plugin/package.json
61 +++ b/progress-plugin/package.json
62 @@ -17,6 +17,7 @@
63 }
64 },
65 "files": [
66 + "src",
67 "dist"
68 ],
69 "scripts": {
70 --- a/a11y-plugin/tsconfig.json
71 +++ b/a11y-plugin/tsconfig.json
72 @@ -10,6 +10,11 @@
73 "outDir": "./dist", /* Specify an output folder for all emitted files. */
74 "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
75 "strict": true, /* Enable all strict type-checking options. */
76 - "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */
77 + "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
78 + /* If you're building for a library: */
79 + "declaration": true,
80 + /* If you're building for a library in a monorepo: */
81 + "declarationMap": true,
82 + "declarationDir": "./dist",
83 }
84 }
85 --- a/a11y-plugin/package.json
86 +++ b/a11y-plugin/package.json
87 @@ -17,6 +17,7 @@
88 }
89 },
90 "files": [
91 + "src",
92 "dist"
93 ],
94 "scripts": {