Skip to content

Commit 1900ec9

Browse files
authored
chore: upgrade Yarn to the latest version (#4413)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
1 parent 04f27e5 commit 1900ec9

File tree

11 files changed

+19485
-14481
lines changed

11 files changed

+19485
-14481
lines changed

.github/workflows-src/partials/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
with:
33
node-version: 22
44
- run: corepack enable
5-
- run: yarn install --frozen-lockfile
5+
- run: yarn install --immutable
66
# v5 build
77
- uses: actions/cache@v2
88
id: site-cache

.github/workflows/pr-preview.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
node-version: 22
2222
- run: corepack enable
23-
- run: yarn install --frozen-lockfile
23+
- run: yarn install --immutable
2424
# build
2525
- uses: actions/cache@v2
2626
id: site-cache

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
node-version: 22
2525
- run: corepack enable
26-
- run: yarn install --frozen-lockfile
26+
- run: yarn install --immutable
2727
# v6 build
2828
- uses: actions/cache@v2
2929
id: site-cache

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,13 @@ static
3333

3434
size-plugin.json
3535
**/generated/**/*.js
36+
37+
# Yarn
38+
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
39+
.pnp.*
40+
.yarn/*
41+
!.yarn/patches
42+
!.yarn/plugins
43+
!.yarn/releases
44+
!.yarn/sdks
45+
!.yarn/versions

.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The PatternFly Org is the source for the official documentation for PatternFly.
44

55
## Development
66

7-
Development setup requires yarn. If you do not already have yarn installed on your system, see https://yarnpkg.com/en/.
7+
Development setup requires yarn. If you do not already have yarn installed on your system, see https://yarnpkg.com/getting-started.
88

99
A Node version 22 or greater is also required.
1010

@@ -28,8 +28,6 @@ The site can be built with:
2828

2929
The static assets get copied to build/patternfly-org.
3030

31-
If you see errors, make sure that the version of the `package.json` file in `packages/documentation-framework` matches the version of the `"@patternfly/documentation-framework"` dependency in the `package.json` file in `packages/documentation-site`.
32-
3331
### Deploy
3432

3533
When you submit a PR, previews should be automatically generated for you and uploaded as PR comments. This takes between 5-10 minutes.

package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "0.0.1",
55
"main": "index.js",
66
"license": "MIT",
7+
"packageManager": "yarn@4.5.3+sha512.3003a14012e2987072d244c720506549c1aab73ee728208f1b2580a9fd67b92d61ba6b08fe93f6dce68fd771e3af1e59a0afa28dd242dd0940d73b95fedd4e90",
78
"scripts": {
89
"analyze": "yarn workspace patternfly-org analyze",
910
"develop": "yarn workspace patternfly-org develop",
@@ -24,25 +25,22 @@
2425
},
2526
"workspaces": {
2627
"packages": [
27-
"packages/ast-helpers",
28-
"packages/documentation-framework",
29-
"packages/documentation-site"
28+
"packages/*"
3029
]
3130
},
3231
"devDependencies": {
32+
"@octokit/rest": "^19.0.7",
3333
"@patternfly/patternfly": "^6.1.0",
3434
"@patternfly/react-code-editor": "^6.1.0",
3535
"@patternfly/react-core": "^6.1.0",
3636
"@patternfly/react-table": "^6.1.0",
37-
"@octokit/rest": "^19.0.7",
3837
"glob": "^8.1.0",
3938
"lerna": "^6.4.1",
40-
"surge": "^0.23.1",
4139
"react": "^18",
42-
"react-dom": "^18"
40+
"react-dom": "^18",
41+
"surge": "^0.23.1"
4342
},
4443
"resolutions": {
4544
"node-sass": ">=6.0.1"
46-
},
47-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
45+
}
4846
}

packages/documentation-framework/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"version": "6.5.0",
55
"author": "Red Hat",
66
"license": "MIT",
7-
"private": false,
87
"bin": {
98
"pf-docs-framework": "scripts/cli/cli.js"
109
},

packages/documentation-site/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,41 @@
1717
"screenshots": "pf-docs-framework screenshots"
1818
},
1919
"dependencies": {
20-
"@patternfly/documentation-framework": "6.1.3",
20+
"@patternfly/chatbot": "2.1.0",
21+
"@patternfly/design-tokens": "1.13.0",
22+
"@patternfly/documentation-framework": "workspace:*",
23+
"@patternfly/quickstarts": "6.1.0",
2124
"@patternfly/react-catalog-view-extension": "6.0.0",
25+
"@patternfly/react-component-groups": "6.1.0",
2226
"@patternfly/react-console": "6.0.0",
2327
"@patternfly/react-docs": "7.1.0",
2428
"@patternfly/react-log-viewer": "6.1.0",
2529
"@patternfly/react-topology": "6.1.0",
2630
"@patternfly/react-user-feedback": "6.0.0",
27-
"@patternfly/react-component-groups": "6.1.0",
2831
"@patternfly/react-virtualized-extension": "6.0.0",
29-
"@patternfly/quickstarts": "6.1.0",
30-
"@patternfly/chatbot": "2.1.0",
31-
"@patternfly/design-tokens": "1.13.0",
3232
"react": "^17.0.0 || ^18.0.0",
3333
"react-dom": "^17.0.0 || ^18.0.0",
3434
"showdown": "^2.1.0"
3535
},
3636
"devDependencies": {
3737
"@patternfly/patternfly-a11y": "5.0.0",
38+
"classnames": "^2.2.5",
3839
"fs-extra": "^11.1.0",
3940
"glob": "^8.1.0",
4041
"react-jss": "^10.9.2",
4142
"react-router": "^6.3.0",
4243
"react-router-dom": "^6.3.0",
43-
"classnames": "^2.2.5",
44+
"victory-bar": "^37.1.1",
4445
"victory-core": "^37.1.1",
45-
"victory-scatter": "^37.1.1",
46-
"victory-pie": "^37.1.1",
47-
"victory-stack": "^37.1.1",
48-
"victory-legend": "^37.1.1",
49-
"victory-line": "^37.1.1",
50-
"victory-group": "^37.1.1",
51-
"victory-voronoi-container": "^37.1.1",
5246
"victory-create-container": "^37.1.1",
5347
"victory-cursor-container": "^37.1.1",
48+
"victory-group": "^37.1.1",
49+
"victory-legend": "^37.1.1",
50+
"victory-line": "^37.1.1",
51+
"victory-pie": "^37.1.1",
52+
"victory-scatter": "^37.1.1",
53+
"victory-stack": "^37.1.1",
5454
"victory-tooltip": "^37.1.1",
55-
"victory-bar": "^37.1.1"
55+
"victory-voronoi-container": "^37.1.1"
5656
}
5757
}

packages/documentation-site/patternfly-docs/content/get-started/develop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In order to develop with PatternFly, you will need to:
1313

1414
1. [Learn about our design token system](/tokens/about-tokens), which enables you to build interfaces with consistent PatternFly styling, including colors, shadows, spacing, and more.
1515

16-
1. Install a package manager to help you install, update, and configure all necessary PatternFly packages. We recommend [npm](https://nodejs.org/en/download) or [Yarn](https://yarnpkg.com/en/docs/getting-started).
16+
1. Install a package manager to help you install, update, and configure all necessary PatternFly packages. We recommend [npm](https://nodejs.org/en/download) or [Yarn](https://yarnpkg.com/getting-started).
1717

1818
1. Configure your environment to get started with our [React](#develop-with-react) and/or [HTML/CSS](#develop-with-htmlcss) libraries.
1919

0 commit comments

Comments
 (0)