feat: add npm package wrapper for global installation - #4
Closed
timimsms wants to merge 1 commit into
Closed
Conversation
- Create npm package structure at npm/ directory - Add automatic binary download during post-install - Support all major platforms with architecture detection - Include checksum verification for security - Add fallback error handling for failed downloads - Create publish script for automated npm releases Features: - Platform detection (Windows, macOS, Linux) - Architecture support (x64, arm64, i386) - Progress indicators during download - Automatic binary extraction - CI environment detection (skips download) - Clean error messages with fallback instructions The package will be published as @clickup/cli and provides: - Global installation via: npm install -g @clickup/cli - Binary wrapper that launches the correct platform binary - Automatic updates through npm 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's Included
npm Package Structure (
npm/directory)package.json: Package configuration as@clickup/cliindex.js: Main entry point that executes the platform-specific binarypostinstall.js: Downloads the correct binary for the user's platformbin/cu: Executable wrapper for global CLI accessREADME.md: npm-specific documentationFeatures
CI=true)Publishing Script
scripts/publish-npm.sh: Automated npm publishing for releasesInstallation (Once Published)
How It Works
npm install -g @clickup/clipostinstall.jsruns automatically:cucommand becomes available globallySecurity Considerations
Manual Setup Required
After merging, you'll need to:
NPM_TOKENsecret to GitHub repositoryscripts/publish-npm.shTesting
Local testing instructions:
cd npm npm pack npm install -g clickup-cli-0.0.0-development.tgz cu --versionNext Steps
This PR completes the npm distribution feature. After merging:
NPM_TOKENto GitHub secrets🤖 Generated with Claude Code