Skip to content

Commit 68f7c3c

Browse files
build: vendor @wso2/eslint-plugin and @wso2/prettier-config as workspace packages
Both were consumed as git dependencies pointing at a subdirectory (`…/wso2-ui-configs.git#<sha>&path:packages/<name>`). pnpm resolves GitHub-hosted git dependencies to a tarball of the whole repository and drops the `path:` fragment when unpacking, so any clean install (CI, or a fresh local store) ends up with the repository root as the package and ESLint cannot find the plugin. This is why the ESLint job has been failing on every PR; it only ever "passed" when nx had nothing affected to lint. The two packages (Apache-2.0, WSO2) are now vendored under `tooling/` at the same pinned commit and referenced with `workspace:*`. See tooling/README.md.
1 parent bc24cad commit 68f7c3c

33 files changed

Lines changed: 1455 additions & 268 deletions

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"@changesets/changelog-github": "0.5.1",
4141
"@changesets/cli": "2.31.1",
4242
"@playwright/test": "^1.58.2",
43-
"@wso2/eslint-plugin": "catalog:",
44-
"@wso2/prettier-config": "catalog:",
43+
"@wso2/eslint-plugin": "workspace:*",
44+
"@wso2/prettier-config": "workspace:*",
4545
"eslint": "8.57.0",
4646
"nx": "22.7.9",
4747
"prettier": "2.6.2",

‎packages/browser/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@testing-library/dom": "10.4.0",
4545
"@types/node": "22.15.3",
4646
"@vitest/browser": "3.2.7",
47-
"@wso2/eslint-plugin": "catalog:",
48-
"@wso2/prettier-config": "catalog:",
47+
"@wso2/eslint-plugin": "workspace:*",
48+
"@wso2/prettier-config": "workspace:*",
4949
"esbuild": "0.25.9",
5050
"esbuild-plugin-inline-worker": "0.1.1",
5151
"eslint": "8.57.0",

‎packages/express/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
},
4343
"devDependencies": {
4444
"@types/node": "22.15.3",
45-
"@wso2/eslint-plugin": "catalog:",
46-
"@wso2/prettier-config": "catalog:",
45+
"@wso2/eslint-plugin": "workspace:*",
46+
"@wso2/prettier-config": "workspace:*",
4747
"esbuild": "0.25.9",
4848
"eslint": "8.57.0",
4949
"express": "5.2.1",

‎packages/i18n/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
},
4343
"devDependencies": {
4444
"@types/node": "22.15.30",
45-
"@wso2/eslint-plugin": "catalog:",
46-
"@wso2/prettier-config": "catalog:",
45+
"@wso2/eslint-plugin": "workspace:*",
46+
"@wso2/prettier-config": "workspace:*",
4747
"esbuild": "0.25.9",
4848
"eslint": "8.57.0",
4949
"prettier": "2.6.2",

‎packages/javascript/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
},
4545
"devDependencies": {
4646
"@types/node": "22.15.30",
47-
"@wso2/eslint-plugin": "catalog:",
48-
"@wso2/prettier-config": "catalog:",
47+
"@wso2/eslint-plugin": "workspace:*",
48+
"@wso2/prettier-config": "workspace:*",
4949
"esbuild": "0.25.9",
5050
"eslint": "8.57.0",
5151
"prettier": "2.6.2",

‎packages/nextjs/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
},
6464
"devDependencies": {
6565
"@types/node": "22.15.3",
66-
"@wso2/eslint-plugin": "catalog:",
67-
"@wso2/prettier-config": "catalog:",
66+
"@wso2/eslint-plugin": "workspace:*",
67+
"@wso2/prettier-config": "workspace:*",
6868
"esbuild": "0.25.9",
6969
"esbuild-plugin-preserve-directives": "0.0.11",
7070
"eslint": "8.57.0",

‎packages/node/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
},
4343
"devDependencies": {
4444
"@types/node": "22.15.3",
45-
"@wso2/eslint-plugin": "catalog:",
46-
"@wso2/prettier-config": "catalog:",
45+
"@wso2/eslint-plugin": "workspace:*",
46+
"@wso2/prettier-config": "workspace:*",
4747
"esbuild": "0.25.9",
4848
"eslint": "8.57.0",
4949
"prettier": "2.6.2",

‎packages/react-router/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"@asgardeo/react": "workspace:*",
4747
"@types/node": "22.15.3",
4848
"@types/react": "catalog:",
49-
"@wso2/eslint-plugin": "catalog:",
50-
"@wso2/prettier-config": "catalog:",
49+
"@wso2/eslint-plugin": "workspace:*",
50+
"@wso2/prettier-config": "workspace:*",
5151
"esbuild-plugin-preserve-directives": "0.0.11",
5252
"esbuild": "0.25.9",
5353
"eslint": "8.57.0",

‎packages/react/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"@testing-library/react": "16.3.0",
4646
"@types/node": "22.15.3",
4747
"@types/react": "catalog:",
48-
"@wso2/eslint-plugin": "catalog:",
49-
"@wso2/prettier-config": "catalog:",
48+
"@wso2/eslint-plugin": "workspace:*",
49+
"@wso2/prettier-config": "workspace:*",
5050
"esbuild-plugin-preserve-directives": "0.0.11",
5151
"esbuild": "0.25.9",
5252
"eslint": "8.57.0",

‎packages/tanstack-router/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"@testing-library/react": "16.2.0",
4848
"@types/node": "22.15.3",
4949
"@types/react": "catalog:",
50-
"@wso2/eslint-plugin": "catalog:",
51-
"@wso2/prettier-config": "catalog:",
50+
"@wso2/eslint-plugin": "workspace:*",
51+
"@wso2/prettier-config": "workspace:*",
5252
"esbuild-plugin-preserve-directives": "0.0.11",
5353
"esbuild": "0.25.9",
5454
"eslint": "8.57.0",

0 commit comments

Comments
 (0)