From: Sergei Golovan Subject: Patch enables building TypeScript declarations and source maps for plugins and adds sources to the installed files to make debugging easier. Last-Modified: Wed, 22 Apr 2026 00:30:56 +0300 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,7 @@ /* If you're building for a library in a monorepo: */ "declarationMap": true, /* Don't advertise @private properties */ - "stripInternal": true - }, + "stripInternal": true, + "declarationDir": "dist/types", + } } --- a/plugin/tsconfig.json +++ b/plugin/tsconfig.json @@ -10,6 +10,11 @@ "outDir": "./dist", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + /* If you're building for a library: */ + "declaration": true, + /* If you're building for a library in a monorepo: */ + "declarationMap": true, + "declarationDir": "./dist", } } --- a/progress-plugin/tsconfig.json +++ b/progress-plugin/tsconfig.json @@ -8,6 +8,11 @@ "outDir": "./dist", "esModuleInterop": true, "strict": true, - "noImplicitAny": true + "noImplicitAny": true, + /* If you're building for a library: */ + "declaration": true, + /* If you're building for a library in a monorepo: */ + "declarationMap": true, + "declarationDir": "./dist", } } --- a/plugin/package.json +++ b/plugin/package.json @@ -17,7 +17,7 @@ } }, "files": [ - "bin", + "src", "dist" ], "scripts": { --- a/progress-plugin/package.json +++ b/progress-plugin/package.json @@ -17,6 +17,7 @@ } }, "files": [ + "src", "dist" ], "scripts": { --- a/a11y-plugin/tsconfig.json +++ b/a11y-plugin/tsconfig.json @@ -10,6 +10,11 @@ "outDir": "./dist", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + /* If you're building for a library: */ + "declaration": true, + /* If you're building for a library in a monorepo: */ + "declarationMap": true, + "declarationDir": "./dist", } } --- a/a11y-plugin/package.json +++ b/a11y-plugin/package.json @@ -17,6 +17,7 @@ } }, "files": [ + "src", "dist" ], "scripts": {