Skip to content

chore: Clean up package metadata - #626

Open
deekshas8 wants to merge 3 commits into
mainfrom
fix/package-metadata-cleanup
Open

deekshas8 wants to merge 3 commits into
mainfrom
fix/package-metadata-cleanup

Conversation

@deekshas8

Copy link
Copy Markdown
Contributor

What

1. Dependency metadata fixes & version dedup (27d5006)

Correctness fixes:

  • vscode-deps-upgrade-tool: move @types/fs-extra to devDependencies
  • vscode-mta-tools: pin @vscode-logging/logger to workspace:*
  • vscode-webview-rpc-lib: pin @vscode-logging/types to workspace:*
  • yeoman-ui backend: raise @types/vscode to ^1.100.0 to match engines
  • guided-development backend: add missing @types/vscode

Version dedup across the workspace:

  • websocket1.0.35
  • sinon18.0.1 (test-only devDep)
  • fs-extra11.3.0 / @types/fs-extra11.0.4

The @types/fs-extra bump changed readFile's overload typing, so three cfutil.spec.ts stubs were converted to sinon
.resolves/.rejects to keep compiling.

2. Remove redundant Yarn-format workspaces block from root package.json (021ea13)

pnpm resolves the workspace from pnpm-workspace.yaml, which already carries the identical package globs. The package.json "workspaces" key was only read by @manypkg/get-packages (used by changesets), which mis-detected the repo as Yarn. Removing it lets manypkg fall through to pnpm detection.

3. Remove .npmrc (85a6667)

Under pnpm 11 (packageManager: pnpm@11.1.1), .npmrc is auth/registry-only; its two behavioral settings were no longer being read.

  • strict-peer-dependencies=false equals the pnpm 11 default.
  • auto-install-peers=false was dormant — the tree has been resolving peers as if the default true, so it was intentionally not ported to pnpm-workspace.yaml.

Why

Removes stale/dead config that no longer has any effect under pnpm 11 and could mislead readers or tooling (manypkg mis-detecting Yarn). Deduping versions and correcting dependency placement keeps the lockfile lean and metadata accurate.

Notes for reviewers

  • If you want the strict-peer behavior restored, add autoInstallPeers: false in pnpm-workspace.yaml (expect lockfile churn: ~5 added /~75 removed).
  • Verified: pnpm resolves the workspace (62 projects), manypkg now reports tool: pnpm, and changeset status still resolves.

R1 correctness fixes:
- vscode-deps-upgrade-tool: move @types/fs-extra to devDependencies
- vscode-mta-tools: pin @vscode-logging/logger to workspace:*
- vscode-webview-rpc-lib: pin @vscode-logging/types to workspace:*
- yeoman-ui backend: raise @types/vscode to ^1.100.0 to match engines
- guided-development backend: add missing @types/vscode

R3 version dedup:
- websocket unified to 1.0.35
- sinon unified to 18.0.1 (test-only devDep)
- fs-extra unified to 11.3.0 / @types/fs-extra to 11.0.4

The @types/fs-extra bump changes readFile's overload typing; convert
three cfutil.spec.ts stubs to sinon .resolves/.rejects to compile.
pnpm resolves the workspace from pnpm-workspace.yaml, which already
carries the identical package globs. The package.json "workspaces" key
was only being read by @manypkg/get-packages (used by changesets), which
mis-detected the repo as Yarn. Removing it lets manypkg fall through to
pnpm detection. Verified pnpm (62 projects), manypkg (now tool: pnpm),
and changeset status all still resolve.
Under pnpm 11 (.npmrc is auth/registry-only), both settings were
no longer read: strict-peer-dependencies=false equals the pnpm 11
default, and auto-install-peers=false was dormant (the tree resolves
peers as if the default true). Neither ported to pnpm-workspace.yaml.
@github-actions

Copy link
Copy Markdown
Contributor

Build Report

badge

Please note:

  1. Files only stay for around 14 days!
  2. This comment will be updated with the data of the last successful build of this PR.
Name Link
Commit d0dcfa4
Logs https://github.com/SAP/app-studio-toolkit/actions/runs/35608507947
VSIX Files https://github.com/SAP/app-studio-toolkit/actions/runs/35608507947/artifacts/10643690275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant