Skip to content

[ef-33] feat: publish alias packages for common failproofai misspellings + bump to 0.0.1-beta.8#32

Merged
NiveditJain merged 1 commit into
mainfrom
ef-33
Apr 7, 2026
Merged

[ef-33] feat: publish alias packages for common failproofai misspellings + bump to 0.0.1-beta.8#32
NiveditJain merged 1 commit into
mainfrom
ef-33

Conversation

@NiveditJain

@NiveditJain NiveditJain commented Apr 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds scripts/publish-aliases.mjs — a script that generates and publishes 14 alias packages on npm for common misspellings of failproofai
  • Adds scripts/alias-proxy.js — a shared thin proxy binary included in every alias package; delegates all CLI calls to the real failproofai binary via the npm-generated .bin/ wrapper (handles bun shebang + Windows correctly)
  • Updates .github/workflows/publish.yml — runs publish-aliases.mjs automatically after every main publish
  • Bumps version 0.0.1-beta.70.0.1-beta.8

Alias packages published (all currently unclaimed on npm):

Category Packages
Formatting variants failproof, failproof-ai, fail-proof-ai, failproof_ai, fail_proof_ai, fail-proofai
Missing one 'o' (failprof*) failprof, failprof-ai, failprofai, fail-prof-ai, failprof_ai
a/i transposition (faliproof*) faliproof, faliproof-ai, faliproofai

How it works: npm install -g failproof-ai → installs failproofai as a local dep (triggers hook setup) + links a failproof-ai global binary that proxies to it.

Test plan

  • Local dry run: node scripts/publish-aliases.mjs --dry-run — prints all 14 generated package.json files without publishing
  • After merge + release: npm view failproof version, npm view failprof-ai version etc. — all should show 0.0.1-beta.8
  • End-to-end: npm install -g failprof-ai on a clean machine → failprof-ai --version prints 0.0.1-beta.8

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Chores
    • Version bumped to 0.0.1-beta.8.
    • Enhanced package publishing infrastructure to support alias packages.

…llings + bump to 0.0.1-beta.8

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Apr 7, 2026

Copy link
Copy Markdown
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: 7ef18708-bfd9-445d-bbaa-ce0c19a41dfb

📥 Commits

Reviewing files that changed from the base of the PR and between 7b4c822 and a9562f1.

📒 Files selected for processing (4)
  • .github/workflows/publish.yml
  • package.json
  • scripts/alias-proxy.js
  • scripts/publish-aliases.mjs

📝 Walkthrough

Walkthrough

This change introduces an automated npm package alias publishing system. After the main npm publish step, a new workflow step executes publish-aliases.mjs, which generates and publishes multiple alias packages pointing to the primary package. Two new infrastructure scripts are added: one as a proxy to redirect CLI calls, and one to orchestrate alias package creation and publication. Package version bumped to 0.0.1-beta.8.

Changes

Cohort / File(s) Summary
CI/CD Integration
.github/workflows/publish.yml
Added workflow step to execute node scripts/publish-aliases.mjs after npm publish, using NODE_AUTH_TOKEN for authentication.
Version Update
package.json
Bumped package version from 0.0.1-beta.7 to 0.0.1-beta.8.
Alias Publishing Infrastructure
scripts/alias-proxy.js, scripts/publish-aliases.mjs
Added platform-aware proxy script to redirect CLI calls to the main binary. Added orchestration script that reads package metadata, iterates over a predefined list of alias names, generates temporary packages with dynamically constructed package.json manifests, and publishes them to npm (with --dry-run support).

Sequence Diagram

sequenceDiagram
    participant CI as CI/CD Pipeline
    participant NPM as npm Registry
    participant PubScript as publish-aliases.mjs
    participant TempPkg as Temp Alias Package
    
    CI->>NPM: npm publish (main package)
    CI->>PubScript: Execute with NODE_AUTH_TOKEN
    PubScript->>PubScript: Read package.json (version, metadata)
    loop For each alias name
        PubScript->>TempPkg: Generate temp package.json<br/>(with proxy.js bin mapping)
        PubScript->>NPM: npm publish alias package
        PubScript->>TempPkg: Clean up temp directory
    end
    Note over CI: All aliases published<br/>with same version
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 Hopping through workflows with glee,
Aliases published, one-two-three!
Typos and names all wrapped in a bow,
The main package leads the grand show!


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@NiveditJain NiveditJain merged commit 88117be into main Apr 7, 2026
8 checks passed
@NiveditJain NiveditJain deleted the ef-33 branch April 21, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant