Next12 now supports ESM (#29295)
* Next12 now supports ESM * No more michael jackson script extensions * Fix test running * Update jest-puppeteer.config.cjs * Update package.json
This commit is contained in:
1
.github/package.json
vendored
1
.github/package.json
vendored
@@ -1 +0,0 @@
|
||||
{"type":"module"}
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
# Don't care about CDN caching image URLs
|
||||
DISABLE_REWRITE_ASSET_URLS: true
|
||||
run: |
|
||||
node server.mjs > /tmp/stdout.log 2> /tmp/stderr.log &
|
||||
node server.js > /tmp/stdout.log 2> /tmp/stderr.log &
|
||||
sleep 6
|
||||
curl --retry-connrefused --retry 5 -I http://localhost:4000/
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
DISABLE_RENDERING_CACHE: true
|
||||
run: |
|
||||
|
||||
node server.mjs &
|
||||
node server.js &
|
||||
sleep 5
|
||||
curl --retry-connrefused --retry 3 -I http://localhost:4000/
|
||||
|
||||
|
||||
2
.github/workflows/code-lint.yml
vendored
2
.github/workflows/code-lint.yml
vendored
@@ -15,7 +15,7 @@ on:
|
||||
- '**.yaml'
|
||||
- '**.yml'
|
||||
- '**.scss'
|
||||
- .eslintrc.js
|
||||
- .eslintrc.cjs
|
||||
# In case something like eslint or tsc or prettier upgrades
|
||||
- 'package-lock.json'
|
||||
# Ultimately, for debugging this workflow itself
|
||||
|
||||
@@ -10,7 +10,7 @@ on:
|
||||
- gh-readonly-queue/main/**
|
||||
pull_request:
|
||||
paths:
|
||||
- script/search/index-elasticsearch.mjs
|
||||
- script/search/index-elasticsearch.js
|
||||
- 'package*.json'
|
||||
- .github/workflows/dry-run-elasticsearch-indexing.yml
|
||||
|
||||
@@ -63,7 +63,7 @@ jobs:
|
||||
env:
|
||||
ELASTICSEARCH_URL: 'http://localhost:9200'
|
||||
run: |
|
||||
./script/search/index-elasticsearch.mjs --verbose \
|
||||
./script/search/index-elasticsearch.js --verbose \
|
||||
-l en -l ja \
|
||||
-V dotcom -V ghes-3.5
|
||||
|
||||
|
||||
4
.github/workflows/link-check-all.yml
vendored
4
.github/workflows/link-check-all.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
||||
# Don't care about CDN caching image URLs
|
||||
DISABLE_REWRITE_ASSET_URLS: true
|
||||
run: |
|
||||
./script/rendered-content-link-checker.mjs \
|
||||
./script/rendered-content-link-checker.js \
|
||||
--language en \
|
||||
--max 100 \
|
||||
--check-anchors \
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
# Don't care about CDN caching image URLs
|
||||
DISABLE_REWRITE_ASSET_URLS: true
|
||||
run: |
|
||||
./script/rendered-content-link-checker.mjs \
|
||||
./script/rendered-content-link-checker.js \
|
||||
--language en \
|
||||
--exit \
|
||||
--verbose \
|
||||
|
||||
4
.github/workflows/orphaned-assets-check.yml
vendored
4
.github/workflows/orphaned-assets-check.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
|
||||
./script/find-orphaned-assets.mjs | xargs git rm
|
||||
./script/find-orphaned-assets.js | xargs git rm
|
||||
|
||||
# If nothing to commit, exit now. It's fine. No orphans.
|
||||
git status | grep 'nothing to commit' && exit 0
|
||||
@@ -58,6 +58,6 @@ jobs:
|
||||
|
||||
gh pr create \
|
||||
--title "Delete orphaned assets ($date)" \
|
||||
--body "Found with the find-orphaned-assets.mjs script" \
|
||||
--body "Found with the find-orphaned-assets.js script" \
|
||||
--repo github/docs-internal \
|
||||
--label docs-content-fr
|
||||
|
||||
@@ -109,7 +109,7 @@ jobs:
|
||||
|
||||
- name: Index into Elasticsearch
|
||||
run: |
|
||||
./script/search/index-elasticsearch.mjs \
|
||||
./script/search/index-elasticsearch.js \
|
||||
--language ${{ matrix.language }} \
|
||||
--source-directory /tmp/records
|
||||
|
||||
|
||||
Reference in New Issue
Block a user