Skip to content

chore: bump tar-fs to 3.0.8 #8315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/set_yarn_berry/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Set Yarn Berry
description: Enable Yarn Berry in the workflow

runs:
using: 'composite'
steps:
- name: Enable corepack
run: corepack enable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: corepack will no longer be distributed by Node.js soon(after 25). It's better to install this

Suggested change
run: corepack enable
run: npm install -g corepack

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I would not worry about this now, since we pin Node 20, and Node 18 is still in the progress of deprecation...

shell: bash
- name: Set yarn version to berry
run: yarn set version berry
shell: bash

2 changes: 2 additions & 0 deletions .github/workflows/accessibility_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install dependencies
run: yarn
- name: Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install Dependencies
run: yarn
- name: Run tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check_bundle_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install dependencies
run: yarn
- name: Run build and analyze base bundle sizes
Expand All @@ -41,6 +43,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install dependencies
run: yarn
- name: Run build and analyze head bundle sizes
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_for_broken_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install Dependencies
run: yarn
- name: Run Link Checker
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_for_console_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install Dependencies
run: yarn
- name: Run Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_for_new_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
script: |
const { getAddedFiles } = require('./.github/workflows/scripts/check_for_new_files.js');
return await getAddedFiles({github, context, core});
- name: Set yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install npm package ignore
if: ${{ steps.set-added-files-count.outputs.result > 0 }}
run: yarn add ignore@5.2.4 -W # help verify CODEOWNERS
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_pr_for_broken_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install Dependencies
run: yarn
- name: Run Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install Dependencies
run: yarn
- name: Run Spellcheck
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/validate_redirects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Set Yarn Berry
uses: ./.github/actions/set_yarn_berry
- name: Install Dependencies
run: yarn
- name: Validate redirects
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public/next-image-export-optimizer-hashes.json
src/directory/directory.json
src/directory/flatDirectory.json
src/references/raw-references.json
.yarn/*

#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

### Prerequisites

- [Node.js 18.17.0 or later, but below 22.0.0](https://nodejs.org/en/)
- [Yarn classic](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable)
- [Node.js 20+, but below 22.0.0](https://nodejs.org/en/)

## Set up the docs repo

1. [Fork this repo](/fork) and `git clone` it.
2. In your terminal, navigate to the repo from where it was just cloned. This should be located at the `/docs` directory.
3. From your command line, run `yarn && yarn dev`.
4. <http://localhost:3000/> should open automatically.
3. Set yarn version to the modern latest version, run `corepack enable && yarn set version berry`.
4. From your command line, run `yarn && yarn dev`.
5. <http://localhost:3000/> should open automatically.

## How to contribute

Expand Down
4 changes: 3 additions & 1 deletion amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ frontend:
phases:
preBuild:
commands:
- yarn install
- corepack enable
- yarn set version stable
- yarn install --frozen-lockfile
build:
commands:
- echo "BUILD_ENV=$BUILD_ENV" >> .env.custom
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ajv": "^8.16.0",
"aws-amplify": "^6.0.9",
"next": "^14.2.25",
"next-image-export-optimizer": "^1.8.3",
"next-image-export-optimizer": "^1.18.0",
"next-transpile-modules": "^9.0.0",
"parse-imports": "^1.1.0",
"prism-react-renderer": "^2.1.0",
Expand Down Expand Up @@ -65,7 +65,7 @@
"lint-staged": "^15.2.7",
"next-bundle-analyzer": "^0.6.7",
"prettier": "^3.0.3",
"puppeteer": "^22.8.0",
"puppeteer": "^22.15.0",
"rehype": "^11.0.0",
"rehype-img-size": "^1.0.1",
"rehype-mdx-code-props": "^2.0.0",
Expand All @@ -83,21 +83,19 @@
"unist-util-visit": "^4.1.0"
},
"resolutions": {
"**/trim": "0.0.3",
"@babel/core": "^7.23.2",
"@babel/traverse": "^7.23.2",
"loader-utils": "2.0.4",
"minimatch": "3.1.2",
"decode-uri-component": "0.2.1",
"**/fast-xml-parser": "4.4.1",
"cross-spawn": "^7.0.5",
"semver": "7.5.2",
"tough-cookie": "4.1.3",
"aws-cdk-lib": "2.80.0",
"prismjs": "^1.27.0",
"@adobe/css-tools": "4.3.2",
"follow-redirects": "^1.15.6",
"sharp": "0.32.6",
"sharp": "0.33.1",
"ejs": "3.1.10",
"braces": "^3.0.3",
"ws": "^8.17.1"
Expand All @@ -111,9 +109,9 @@
"dev": "yarn prebuild && next dev",
"spellcheck": "cspell \"src/**/*.mdx\" --no-progress",
"spellcheck-diff": "git diff --name-only --cached | awk \"/src.*\\.mdx/{print}\" | npx cspell --no-must-find-files --file-list stdin",
"build": "next build",
"build": "yarn prebuild && next build && yarn postbuild",
"postbuild": "node tasks/postBuildTasks.mjs",
"build:release": "yarn build && next-image-export-optimizer --exportFolderPath client/www/next-build",
"build:release": "yarn build && next-image-export-optimizer --nextConfigPath ./next.config.mjs --exportFolderPath client/www/next-build",
"next-build": "next build",
"next-start": "next start",
"prepare": "husky install",
Expand All @@ -122,5 +120,5 @@
"lint": "next lint",
"clean-references": "node tasks/clean-references.mjs"
},
"packageManager": "yarn@1.22.22"
"packageManager": "yarn@4.9.0"
}
Loading