Skip to content

Commit 007f93b

Browse files
committed
chore: use workspace: protocol for workspace dependencies
Closes #10547 Signed-off-by: Jon Koops <jonkoops@gmail.com>
1 parent d49c3b5 commit 007f93b

File tree

12 files changed

+11341
-166
lines changed

12 files changed

+11341
-166
lines changed

GETTING-STARTED.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,3 @@ PatternFly React has 3 linters you can run all at once using `yarn lint:all`. Th
3838
### ESLint
3939

4040
ESLint is run on .js, .jsx, .ts, and .tsx files. It uses the [@typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) parser with custom config added over the years. We write some of our own ESLint rules in `eslint-plugin-patternfly-react`. You can run this linter with `yarn lint:ts` or on specific files with `yarn lint <path>`.
41-
42-
### Version lint
43-
44-
The `@patternfly` version linter is run on all `package.json` files to ensure that versions of all `@patternfly/*` packages match. This is done to prevent mismatching versions of essential PatternFly packages from accidentally being published. You can run this linter with `yarn lint:versions`.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,9 @@
8888
"clean:exports": "lerna run clean:exports --parallel --stream",
8989
"generate": "yarn plop",
9090
"lint": "eslint --ext js,jsx,ts,tsx --cache --cache-strategy content",
91-
"lint:all": "yarn lint:md && yarn lint:versions && yarn lint:ts",
91+
"lint:all": "yarn lint:md && yarn lint:ts",
9292
"lint:md": "yarn eslint packages --ext md --no-eslintrc --config .eslintrc-md.json --cache --cache-strategy content",
9393
"lint:ts": "yarn lint packages/*/src",
94-
"lint:versions": "node scripts/verifyPatternflyVersions.js",
9594
"lint:tests": "yarn lint packages/*/src/components/*/__tests__/*.test.*",
9695
"prepare": "ts-patch install -s",
9796
"serve:docs": "yarn workspace @patternfly/react-docs serve",
@@ -113,8 +112,7 @@
113112
},
114113
"lint-staged": {
115114
"*.md": "yarn lint:md --fix",
116-
"*.{js,jsx,ts,tsx}": "yarn lint --fix",
117-
"*.json": "yarn lint:versions --fix"
115+
"*.{js,jsx,ts,tsx}": "yarn lint --fix"
118116
},
119117
"workspaces": {
120118
"packages": [

packages/react-charts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
},
2929
"homepage": "https://github.com/patternfly/patternfly-react#readme",
3030
"dependencies": {
31-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
32-
"@patternfly/react-tokens": "^5.4.0-prerelease.5",
31+
"@patternfly/react-styles": "workspace:^",
32+
"@patternfly/react-tokens": "workspace:^",
3333
"hoist-non-react-statics": "^3.3.0",
3434
"lodash": "^4.17.21",
3535
"tslib": "^2.6.2",

packages/react-code-editor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
},
3131
"dependencies": {
3232
"@monaco-editor/react": "^4.6.0",
33-
"@patternfly/react-core": "^5.4.0-prerelease.15",
34-
"@patternfly/react-icons": "^5.4.0-prerelease.5",
35-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
33+
"@patternfly/react-core": "workspace:^",
34+
"@patternfly/react-icons": "workspace:^",
35+
"@patternfly/react-styles": "workspace:^",
3636
"react-dropzone": "14.2.3",
3737
"tslib": "^2.6.2"
3838
},

packages/react-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
"clean:exports": "node scripts/cleanDistExports.js"
4747
},
4848
"dependencies": {
49-
"@patternfly/react-icons": "^5.4.0-prerelease.5",
50-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
51-
"@patternfly/react-tokens": "^5.4.0-prerelease.5",
49+
"@patternfly/react-icons": "workspace:^",
50+
"@patternfly/react-styles": "workspace:^",
51+
"@patternfly/react-tokens": "workspace:^",
5252
"focus-trap": "7.5.4",
5353
"react-dropzone": "^14.2.3",
5454
"tslib": "^2.6.2"

packages/react-docs/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
},
2424
"dependencies": {
2525
"@patternfly/patternfly": "5.4.0-prerelease.3",
26-
"@patternfly/react-charts": "^7.4.0-prerelease.11",
27-
"@patternfly/react-code-editor": "^5.4.0-prerelease.17",
28-
"@patternfly/react-core": "^5.4.0-prerelease.15",
29-
"@patternfly/react-drag-drop": "^5.4.0-prerelease.16",
30-
"@patternfly/react-icons": "^5.4.0-prerelease.5",
31-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
32-
"@patternfly/react-table": "^5.4.0-prerelease.16",
33-
"@patternfly/react-templates": "^1.1.0-prerelease.15",
34-
"@patternfly/react-tokens": "^5.4.0-prerelease.5"
26+
"@patternfly/react-charts": "workspace:^",
27+
"@patternfly/react-code-editor": "workspace:^",
28+
"@patternfly/react-core": "workspace:^",
29+
"@patternfly/react-drag-drop": "workspace:^",
30+
"@patternfly/react-icons": "workspace:^",
31+
"@patternfly/react-styles": "workspace:^",
32+
"@patternfly/react-table": "workspace:^",
33+
"@patternfly/react-templates": "workspace:^",
34+
"@patternfly/react-tokens": "workspace:^"
3535
},
3636
"devDependencies": {
3737
"@patternfly/documentation-framework": "^5.15.7",

packages/react-drag-drop/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"@dnd-kit/core": "^6.1.0",
3333
"@dnd-kit/modifiers": "^6.0.1",
3434
"@dnd-kit/sortable": "^7.0.2",
35-
"@patternfly/react-core": "^5.4.0-prerelease.15",
36-
"@patternfly/react-icons": "^5.4.0-prerelease.5",
37-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
35+
"@patternfly/react-core": "workspace:^",
36+
"@patternfly/react-icons": "workspace:^",
37+
"@patternfly/react-styles": "workspace:^",
3838
"memoize-one": "^5.1.0",
3939
"resize-observer-polyfill": "^1.5.1"
4040
},

packages/react-integration/demo-app-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"preview": "vite preview --port 3000"
1010
},
1111
"dependencies": {
12-
"@patternfly/react-core": "^5.4.0-prerelease.15",
12+
"@patternfly/react-core": "workspace:^",
1313
"react": "^18",
1414
"react-dom": "^18",
1515
"react-router": "^5.3.4",

packages/react-table/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
4040
},
4141
"dependencies": {
42-
"@patternfly/react-core": "^5.4.0-prerelease.15",
43-
"@patternfly/react-icons": "^5.4.0-prerelease.5",
44-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
45-
"@patternfly/react-tokens": "^5.4.0-prerelease.5",
42+
"@patternfly/react-core": "workspace:^",
43+
"@patternfly/react-icons": "workspace:^",
44+
"@patternfly/react-styles": "workspace:^",
45+
"@patternfly/react-tokens": "workspace:^",
4646
"lodash": "^4.17.21",
4747
"tslib": "^2.6.2"
4848
},

packages/react-templates/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
3434
},
3535
"dependencies": {
36-
"@patternfly/react-core": "^5.4.0-prerelease.15",
37-
"@patternfly/react-icons": "^5.4.0-prerelease.5",
38-
"@patternfly/react-styles": "^5.4.0-prerelease.6",
39-
"@patternfly/react-tokens": "^5.4.0-prerelease.5",
36+
"@patternfly/react-core": "workspace:^",
37+
"@patternfly/react-icons": "workspace:^",
38+
"@patternfly/react-styles": "workspace:^",
39+
"@patternfly/react-tokens": "workspace:^",
4040
"tslib": "^2.6.2"
4141
},
4242
"peerDependencies": {

0 commit comments

Comments
 (0)