plugins: remove usages of --experimental-type-build

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-21 15:28:00 +02:00
parent f2dbf8c2b7
commit 8613ba3928
39 changed files with 242 additions and 123 deletions
+13
View File
@@ -0,0 +1,13 @@
## API Report File for "@backstage/plugin-proxy-backend"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { BackendFeature } from '@backstage/backend-plugin-api';
// @alpha
const _default: () => BackendFeature;
export default _default;
// (No @packageDocumentation comment for this package)
```
-5
View File
@@ -3,7 +3,6 @@
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { BackendFeature } from '@backstage/backend-plugin-api';
import { Config } from '@backstage/config';
import express from 'express';
import { Logger } from 'winston';
@@ -12,10 +11,6 @@ import { PluginEndpointDiscovery } from '@backstage/backend-common';
// @public
export function createRouter(options: RouterOptions): Promise<express.Router>;
// @alpha
const proxyPlugin: () => BackendFeature;
export default proxyPlugin;
// @public (undocumented)
export interface RouterOptions {
// (undocumented)
+17 -5
View File
@@ -6,10 +6,22 @@
"types": "src/index.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
"types": "dist/index.d.ts",
"alphaTypes": "dist/index.alpha.d.ts"
"access": "public"
},
"exports": {
".": "./src/index.ts",
"./alpha": "./src/alpha.ts",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"alpha": [
"src/alpha.ts"
],
"package.json": [
"package.json"
]
}
},
"backstage": {
"role": "backend-plugin"
@@ -25,7 +37,7 @@
],
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build --experimental-type-build",
"build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
"prepack": "backstage-cli package prepack",
@@ -26,7 +26,7 @@ import { createRouter } from './service/router';
*
* @alpha
*/
export const proxyPlugin = createBackendPlugin({
export default createBackendPlugin({
pluginId: 'proxy',
register(env) {
env.registerInit({
-1
View File
@@ -21,4 +21,3 @@
*/
export * from './service';
export { proxyPlugin as default } from './plugin';