Add core-common to the list of packages for electron-auth and browser-auth to be marked as workspace:* #6360
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After running rush update --full in the release branch a couple of days ago and a failing docs build: https://dev.azure.com/bentleycs/iModelTechnologies/_build/results?buildId=2612229&view=logs&j=bf01bec3-f6e2-5983-bdff-93019feebaa1&t=8d110379-66a4-5f89-b46c-1a9b11ce4c18
I decided to debug into typedoc/typescript code and poke around. In a broken docs build (after running rush update --full), we were missing some exports from RpcManager. This was due to RpcManager now resolving to a path like
"D:/itwinjs-core2/common/temp/node_modules/.pnpm/@itwin+corecommon@4.3.3_67wltvhdskk2oee2c3z2o4tfly/node_modules/@itwin/core-common/lib/cjs/RpcManager.d.ts"
instead of"D:/itwinjs-core/core/common/lib/cjs/RpcManager.d.ts"
.When running typedoc we intentionally exclude paths with node_modules (by passing an exclude regex) in the name which makes sense. Even when hovering over imports in vscode "import from @itwin/core-common" these incorrect paths would be shown which suggested that typescript module resolution was giving these paths to typedoc. I later confirmed that while stepping through typedoc and ending up in typescript code, but I didn't quite know why TS seemed to be getting confused.
The reason rush update --full caused this is due to the below
Because browser-auth was pulling in a version of @itwin/core-common... Since locally our package.json had 4.3.3 in it as well as in the pnpm-lock after rush update --full, this was confusing TS and it was no longer looking at the local copy of core-common but the installed version of core-common which was also 4.3.3. This lines up with why master works just fine, locally we had a dev version and installed we had some other officially released version. That also supports why release/4.3.x worked just fine before we had run rush update --full. Locally we had 4.3.3 and installed we had a 4.2.1 version.
Thanks Bill for noticing that we had an installed copy of core-common in the common/temp/.pnpm/node_modules and thanks Ben for general help with this.
Open Questions