Skip to content

Commit e42f342

Browse files
committed
fix: drop @tailflow scope, use unscoped tailflow-<platform> package names
1 parent 3ed5195 commit e42f342

9 files changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,16 @@ jobs:
224224
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
225225
run: |
226226
for platform in darwin-arm64 darwin-x64 linux-x64 linux-arm64 win32-x64; do
227-
echo "Publishing @tailflow/$platform …"
227+
echo "Publishing tailflow-$platform …"
228228
cd npm/platforms/$platform
229-
npm publish --access public
229+
npm publish
230230
cd ../../..
231231
done
232232
233233
- name: Publish main package
234234
env:
235235
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
236-
run: cd npm/tailflow && npm publish --access public
236+
run: cd npm/tailflow && npm publish
237237

238238
# Create a GitHub Release with the tag as the title
239239
- name: Create GitHub Release

npm/platforms/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tailflow/darwin-arm64",
2+
"name": "tailflow-darwin-arm64",
33
"version": "0.1.0",
44
"description": "TailFlow compiled binary for macOS ARM64 (Apple Silicon)",
55
"license": "MIT",

npm/platforms/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tailflow/darwin-x64",
2+
"name": "tailflow-darwin-x64",
33
"version": "0.1.0",
44
"description": "TailFlow compiled binary for macOS x64 (Intel)",
55
"license": "MIT",

npm/platforms/linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tailflow/linux-arm64",
2+
"name": "tailflow-linux-arm64",
33
"version": "0.1.0",
44
"description": "TailFlow compiled binary for Linux ARM64",
55
"license": "MIT",

npm/platforms/linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tailflow/linux-x64",
2+
"name": "tailflow-linux-x64",
33
"version": "0.1.0",
44
"description": "TailFlow compiled binary for Linux x64",
55
"license": "MIT",

npm/platforms/win32-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tailflow/win32-x64",
2+
"name": "tailflow-win32-x64",
33
"version": "0.1.0",
44
"description": "TailFlow compiled binary for Windows x64",
55
"license": "MIT",

npm/tailflow/bin/run.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shared launcher for tailflow and tailflow-daemon.
33
*
44
* Resolves the compiled binary from the correct platform-specific optional
5-
* dependency (@tailflow/<platform>) and exec's it, forwarding all args and
5+
* dependency (tailflow-<platform>) and exec's it, forwarding all args and
66
* stdio so that ratatui TUI and TTY interaction work correctly.
77
*/
88
'use strict'
@@ -12,11 +12,11 @@ const { join } = require('path')
1212

1313
// Maps Node.js { platform, arch } → optional dependency name.
1414
const PLATFORM_MAP = {
15-
'darwin-arm64': '@tailflow/darwin-arm64',
16-
'darwin-x64': '@tailflow/darwin-x64',
17-
'linux-arm64': '@tailflow/linux-arm64',
18-
'linux-x64': '@tailflow/linux-x64',
19-
'win32-x64': '@tailflow/win32-x64',
15+
'darwin-arm64': 'tailflow-darwin-arm64',
16+
'darwin-x64': 'tailflow-darwin-x64',
17+
'linux-arm64': 'tailflow-linux-arm64',
18+
'linux-x64': 'tailflow-linux-x64',
19+
'win32-x64': 'tailflow-win32-x64',
2020
}
2121

2222
function run(binaryName) {

npm/tailflow/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"files": ["bin/"],
1616
"engines": { "node": ">=18" },
1717
"optionalDependencies": {
18-
"@tailflow/darwin-arm64": "0.1.0",
19-
"@tailflow/darwin-x64": "0.1.0",
20-
"@tailflow/linux-arm64": "0.1.0",
21-
"@tailflow/linux-x64": "0.1.0",
22-
"@tailflow/win32-x64": "0.1.0"
18+
"tailflow-darwin-arm64": "0.1.0",
19+
"tailflow-darwin-x64": "0.1.0",
20+
"tailflow-linux-arm64": "0.1.0",
21+
"tailflow-linux-x64": "0.1.0",
22+
"tailflow-win32-x64": "0.1.0"
2323
}
2424
}

scripts/bump-version.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ const ROOT = path.join(__dirname, '..')
2020

2121
// ── npm packages ────────────────────────────────────────────────────────────
2222
const PLATFORM_NAMES = [
23-
'@tailflow/darwin-arm64',
24-
'@tailflow/darwin-x64',
25-
'@tailflow/linux-arm64',
26-
'@tailflow/linux-x64',
27-
'@tailflow/win32-x64',
23+
'tailflow-darwin-arm64',
24+
'tailflow-darwin-x64',
25+
'tailflow-linux-arm64',
26+
'tailflow-linux-x64',
27+
'tailflow-win32-x64',
2828
]
2929

3030
// Platform packages

0 commit comments

Comments
 (0)