mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Adds infrastructure for distributing Hapi via npm as a scoped package
(@twsxtd/hapi) with platform-specific optional dependencies. This enables
installation via `npx @twsxtd/hapi` or `bunx @twsxtd/hapi`.
- Add bin/hapi.js wrapper script for platform detection and binary selection
- Create npm/ directory structure for platform-specific packages (darwin-{arm64,x64},
linux-{arm64,x64}, win32-x64)
- Add scripts/prepare-npm-packages.ts to generate platform-specific package.json files
and copy binaries to npm packages
- Add scripts/publish-npm.ts for automated publishing of platform packages
- Update package.json with new scoped name, bin entry, optionalDependencies, and
prepack/publish scripts
- Update .gitignore to ignore generated npm packages and build outputs
- Update .npmignore to only include bin/hapi.js wrapper, excluding source and build files
36 lines
487 B
Plaintext
36 lines
487 B
Plaintext
*-debug.log
|
|
*-error.log
|
|
**/.DS_Store
|
|
/.idea
|
|
/dist
|
|
/tmp
|
|
/node_modules
|
|
oclif.manifest.json
|
|
|
|
# Unpacked binaries (keep archives)
|
|
/tools/unpacked/
|
|
|
|
# Build outputs
|
|
/dist-exe/
|
|
|
|
# Generated npm platform packages (created by prepare-npm-packages.ts)
|
|
/npm/*/package.json
|
|
/npm/*/bin/hapi
|
|
/npm/*/bin/hapi.exe
|
|
|
|
|
|
|
|
pnpm-lock.yaml
|
|
|
|
# Environment variables
|
|
.env
|
|
.env*.local
|
|
|
|
# Claude code session level settings
|
|
.claude/settings.local.json
|
|
|
|
# Local installation
|
|
.happy/
|
|
|
|
**/*.log
|
|
.release-notes-temp.md |