Skip to content

fix: ship npm-shrinkwrap.json to eliminate glob@10 deprecation warning#4

Closed
notgitika wants to merge 1 commit into
mainfrom
fix/glob-deprecation-warning
Closed

fix: ship npm-shrinkwrap.json to eliminate glob@10 deprecation warning#4
notgitika wants to merge 1 commit into
mainfrom
fix/glob-deprecation-warning

Conversation

@notgitika
Copy link
Copy Markdown
Owner

Summary

  • Ships npm-shrinkwrap.json with the published package to lock glob at v13.0.6, preventing the deprecated glob@10.5.0 from being resolved during end-user installs
  • Adds npm-shrinkwrap.json to the files array in package.json to ensure inclusion in the tarball

Context

The existing overrides field correctly resolves glob to v13 locally, but npm only applies overrides at the root of the dependency tree. When users run npm install -g @aws/agentcore@preview, overrides are ignored and archiver-utils@5.0.2 (via @aws-cdk/toolkit-libarchiver@7.0.1) pulls in the deprecated glob@10.5.0.

npm-shrinkwrap.json is the npm-sanctioned mechanism for CLI tools to lock their transitive dependency tree for all install scenarios (global, non-root).

Closes aws#1266

Test plan

  • Run npm pack and verify npm-shrinkwrap.json is included in tarball
  • Install from tarball globally and confirm no glob deprecation warning
  • Verify node_modules/glob/package.json shows version 13.x after install

…g on install

The overrides field only applies when this package is the root of the
dependency tree. When users install globally, npm ignores overrides and
resolves archiver-utils's glob@^10.0.0 to the deprecated glob@10.5.0.

npm-shrinkwrap.json is respected during all install scenarios (global,
non-root). This locks glob to 13.0.6, eliminating the warning.

Closes aws#1266
@github-actions github-actions Bot added size/l PR size: L agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels May 20, 2026
@notgitika notgitika closed this May 20, 2026
@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 43.32% 9085 / 20970
🔵 Statements 42.59% 9648 / 22649
🔵 Functions 40.09% 1569 / 3913
🔵 Branches 40.11% 5865 / 14619
Generated in workflow #9 for commit ddf3b1d by the Vitest Coverage Report Action

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

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated dependency: glob@10.5.0 triggers npm warning on install

1 participant