Skip to content

v5.0 - Working release: content extraction & publishing restored

Latest

Choose a tag to compare

@kiyomasanaki kiyomasanaki released this 01 Jul 09:30
· 2 commits to main since this release
b0de835

🚀 codepack v5.0.0

The first fully working, publishable release after the broken v4.2 line.
codepack again extracts real file contents and the package publishes correctly
to GitHub Packages.

⚠️ If you were on v4.2, upgrade now, that release produced output with an
empty body (directory tree only, no file contents).

🩹 Fixed

  • File content extraction restored, v4.2 generated the directory tree but
    reported every file as empty (Processed 0 files), producing an unusable
    output file. Contents are now extracted correctly again.
  • --include / --exclude filtering, extensions with or without a leading
    dot (py and .py) are now treated identically.
  • Files without an extension are handled correctly in both include and
    exclude modes.
  • Robust file listing, filenames containing spaces are handled safely
    (NUL-delimited paths).
  • Bash 3.2 compatibility (macOS default Bash) restored, replaced mapfile
    with a portable read loop.
  • Package publishing fixed, GitHub Packages auth was failing on every run
    with 401 Unauthorized because .npmrc pinned an empty ${NPM_TOKEN}. CI now
    authenticates via the built-in GITHUB_TOKEN, so releases actually publish.

🔧 Changed

  • Version bumped to 5.0.0 to mark the clean, working baseline.
  • Workflow Node.js runtime bumped 20 → 22 (Node 20 is deprecated on runners).
  • package.json repository URL normalized to git+https.

✅ Verified

  • File extraction works across normal, --include, --exclude, and
    --minify modes.
  • Test suites test_basic.sh and test_features.sh pass.
  • bash -n codepack.sh syntax check passes.

No breaking changes. All flags (--include, --exclude, --minify,
--compress, --copy, --minify-info, --install-minifiers) and the output
format are unchanged — the major bump reflects the fresh working baseline.

📦 Installation

# npm (GitHub Packages)
npm install -g @w3spi5/codepack

# or download the script directly
curl -O https://raw.githubusercontent.com/w3spi5/codepack/main/codepack.sh
chmod +x codepack.sh