chore: reduce root-directory clutter (#1275)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil 2026-04-30 00:09:46 -07:00 committed by GitHub
parent 61909fff03
commit 4318f3bfa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 20 additions and 21 deletions

View File

@ -33,7 +33,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
- name: Setup pnpm
uses: pnpm/action-setup@v4

View File

@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
- name: Setup pnpm
uses: pnpm/action-setup@v4

View File

@ -60,7 +60,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
- name: Configure git author
run: |

View File

@ -40,7 +40,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
- name: Configure git author
run: |

View File

@ -122,7 +122,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
# Why: release builds hit the same native-module postinstall path as

1
.nvmrc
View File

@ -1 +0,0 @@
24

View File

@ -6,8 +6,8 @@ import { execFileSync } from 'node:child_process'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..')
const source = path.join(repoRoot, 'bin', 'orca-dev')
const scriptDir = path.dirname(fileURLToPath(import.meta.url))
const source = path.join(scriptDir, 'orca-dev')
const commandPath =
process.platform === 'darwin' || process.platform === 'linux'

View File

@ -10,7 +10,7 @@ while [ -L "$SOURCE" ]; do
[[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
done
SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
CLI_ENTRY="$REPO_ROOT/out/cli/index.js"
if [ ! -f "$CLI_ENTRY" ]; then

View File

@ -6,7 +6,7 @@
"author": "stablyai",
"bin": {
"orca": "./out/cli/index.js",
"orca-dev": "./bin/orca-dev"
"orca-dev": "./config/scripts/orca-dev"
},
"main": "./out/main/index.js",
"scripts": {
@ -24,13 +24,13 @@
"typecheck": "tsc --noEmit -p config/tsconfig.node.json --composite false && tsc --noEmit -p config/tsconfig.cli.json --composite false && tsc --noEmit -p config/tsconfig.web.json --composite false",
"start": "electron-vite preview",
"dev": "node config/scripts/run-electron-vite-dev.mjs",
"build:relay": "node scripts/build-relay.mjs",
"build:relay": "node config/scripts/build-relay.mjs",
"build:cli": "tsc -p config/tsconfig.cli.json --outDir out --composite false --incremental false && node config/scripts/install-dev-cli.mjs",
"build:electron-vite": "node config/scripts/run-electron-vite-build.mjs",
"build": "pnpm run typecheck && pnpm run build:relay && pnpm run build:electron-vite && pnpm run build:cli",
"build:release": "pnpm run build:relay && pnpm run build:electron-vite && pnpm run build:cli",
"postinstall": "pnpm rebuild electron && node scripts/rebuild-native-deps.mjs",
"rebuild:electron": "node scripts/rebuild-native-deps.mjs",
"postinstall": "pnpm rebuild electron && node config/scripts/rebuild-native-deps.mjs",
"rebuild:electron": "node config/scripts/rebuild-native-deps.mjs",
"build:unpack": "pnpm run build && electron-builder --config config/electron-builder.config.cjs --dir",
"build:win": "pnpm run build && electron-builder --config config/electron-builder.config.cjs --win",
"build:icons": "bash resources/icon-source/generate.sh",
@ -149,6 +149,9 @@
"oxfmt --write"
]
},
"engines": {
"node": "24"
},
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a",
"pnpm": {
"onlyBuiltDependencies": [
@ -160,8 +163,8 @@
"node-pty"
],
"patchedDependencies": {
"node-pty@1.1.0": "patches/node-pty@1.1.0.patch",
"@xterm/addon-ligatures@0.11.0-beta.198": "patches/@xterm__addon-ligatures@0.11.0-beta.198.patch"
"node-pty@1.1.0": "config/patches/node-pty@1.1.0.patch",
"@xterm/addon-ligatures@0.11.0-beta.198": "config/patches/@xterm__addon-ligatures@0.11.0-beta.198.patch"
}
}
}

View File

@ -7,10 +7,10 @@ settings:
patchedDependencies:
'@xterm/addon-ligatures@0.11.0-beta.198':
hash: df21db050a4d85552cafbe583ece863d7fa19ed634a1219210a0455b986b6634
path: patches/@xterm__addon-ligatures@0.11.0-beta.198.patch
path: config/patches/@xterm__addon-ligatures@0.11.0-beta.198.patch
node-pty@1.1.0:
hash: 02e16954edbb8e511963557e3b2c80f8a6fb230cd0c6a75ade936022f3347322
path: patches/node-pty@1.1.0.patch
path: config/patches/node-pty@1.1.0.patch
importers:

View File

@ -3,7 +3,7 @@ import type { ITerminalOptions } from '@xterm/xterm'
import { FitAddon } from '@xterm/addon-fit'
// Upstream packaging bug: @xterm/addon-ligatures declares `"main":
// "lib/addon-ligatures.js"` but ships only the `.mjs` entry, so Vite fails to
// resolve the bare import. Fixed locally via patches/@xterm__addon-ligatures*.
// resolve the bare import. Fixed locally via config/patches/@xterm__addon-ligatures*.
// Tracking upstream: https://github.com/xtermjs/xterm.js/issues/5822 — drop
// the patch once that lands.
import { LigaturesAddon } from '@xterm/addon-ligatures'

View File

@ -1,3 +0,0 @@
import config from './config/vitest.config'
export default config