diff --git a/.yarnrc.yml b/.yarnrc.yml index eb3df1b..bec4c64 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -2,7 +2,7 @@ nodeLinker: node-modules npmScopes: liatrio: - npmRegistryServer: "https://npm.pkg.github.com" npmAlwaysAuth: true + npmRegistryServer: "https://npm.pkg.github.com" yarnPath: .yarn/releases/yarn-4.5.1.cjs diff --git a/backstage-plugin-autogov-common/eslintrc.js b/backstage-plugin-autogov-common/eslintrc.js deleted file mode 100644 index 958d722..0000000 --- a/backstage-plugin-autogov-common/eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/backstage-plugin-autogov-processor-backend/.eslintrc.js b/backstage-plugin-autogov-processor-backend/.eslintrc.js deleted file mode 100644 index 958d722..0000000 --- a/backstage-plugin-autogov-processor-backend/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/backstage-plugin-github-releases-assets-backend/.eslintrc.js b/backstage-plugin-github-releases-assets-backend/.eslintrc.js deleted file mode 100644 index 958d722..0000000 --- a/backstage-plugin-github-releases-assets-backend/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/backstage-plugin-github-releases-assets-backend/src/service/router.ts b/backstage-plugin-github-releases-assets-backend/src/service/router.ts index 294cebb..b5a9f33 100644 --- a/backstage-plugin-github-releases-assets-backend/src/service/router.ts +++ b/backstage-plugin-github-releases-assets-backend/src/service/router.ts @@ -3,7 +3,7 @@ import { LoggerService } from "@backstage/backend-plugin-api"; import { Config } from "@backstage/config"; import express from "express"; -import Router from "express-promise-router"; +import expressRouter from "express-promise-router"; import fetch from "node-fetch"; export interface RouterOptions { @@ -16,7 +16,7 @@ export async function createRouter( ): Promise { const { logger, config } = options; - const router = Router(); + const router = expressRouter(); router.use(express.json()); router.get("/health", (_, response) => { diff --git a/backstage-plugin-github-releases-autogov/.eslintrc.js b/backstage-plugin-github-releases-autogov/.eslintrc.js deleted file mode 100644 index 958d722..0000000 --- a/backstage-plugin-github-releases-autogov/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/package.json b/package.json index 981cd4e..ce094b9 100644 --- a/package.json +++ b/package.json @@ -31,9 +31,8 @@ "lint": "backstage-cli repo lint", "lint:all": "yarn lint && yarn prettier:check", "build:all": "yarn --cwd backstage-plugin-github-releases-autogov build && yarn --cwd backstage-plugin-github-releases-assets-backend build && yarn --cwd backstage-plugin-autogov-common build", - "tsc:all": "yarn --cwd backstage-plugin-github-releases-autogov tsc:full && yarn --cwd backstage-plugin-github-releases-assets-backend tsc:full && yarn --cwd backstage-plugin-autogov-common tsc:full", "install:all": "yarn --cwd backstage-plugin-github-releases-autogov install && yarn --cwd backstage-plugin-github-releases-assets-backend install && yarn --cwd backstage-plugin-autogov-common install", - "test:all": "yarn install:all && yarn build:all && yarn tsc:all && yarn --cwd backstage-plugin-github-releases-autogov test --no-watch && yarn --cwd backstage-plugin-github-releases-assets-backend test --no-watch && yarn --cwd backstage-plugin-autogov-common test --no-watch", + "test:all": "yarn install:all && yarn build:all && yarn tsc:full && yarn --cwd backstage-plugin-github-releases-autogov test --no-watch && yarn --cwd backstage-plugin-github-releases-assets-backend test --no-watch && yarn --cwd backstage-plugin-autogov-common test --no-watch", "prettier:check": "npx --yes prettier --check .", "prettier:fix": "npx --yes prettier --write .", "tsc:full": "tsc --skipLibCheck true --incremental false", @@ -41,4 +40,4 @@ "clean": "backstage-cli repo clean" }, "packageManager": "yarn@4.5.1" -} \ No newline at end of file +}