Repository navigation
🚀 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/--excludefiltering, extensions with or without a leading
dot (pyand.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
with401 Unauthorizedbecause.npmrcpinned an empty${NPM_TOKEN}. CI now
authenticates via the built-inGITHUB_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.jsonrepositoryURL normalized togit+https.
✅ Verified
- File extraction works across normal,
--include,--exclude, and
--minifymodes. - Test suites
test_basic.shandtest_features.shpass. bash -n codepack.shsyntax 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