diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6983aafa2f8..176c38a7465 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -104,6 +104,7 @@ /src/themes @aws-amplify/documentation-team /src/utils @aws-amplify/documentation-team /tasks @aws-amplify/documentation-team +.github @aws-amplify/documentation-team #Protected Content /src/protected @reesscot @srquinn21 @Milan-Shah @swaminator diff --git a/.github/workflows/check_for_console_errors.yml b/.github/workflows/check_for_console_errors.yml index fc343c7f34c..1a9c4a7a4ff 100644 --- a/.github/workflows/check_for_console_errors.yml +++ b/.github/workflows/check_for_console_errors.yml @@ -32,7 +32,7 @@ jobs: with: result-encoding: string script: | - const { consoleErrors } = require('./tasks/console-errors.mjs'); + const { consoleErrors } = require('./tasks/console-errors.js'); return await consoleErrors(); - name: Fail if console errors have been found if: ${{ steps.consoleErrors.outputs.result }} diff --git a/tasks/console-errors.mjs b/tasks/console-errors.js similarity index 89% rename from tasks/console-errors.mjs rename to tasks/console-errors.js index 04d6bf559bc..8c9d36c0496 100644 --- a/tasks/console-errors.mjs +++ b/tasks/console-errors.js @@ -1,5 +1,7 @@ -import { launch } from 'puppeteer'; -import { getSitemapUrls } from './get-sitemap-links'; +// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-var-requires +const puppeteer = require('puppeteer'); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const { getSitemapUrls } = require('./get-sitemap-links'); const excludedErrors = [ {