Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,16 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
for platform in darwin-arm64 darwin-x64 linux-x64 linux-arm64 win32-x64; do
echo "Publishing @tailflow/$platform …"
echo "Publishing tailflow-$platform …"
cd npm/platforms/$platform
npm publish --access public
npm publish
cd ../../..
done

- name: Publish main package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd npm/tailflow && npm publish --access public
run: cd npm/tailflow && npm publish

# Create a GitHub Release with the tag as the title
- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion npm/platforms/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tailflow/darwin-arm64",
"name": "tailflow-darwin-arm64",
"version": "0.1.0",
"description": "TailFlow compiled binary for macOS ARM64 (Apple Silicon)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion npm/platforms/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tailflow/darwin-x64",
"name": "tailflow-darwin-x64",
"version": "0.1.0",
"description": "TailFlow compiled binary for macOS x64 (Intel)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion npm/platforms/linux-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tailflow/linux-arm64",
"name": "tailflow-linux-arm64",
"version": "0.1.0",
"description": "TailFlow compiled binary for Linux ARM64",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion npm/platforms/linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tailflow/linux-x64",
"name": "tailflow-linux-x64",
"version": "0.1.0",
"description": "TailFlow compiled binary for Linux x64",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion npm/platforms/win32-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tailflow/win32-x64",
"name": "tailflow-win32-x64",
"version": "0.1.0",
"description": "TailFlow compiled binary for Windows x64",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions npm/tailflow/bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Shared launcher for tailflow and tailflow-daemon.
*
* Resolves the compiled binary from the correct platform-specific optional
* dependency (@tailflow/<platform>) and exec's it, forwarding all args and
* dependency (tailflow-<platform>) and exec's it, forwarding all args and
* stdio so that ratatui TUI and TTY interaction work correctly.
*/
'use strict'
Expand All @@ -12,11 +12,11 @@ const { join } = require('path')

// Maps Node.js { platform, arch } → optional dependency name.
const PLATFORM_MAP = {
'darwin-arm64': '@tailflow/darwin-arm64',
'darwin-x64': '@tailflow/darwin-x64',
'linux-arm64': '@tailflow/linux-arm64',
'linux-x64': '@tailflow/linux-x64',
'win32-x64': '@tailflow/win32-x64',
'darwin-arm64': 'tailflow-darwin-arm64',
'darwin-x64': 'tailflow-darwin-x64',
'linux-arm64': 'tailflow-linux-arm64',
'linux-x64': 'tailflow-linux-x64',
'win32-x64': 'tailflow-win32-x64',
}

function run(binaryName) {
Expand Down
10 changes: 5 additions & 5 deletions npm/tailflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"files": ["bin/"],
"engines": { "node": ">=18" },
"optionalDependencies": {
"@tailflow/darwin-arm64": "0.1.0",
"@tailflow/darwin-x64": "0.1.0",
"@tailflow/linux-arm64": "0.1.0",
"@tailflow/linux-x64": "0.1.0",
"@tailflow/win32-x64": "0.1.0"
"tailflow-darwin-arm64": "0.1.0",
"tailflow-darwin-x64": "0.1.0",
"tailflow-linux-arm64": "0.1.0",
"tailflow-linux-x64": "0.1.0",
"tailflow-win32-x64": "0.1.0"
}
}
10 changes: 5 additions & 5 deletions scripts/bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const ROOT = path.join(__dirname, '..')

// ── npm packages ────────────────────────────────────────────────────────────
const PLATFORM_NAMES = [
'@tailflow/darwin-arm64',
'@tailflow/darwin-x64',
'@tailflow/linux-arm64',
'@tailflow/linux-x64',
'@tailflow/win32-x64',
'tailflow-darwin-arm64',
'tailflow-darwin-x64',
'tailflow-linux-arm64',
'tailflow-linux-x64',
'tailflow-win32-x64',
]

// Platform packages
Expand Down
Loading