Skip to content

Releases

2

Choose a tag to compare

@landonwjohnson landonwjohnson released this 04 Mar 01:33

Full Changelog: 1.1...2

Release notes (v0.1.55 or v0.2.0)

Choose a tag to compare

@landonwjohnson landonwjohnson released this 04 Mar 01:26
c4628c6

Release notes (v0.1.55 or v0.2.0)

✨ New features

Landing page & documentation

  • Landing page for collectexports with hero section, Before/After examples, install instructions, and CLI quick reference
  • Copy buttons on all code snippets
  • Syntax highlighting (Prism.js) for TypeScript, Bash, and JSON
  • Mobile-responsive layout with hamburger navigation
  • GitHub Pages deploy workflow for the landing page and API docs

CLI

  • CLI entry points: collectexports and ce
  • Interactive config via collectexports init --interactive
  • Presets (react, nodeLibrary, designSystem, monorepo, etc.) for quick setup

🐛 Bug fixes

  • outputPath extension validation – Only .ts and .tsx are allowed; unsupported extensions fall back to .ts
  • path.join usage – Safer output path construction instead of string concatenation
  • Default export handling – Correct reading of file content before extracting default export variables
  • Debug output – Debug logs are now correctly gated behind the config flag

🔧 Improvements

  • TypeScript typecheck configuration resolved via tsconfig.typecheck.json
  • Test suite fixes for export matching, fixtures, and regex patterns
  • Explicit return types and ESLint cleanup across the codebase
  • Social links added to README and landing page: @techwithlandon, Software Engineering Hub (US), r/USASoftwareDevs

🔒 Security & maintenance

  • .env added to .gitignore to avoid committing secrets
  • Dependabot alerts available for review in the repository

Installation

npm install collectexports
# or
yarn add collectexports

Quick start

collectexports collect
# or use the short alias
ce collect

Initial Release

Choose a tag to compare

@landonwjohnson landonwjohnson released this 14 Nov 20:37

Release Notes for Collect Exports For Bundle Script v1.0

We are excited to announce the release of the Collect Exports For Bundle Script v1.0! This release is packed with features designed to streamline the process of managing exports in your TypeScript projects. Below are the key highlights of this version:

New Features

  1. Automated Export Generation: Easily export all your TypeScript files from a project into a single index.ts file, significantly reducing the manual effort required in large-scale projects.

  2. GitHub Gist and Repository Integration: Use the tool seamlessly in GitHub gists and repositories, making it more versatile and adaptable to your workflow.

  3. Type-Safe with Default Export Option: Ensure type safety with the option to control default exports, giving you full command over your package's exports.

  4. Recursive Directory Scanning: Automatically scan and include files from nested directories, ensuring comprehensive coverage of your project files.

  5. File Extension Specification: Tailor the script to your needs by specifying which file extensions to include or exclude in the export process.

  6. Configurability: Customize the tool’s behavior through command-line arguments or direct function parameters, catering to a wide range of use cases.

Installation

The script is readily available for installation via npm and yarn. Run the following commands to add it to your project:

  • Using npm: npm install @devlander/collect-exports-for-bundle
  • Using yarn: yarn add @devlander/collect-exports-for-bundle

Usage Improvements

  • Programmatic Usage: The script can now be easily integrated and utilized programmatically in your project.
  • Enhanced Typescript Support: Built in TypeScript for seamless integration with other TypeScript packages.
  • Root Folder File Collection: Enhanced capability to collect files from the root folder, especially useful in GitHub gists and modular project structures.
  • Directory-Specific File Collection: Added functionality to collect files within a specific directory, providing more control over the export process.

Helper Functions

Two new helper functions have been introduced:

  • Collect Paths From Directories: A utility function to retrieve valid file paths based on a set of criteria.
  • Create Extensions: Generate a list of file extensions combining given words and file extensions, enhancing flexibility in file management.

Upcoming Features and Improvements

  • Command-Line Interface (CLI): Plans are in place to develop a CLI for even more user-friendly interaction.
  • In-Depth Testing: Future versions will include comprehensive tests for each function, ensuring reliability and robustness.

Connect with Us

Stay updated and connect with us through various platforms:

We are looking forward to your feedback and suggestions to make this tool even better in future releases!