Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Mar 18, 2024
1 parent 8462d68 commit ac39c68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/check_for_console_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 4 additions & 2 deletions tasks/console-errors.mjs → tasks/console-errors.js
Original file line number Diff line number Diff line change
@@ -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 = [
{
Expand Down

0 comments on commit ac39c68

Please sign in to comment.