Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

bug: refactor npm tarballs include compiled native binaries

Đang mở Phù hợp với người mới
#2,258 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bun, typescript
Lĩnh vực
build-system, cli, release

Hướng nghiên cứu

Bắt đầu với metadata của npm package định nghĩa allowlist files, sau đó tái hiện vấn đề bằng bun pm pack --ignore-scripts sau các lệnh build và biên dịch native được liệt kê. Được xem là hoàn tất khi tarball chứa Node launcher, bundle, runtime assets và metadata tiêu chuẩn, đồng thời loại trừ dist/bin và output build cũ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

On the refactor branch, the npm package's files allowlist includes all of dist. Packing a workspace after compiling native binaries therefore includes dist/bin and any other stale build output in the npm tarball.

Reproduction

bun install --frozen-lockfile
bun run build
bun run compile:linux-x64
bun pm pack --ignore-scripts
tar -tzf aws-agentcore-*.tgz

No publishing is needed to reproduce this.

Actual Behavior

The tarball includes dist/bin/agentcore-linux-x64. In a local reproduction, adding just this binary increased the compressed package from 1.44 MB to 40.37 MB. Other files left under dist, such as source maps, logs, and old build directories, are also included.

The automated release currently packs before compilation, which avoids the binaries on a fresh runner, but the package metadata does not enforce that separation for manual packaging or a reused build directory.

Expected Behavior

Publish only the Node launcher, Node bundle, runtime assets, and standard package metadata to npm. Keep standalone native binaries as separate GitHub release assets, regardless of build/pack order.

Environment

  • Branch: refactor
  • Base commit: 4fe2c108
  • Bun: 1.4.0
  • Platform: Linux x64
Ngôn ngữ chính
TypeScript
Star
291
Fork
96
Merge trung bình
17 giờ 29 phút
Pull request đã merge (30 ngày)
193

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/agentcore-cli

Tất cả issue của aws/agentcore-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.